Objects within a Web Part - how?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Objects within a Web Part - how?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Gemma M
Guest





Posted: Mon Oct 31, 2005 1:51 pm    Post subject: Objects within a Web Part - how? Reply with quote

Hi,

I have a problem.

I am attempting to write a Web Part. However, if I attempt to create the
instance of an object (strongly named, either in or out of the GAC), I get
the following error :

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.

The object I am adding is private to the Web part, is has one string
property. The Web Part works fine, until the instantiation of this object
is added.

I granted all the user priviledge as recommended on a Microsoft Web site
which suggested it might have something to do with access to temp and log
directories.

I am now stuck. How can I make a Web Part instantiate an object, without it
failing, and keeping the reason for the failure to itself?

When I debug the Web Part, the debugger/Sharepoint throws a wobbly (thread
terminates) in antisipation of the method which contains the object
instantiation, no matter where in the method the line of code which
instantiates the object.

Gem x
Back to top
Gary A. Bushey [SPS MVP]
Guest





Posted: Mon Oct 31, 2005 9:51 pm    Post subject: Re: Objects within a Web Part - how? Reply with quote

Is your web part in the GAC itself? If not, try it there.

--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"Gemma M" <gemmamakepiece@hotmail.com> wrote in message
news:dk56l6$ojt$1$8302bc10@news.demon.co.uk...
Quote:
Hi,

I have a problem.

I am attempting to write a Web Part. However, if I attempt to create the
instance of an object (strongly named, either in or out of the GAC), I get
the following error :

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.

The object I am adding is private to the Web part, is has one string
property. The Web Part works fine, until the instantiation of this object
is added.

I granted all the user priviledge as recommended on a Microsoft Web site
which suggested it might have something to do with access to temp and log
directories.

I am now stuck. How can I make a Web Part instantiate an object, without
it failing, and keeping the reason for the failure to itself?

When I debug the Web Part, the debugger/Sharepoint throws a wobbly (thread
terminates) in antisipation of the method which contains the object
instantiation, no matter where in the method the line of code which
instantiates the object.

Gem x


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB