Monday, January 19, 2009

Changing Execution Timeout in SharePoint

If any of the tasks that you are performing in your site takes more time than usual and if the page is timing out then one solution that you can do is to increase the execution timeout value.
To change this value you need to edit the web.config files of SharePoint and the web site.

1. Open the SharePoint web.config file located at
Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS
(C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS)
using NotePad or Visual Studio.
2. Find the section and insert executionTimeout value there as shown below. 3. Save the site config file.4. Now you need to edit the web applications' web.config file. Normally this can be found under Drive:\Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder(C:\Inetpub\wwwroot\wss\VirtualDirectories\82)using NotePad or Visual Studio. 5. Find the line maxRequestLength and add executionTimeout in to it as shown below. 6. Save the application config file.7. Do an IIS restart and then your change will be in effect.

Thursday, January 15, 2009

Changing the IIS Connection Timeout

For many reasons you might need to increase the IIS connection timeout.
The many reasons can be many time consuming processes, large transactions, slower connections, etc.
As a result if your application is timing out, one thing you can do is to increase the connection timeout.
  • To change the timeout value you need to open Internet Information Services (IIS) manager. Either type InetMgr in the Run window or click on Start -> All Programs -> Administrative Tools -> Internet Information Services (IIS) Manager.
  • In the IIS Manager expand the main node and right click on the Web Sites and click on Properties.
  • In the Web Sites Properties page give the appropriate value in the Connection timeout field under Connections section in Web Site tab and press Ok.
  • Now to make the setting take effect restart the IIS by either typing IISReset in the Run window or right clicking on the machine name and going to All Tasks and clicking on Restart IIS... in the IIS Manager.

Tuesday, January 13, 2009

Configuring Large File Uploading in SharePoint

As you have noted the maximum file size that is supported by SharePoint by default is 50MB. What if you want to upload larger files?
Luckily we can change this limit to support larger files by increasing the default upload size in SharePoint Central Administration.
1. Go to SharePoint Central Administration by clicking on Start -> All Programs -> Administrative Tools -> SharePoint x.x Central Administration.
2. Click on Shared Services Administration link on the administration home page. 3. Click on SharedServices1 (Administration site host) link in Manage this Farm's Shared Services page to open the Web Application General Settings page. 4. Find the Maximum Upload Size property and change it to the maximum upload file size you want. Note that you can put file sizes up to 2GB (2047MB). Now you will be able to upload larger files than 50MB.
But to support uploading large files you also may need to increase the default timeout value.
I will be posting the next post of mine on how to increase the timeout value.

Monday, January 12, 2009

Windows 7

Next version of Microsoft Windows is here.
It is still in beta, but in Microsoft site you can preview it and even download a beta version.
Have a look at it.
http://www.microsoft.com/windows/windows-7

Tuesday, December 30, 2008

Exception from HRESULT: 0x80040E14

Recently in SharePoint server I got an error when trying to do almost any action.
The error was Exception from HRESULT: 0x80040E14.
After sometime I did find out, that my C drive has gone out of disk space, and that caused SQL transaction log creation failure which resulted this error.
So freeing up more space on C drive solved my problem.
You will be able to get more details of the error by checking SharePoint log files.

Saturday, December 06, 2008

Planning to Buy a Vehicle?

Thought to share some expensive and valuable information that might help you if you are planning to buy a vehicle. Lookout for two main things.
1. Quality of the Vehicle
2. Legal Side of the Vehicle

Although most of the things I mention in this are specific to Sri Lanka I definitely know there are similar things to check in other countries as well.

1. Quality of the Car
If you are buying a brand new vehicle this is not required because the company will give you the details technical overview and will also give you a warranty.
But if you are going for a used vehicle then you have to check for its quality. Anyway I am not that good in the technical side so you have to rely on the knowledge that you have or someone who knows better.

2. Legal Side of the Vehicle
This is one area most people are not paying that much interest. But this is the most important side, imagine a vehicle that you buy having problems with its documents, If that happens you wont be able to transfer it to your name with ease. Sometimes you even might need to go to courts. If that happens you face the difficulty when selling as well because no one would buy a vehicle from you that you don't own. Further more I advice you to check the vehicle documents because if you buy a technically unfit vehicle you can go to a mechanic and get the vehicle repaired after spending some time and money. But if documents are not good then it will be a big issue.
So what are these documents that you have to look for?

1. Certificate of Registration (CR)
This certificate will have all the details of the vehicle such as Make, Model, Year of Manufacture, Registration Number, Chassis Number, Engine Number, Present Owner, Absolute Owner, Previous Owners, Etc.
All of these are important to check, but for a successful legal transfer of ownership to you present and absolute owners are important. Always it is better to buy a vehicle from the person mentioned in the present owner field. Because the vehicle is owned by him. There are cases which people will keep vehicles with open papers.
Open Papers means that the owner will not get the vehicle transferred to his name, but he will get a set of forms filled from the seller and keep with him.
For example if Mr. ABC is buying a vehicle from Mr. STUV (Mr. STUV is the current owner in the CR). Mr. ABC will keep the transfer documents signed by Mr. STUV after doing the payments to Mr. STUV, but he will not fill them or submit them to the Department of Motor Vehicles for registration.
One advantage of open papers is the number of owners will be lesser.
One disadvantage of this is, if buyer needs to transfer the vehicle to his name he will not be guaranteed that the transfer will happen smoothly since his transferee will be an unknown person. For example in the above case if Mr. ABC is going to sell the vehicle to Mr. XYZ and if Mr. XYZ is needing to get the vehicle transferred to his name the legal transferee will be Mr. STUV who is unknown by Mr. XYZ. In which case while the transfer process is happening problems might arise.
Absolute owner - In normal case this field should be empty. If this is filled with some name that means the vehicle is on a finance or lease. In this case you cannot buy directly from the current owner. That is because when the absolute owner is superior to the current owner. So you will be needing a no objection letter from the absolute owner.
Also note in either case a company is printed under Current Owner or Absolute Owner you will be needing a no objection letter from the company in a company letter head, with the emboss seal and signed by a rightful director of the company.

2. Vehicle Identity Card (VID)
All the English number registered (HE, KA, KC, ...) vehicles will have a VID. you will be requiring this VID to carry out any legal things on the vehicle (Transferring the vehicle to you).
This is only applicable to English numbered vehicles since it is issued new.

If you follow these I think you would be able to buy a vehicle and live peacefully.

Visual Studio not Showing Errors

Is your Visual Studio showing error line numbers and respective pages while you develop?
If not read on, recently I came up to a machine which was having Visual Studio error. Visual Studio was showing errors when a project is compiled but the error details (error code line number, error file) which we can use to identify the error are not displayed.
After trying out several things found the cause of it and thought to share it.
The problem was not with the project but with the path the project was kept.
In the machine the failing project was stored under a folder which was having parenthesis or brackets "(".
For example the solution path was like C:\ProjectsA(V1)\MyProj\.
The (V1) part was confusing Visual Studio making it stop displaying the error details.
If you also have the same problem simply remove the brackets by renaming the folder and reload your project to Visual Studio from the new path. The error details will be shown correctly.