You code is not ok if it will be viewable in Web Part Gallery.

You're right about "object reference" might as well say "Bananas are falling 
from the sky".


*         The best approach is to hook into debugger and step through your 
code...that's if it's getting there in the lifecycle.
http://www.sharepointdevwiki.com/display/public/SharePoint+Development+Debugging

o   Might be before, if it's before, you need to check the ULS logs out to see 
f there are any errors there.

*         Safe Controls maybe?

*         Are the dll's in the GAC or bin for the referenced assemblies?

*         Have you tried adding the web part via the web UI rather than through 
SharePoint Designer?

Good luck,
Jeremy


From: [email protected] [mailto:[email protected]] On Behalf Of Haris Siakallis
Sent: Tuesday, 23 June 2009 10:50 PM
To: [email protected]
Subject: Webpart in SharePoint Designer

Hello,

I have a web part that references 2 custom assemblies and also a telerik 
assembly. The web part works fine, and I can view it in the web part gallery. 
However I cannot import it into SharePoint designer it says "object Reference 
not set to an instance of an object". With the missing assembly property set 
to: cannot import this web part.

I have other web parts that do not reference these assemblies and they seem to 
render ok in sharepoint designer.

I know these errors can be caused by a number of different things but if anyone 
can point me into the right direction it would be greatly appreciated.
For example is my code definitely ok? If I can view it in the web part gallery?

Kind regards,
Haris Siakallis

________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to