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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding own Webpart -problems

Status
Not open for further replies.

Cordoba1405

Programmer
Aug 2, 2005
8
DE
Hello,

I still have the Problem that I can't add my own Webparts to my Sharepoint Site although i even changed the code in the Webpart (in the cs-File of C#). The Webpart was running before the Code-changes.
The trust-level of my web.config is Full and i have signed the webpart with a strong key.

Could it be possible that there is something like a checksum at the webparts, so that you can not simply modify the Code in a Webpart.

Thanks for help.

Cordoba
 
Have you also declared the webpart as safe with your specific strong key? (and is the assembly available in either the BIN of the website or in the GAC?)
 
In addition if you have specified an auto incrementing version nr. (ie 1.0.* instead of 1.0.0.0) in the assembly info, you should make sure you use the current version nr for safe declaration.
 
I had imported the webpart with the stsadm-Tool (so the assembly is in the BIN-Directory of Sharepoint and the entry <Safe Control> in the web.config-file is done automaticly)
The Assembly is strongly-named and the StrongKeyName-File is written in the AssemblyInfo.cs-File.

But I will check your Tip with the Version nr. !
Sometimes tt's very tricky to import an own Webpart in Sharepoint!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top