Wednesday, December 23, 2009

Error: Content deployment job '<Job Name truncated>' failed.The remote upload Web request failed

Error: 
Content deployment job '<Job Name truncated>' failed.The remote upload Web request failed

Reason:
You will get this error, when you are trying to deploy the content from one sharepoint server to another. You will get this 
error, because the destination server name/IP may not be resolved by the deployment job.

Solution:
1. Go to your destination server desktop.
2. Right click on the "My Computer"
3. Click on "Properties"
4. Go to "Computer Name" tab.
5. Copy the Full Computer Name as shown below:




6. Open your host file from "c:\windows\system32\drivers\etc\hosts" in NotePad. (In Source Server)
7. Paste the Server name along with IP address at last as below: (Do not delete/move other texts)


8. Now run the content deployment.

Thats it.

Thursday, December 17, 2009

SharePoint: Custom validator or InputFormCustomValidator, Which one is best?

In some scenarios, you are in a situation to use "CustomValidtors" in your SharePoint WebPart coding (object model). This is very common situation to handle/validate our webpart controls using default validation controls.  

But, in SharePoint object model, "CustomValidator" won't fire perfectly in most of the scenarios. Then what to do?

Microsoft Provides an another control called "InputFormCustomValidator". Just explore all the features by using this control. Some of the key points are:

1. For InputFormCustomValidator, we need not to assign the "ControlToValidate" property.
2. We can enforce the "Page.Validate();" method on button click method.


Friday, December 11, 2009

Error: The protocol handler cannot be found. Check that the handler has been installed.

Scenario:

You will get this error, when you are trying to "Crawl" the content in SharePoint SSP.

Solution

1. Go to Services in the SharePoint server (type "Services.msc" in command prompt and preses  'Enter')
2. Stop the "SharePoint SHarePoint server search", "Windows SharePoint Services Search" & "Windows SharePoint Services" Timer.

                   

3. Start all the 3 services again.
4. Reset the IIS

Thats it...

Monday, December 7, 2009

Error: The form submission cannot be processed because it exceeded the maximum length allowed by the Web.

Error:
The form submission cannot be processed because it exceeded the maximum length allowed by the Web.

Reason:
Whenever you are trying to upload a file into the SharePoint with more than 50MB, you will get this error. 
You can not fix this issues, even if you updated the tag in web.config file.

Solution:

1. Go to Central Admin



2. Open "Web Application Gegenal settings" link
3. There is an option to enter the maximum file size. type 100 MB in that text box. Don't forget to change the web application in the dropdown box.


4. Also, change the HttpRuntime in the web.config as follows:
 <httpruntime maxrequestlength="102400" executiontimeout="3600"></httpruntime>
 

Thats it...