Monday, June 21, 2010

Get the detailed error message from Microsoft.SharePoint.SoapServer.SoapServerException

Remove all try and catch statements and let the error come as "SoapException was unhandled by code" error. In this case debugging will throw a message. See this message and click on ViewDetail under Action.

Under the View Detai, expand exception. See InnerXML under Detail: you will get the exact error. For example, I am getting this error from Microsoft.SharePoint.SoapServer.SoapServerException: "There is no Web named \"/sites/VendorDocumentCenter\".".

See the attached Image for more detail.

I hope this will help you to see detail error of Microsoft.SharePoint.SoapServer.SoapServerException

Enjoy green debugging:

Sunday, June 13, 2010

MultiColumnLookupField control in sharepoint 2007

Depoyment of MultiColumnLookupField in sharepoint

I was looking for how to use this control into sharepoint, and after doing work around I have got this solution for others:

1. Build your assembly(project) and install it in the GAC on the server.

2. Copy the ascx control(MultiColumnLookupField.ascx) to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

3. Copy the fldtypesMultiColumnLookup.xml to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML

4. Reset IIS

Enjoy green coding

Hussain Naqvi

use this online tool for free code generation