Thursday, March 4, 2010

Web Part Error: One of the properties of the Web Part has an incorrect format

After an IISReset, it was experienced that all web parts in all site collections of a web application were not being rendered correctly and same error message had been shown in web parts areas. Error message was

“Web Part Error: One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again.”

WebPart Error

By examining configuration file (web.config) of that SharePoint Web Application, it was noticed that there was a mistake in a Safe Control entry in Safe Controls section and this mistake was done by me while entering a safe control entry for a newly deployed web part. After removing that entry or making it correct, error gone and all web parts were working good.