Skip to main content

SharePoint WebPart Error - Unable to add selected web part (s) – MOSS 2007

ISSUE:

Recently I faced this issue that when I try to deploy my WebPart. 

Unable to add selected web part(s).

WebPartName: Cannon unregister UpdatePanel with ID ‘ctl00RTMPanel’ since it was not registerd with the ScripManager. This might occure if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel.

 

image

I faced this issue twice and both the time the issue was not what display here. This could be sure to any error in the WebPart. Following are list resolution from multiple instances.

 

RESOLUTION:

1. Check the WebPartName.webpart file.

Check whether you have a proper PublicKeyToken value. When I face the issue the value was PublicKeyToken=$PublicKeyToken$.

If you have used WSP builder then in the Visual Studio you will find this file at \WebPartsProject\12\TEMPLATE\FEATURES\WebPartName\WebPartName.webpart.

Sometime when you create a new WebPart using WSP builder then you do not get the correct value. The WebPartName.webpart file looks like below. I have changed our PublicKeyToken to a sample key.

 

<?xml version="1.0" encoding="utf-8" ?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="NamespaceName.WebPartName, WebPartName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99a999999d999999" />
<importErrorMessage>Cannot import WebPartName Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">WebPartName</property>
<property name="Description" type="string">web part for organizational chart.</property>
</properties>
</data>
</webPart>
</webParts>


2. Name of the WebPart should match the folder name. I mean if your WebPart name is WebPartName then the folder at \WebPartsProject\12\TEMPLATE\FEATURES\WebPartName should match to WebPartName.



3. Check you are getting proper data returned from your data provider and you are not missing any field in the return data. I was deploying my employee directory WebPart while UserProfile and People search scope was not configured properly. Once I fixed this issue everything worked great.



 



TROUBLE SHOOTING TIPS:


In both instance what I did was to create a brand new WebPart and copy code from old to new. Not complete code but few methods at a time. This greately help in pin pointing the issue.




Comments

  1. Hopefully, this article will greatly help in pin pointing the issue. Many thanks for sharing. Click on http://proofreading-services.org/, if you want your article to be written by a first-class essay writer!

    ReplyDelete
  2. Despite the fact that it may require a little time venture on your part, it can truly pay off at last by sparing you cash. You may even observe the majority of this data on one site. Cash Advance Chicago

    ReplyDelete

  3. Utilize payday credits deliberately. Perused the payday credit organization's agreement painstakingly, before marking and get some information about all charges and loan fees, how they work and in what conditions they apply. Attempt to discover a moneylender on favorable terms that has been working together for a long time, in any event. This will help you abstain from being misled.
    Payday Loans

    ReplyDelete
  4. Are you looking to dough into a checking account, the whole quantity typically cannot be instantly opened; there may be a waiting era for the check to clear?
    c24 hour check cashing Cincinnati

    ReplyDelete

Post a Comment

Popular posts from this blog

TIME – 25 Best Blogs of 2009

Every year Time makes a list of best blogs in the world. They chose 25 blogs from millions of blogs in the world, spanning politics, housekeeping, astronomy and everything in between. Below if a direct link to the TIME website for the list. I also copied it to easy comparison of last year best with this year best blogs.   25 Best Blogs of 2009     25 Best Blogs 2008   25 Best Blogs of 2009 Talking Points Memo The Huffington Post Lifehacker Metafilter The Daily Dish by Andrew Sullivan Freakonomics BoingBoing Got2BeGreen Zen Habits The Conscience of a Liberal: Paul Krugman Crooks and Liars Generación Y Mashable Slashfood Official Google Blog synthesis bleat /Film Seth Godin's Blog Deadspin: Spor

Microsoft 2007 - Microsoft Technology That Defines a New Decade

Last year Microsoft came with VS.NET 2005, SQL Server 2005 etc. VS.NET 2005 was a major change over VS.NET 2003 in terms of feature, web controls and the way you program. Same is true for SQL Server 2005 you can now use C# or VB.NET to create store procedures and store procedures could be a .NET class. So no more missing of Oracle package in SQL Server. Be prepared for much more then this as Microsoft is now changing everything. Year 2007 Microsoft will bring a new Operating System named Vista (formerly code-named "Longhorn") First Look... that have completly new file system named WinFs and 1000s of new features. Vista will also come with WinFX which is set of next-generation managed APIs provided by Microsoft. Microsoft have created a new section in their MSDN website [ View ... ] so that people can start preparing for the next generation i.e. 2007. Here you can get information on Windows Presentation Foundation WPF (formerly code named "Avalon") provides the fo