Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Sharepoint cannot deserialize web part

  Asked By: Salvatore    Date: Apr 08    Category: Sharepoint    Views: 1943

I am developing a web part for sharepoint 2003 portal. when I drag and
drop the web part I receive the following 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.

I have included an assembly which was not strongly typed. I
used "tlbimp.exe" to include a key-pair and repoducing the assembly.
Now the assembly goes in GAC and is proper but it causes this error in
sharepoint. Has anyone come accros such error?



3 Answers Found

Answer #1    Answered By: Amanda Lewis     Answered On: Apr 08

Yes - you need to check your code - one of your properties probably has
a wrong type or some such thing - for example you may have declared an
integer but are trying to store a string. Basically SharePoint cannot
convert the properties stored in the Web Part to useable values.

Answer #2    Answered By: Cassie Snyder     Answered On: Apr 08

But am still facing the same problem.
What you are saying is right.

I have default property defined as "Text", but want to display charts
(Statistics) on the web  part.
when I declare a chart it starts giving this error in sharepoint.
what Default Property do I have to give for displaying charts?
Am using TeeChart for .net assembly for the same.

Any inputs on the same are valuable.

Answer #3    Answered By: Parijat Pathak     Answered On: Apr 08

I saw this error once. It was related to permission to the windows temp
dir. You should strongly name your assembly too.
If the webpart access file directories u may need to change the security level
in web.config.

Didn't find what you were looking for? Find more on Sharepoint cannot deserialize web part Or get search suggestion and latest updates.