Solved

How to remove an errant WebPart from a SharePoint site

Posted on 2012-04-05
6
709 Views
Last Modified: 2012-04-05
I am working on a SharePoint site that was restored to a development machine from a test server. Whenever I try to compile and build a new Web Part that I am working on from Visual Studio, I get the following error (in the browser Window):

Line 1:  <%@ Register TagPrefix="WpNs3" Namespace="<ProjectName>.WeatherMap" Assembly="<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1"%>

The ENTIRE error page looks like this:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly '<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 1:  <%@ Register TagPrefix="WpNs3" Namespace="<ProjectName>.WeatherMap" Assembly="<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1"%>
Line 2:  <%@ Register TagPrefix="WpNs2" Namespace="<ProjectName>.GenericStatus" Assembly="<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1"%>
Line 3:  <%@ Register TagPrefix="WpNs1" Namespace="<ProjectName>.Forecast" Assembly="<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1"%>
 

Source File: /cnic/default.aspx    Line: 1

Assembly Load Trace: The following information can be helpful to determine why the assembly '<ProjectName>, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0521399ff9cdd4c1' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
0
Comment
Question by:Rahsaan-Pringle
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 37812478
Append the querystring argument "?contents=1" to the page url. Use the options that are displayed to delete the webpart from the page.
0
 

Author Comment

by:Rahsaan-Pringle
ID: 37812527
That was certainly useful, thanks. It didn't solve the problem (this is the SharePoint install from hell). I did try it, and I rebooted IIS after deleting some of the web parts that were showing as having errors.
0
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 37812561
So what's the remaining errors?

From looking at the message, your page references features and components that have not been installed on this other server. Just the content database has been moved over?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Rahsaan-Pringle
ID: 37812640
Attached, you will find a PDF with screenshots of what I am seeing. You say I might not have features activated? That's odd, because the site runs fine BEFORE I run the code in debug mode in Visual Studio. Even the web part in question (known as the WeatherMap) looks fine until I try to debug.
Visio-Drawing3.pdf
0
 

Author Comment

by:Rahsaan-Pringle
ID: 37812774
I DID have some features that were not activated, but none of them had to do with the "WeatherMap" Web Part. Following your lead, I activated them all, and the error went away. Now, I'm reloading the site to make sure it works.
0
 

Author Closing Comment

by:Rahsaan-Pringle
ID: 37812827
Moral of the story: Even if you don't think your Web Part is connected to a feature, it might be.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now