Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebPartError: Properties - incorrect format - cannot serialize?

Status
Not open for further replies.

MarcBey

Programmer
Apr 13, 2005
10
CH
Hey all,

i get the following error with my webpart:

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.

In the beginning I could integrate it into the page without any problems. It
contains own property tool parts, but then suddenly the error occured. Now i
modified the webpart so that it just writes a simple string, no additional
properties at all, but i get the same error again.

Afterwards I changed all user writes on the %temp% folder to read and
write...did a iisreset...but nothing changed!

Do you have any idea, where the problem could be?

Thanks a lot for any clues!!!

Marc
 
Is the old webpart in the GAC? if so use the gac util to delete it and upload your new one. Then recycle the Application Pool..

You could also try to delete the part from the site entirely, use frontpage to be sure the register is gone to (top of the code). And then re-add.

Else you could try to debug see if that holds any clues, to debug see the programming tasks in the administration guide.

Let me know how it goes..
 
Hey Chaser,

the webpart isn't in the GAC registered. What do you mean with recycle the application pool?

I have no problem with this webpart on my local system, just at the live server. Therefore i cant debug.

Is it not enough to delete the webpart from the page...is it helpful to delete it from the cataloge as well?
What do you mean with the fronpage thing...dont get this point?

Really appreciate your help!

Marc

 
Oke - each Website in IIS has an application pool (if correctly setup) is above the websites folder in IIS. If you make any changes you need to recycle the pool (RMB). An IISRESET does this to (i believe).

"...is it helpful to delete it from the cataloge as well?
" just try this too, to be safe!

As for the frontpage thing, each time you place a webpart on a page it places an register tag for that webpart in the page as well as the webpart its self. To completly remove a webpart you need to delete the webpart from either the browser interface or form frontpage. Sometimes i have noticed the the register entry on the page doesnt get deleted and messes things up.

So delete this tag from the ASPX page in frontpage (cos this program is safe to use with Sharepoint)

The tag looks like something like this:
<%@ Register TagPrefix="WpNs7" Namespace="MyWebParts" Assembly="WebpartV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=hef4c70c66ab739d" %>
Remove it and completely re-add the webpart.

I am going home now but ill check in tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top