Gemma M
Guest
|
Posted:
Mon Oct 31, 2005 1:51 pm Post subject:
Objects within a Web Part - how? |
|
|
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 |
|
Gary A. Bushey [SPS MVP]
Guest
|
Posted:
Mon Oct 31, 2005 9:51 pm Post subject:
Re: Objects within a Web Part - how? |
|
|
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
|
|
|