Archive for July, 2008

Sharepoint loading assembly error in the event log

In my application event log window, I am getting this error:

Error: Failure in loading assembly: HelloWorldWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5

 

This is caused by your web.config referencing assembly that doesn’t exists any more. The most likely cause is that you added HelloWorldWebPart as a safecontrol as part of a tutorial and then delete it later, but didn’t remove the reference.

The web.config is located at C:\Inetpub\wwwroot\wss\VirtualDirectories\<port number>. In most cases, the port will probably be 80. If you examine the web.config file, you may find the following reference:

<SafeControl Assembly=”HelloWorldWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5″ Namespace=”HelloSpace” TypeName=”*” Safe=”True” />

 

Delete this reference and the problem will go away.

July 24, 2008 at 7:52 am 2 comments


Calendar

July 2008
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category