Sharepoint loading assembly error in the event log

July 24, 2008 at 7:52 am 2 comments

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.

Advertisements

Entry filed under: Sharepoint, WSS. Tags: , .

Wrong FS Error while mounting USB flash drive in Linux Earth is missing after Google Earth Linux Installation

2 Comments Add your own

  • 1. nsp  |  June 23, 2010 at 1:56 am

    How you know this web part is still using or not ?

    Reply
  • 2. ll  |  August 31, 2011 at 7:47 am

    Be really carefull doing this! make a backup of the file first!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2008
M T W T F S S
« Jun   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts


%d bloggers like this: