Webpart working on some sites and not on others on a same server

Last post 10-21-2008 7:39 AM by Basil Kubba. 1 replies.

Sort Posts:

  • Webpart working on some sites and not on others on a same server

    06-09-2008, 4:10 AM
    • Member
      112 point Member
    • kalahaine
    • Member since 05-28-2007, 10:59 AM
    • Posts 146

    Hello, I have been struggling for four days now with a sharepoint webparts issue and did not manage to solve it.

    I developed a personal webpart using chart fx charts for .Net. In order to test this webpart, I was using a test site.

    The webpart works well, the graphs show correctly and I am absolutely sure everything is ok with the webpart. Once I was sure I could deploy it on the production site ( myserver:80 ),

    I tried to do so using WSS extensions for VS (WSSeVS). There was no problem deploying the webpart and it appears in the webpart collection of the site. But, when trying to add it to a page or to preview it, I have got an error : 

    Cannot import myWebPart Web Part. à Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections) 
    à Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb) 
    à Microsoft.SharePoint.WebPartPages.WebPartPreview.get_WebPart() à Microsoft.SharePoint.WebPartPages.WebPartPreview.CreateChildControls() 
    à System.Web.UI.Control.EnsureChildControls() à System.Web.UI.Control.PreRenderRecursiveInternal() 
    à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Control.PreRenderRecursiveInternal() 
    à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Control.PreRenderRecursiveInternal() 
    à System.Web.UI.Control.PreRenderRecursiveInternal() à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
     

    Both sites are on the same server. The only difference is that my test site port was 40560 whereas main site's port is 80.

    The webpart still works on the test site but whatever I try I do not manage to get it working on the main site.

    I do not have any idea on how to solve it now. Hope you will be able to help me.

     Thanks a lot and have a good day.

  • Re: Webpart working on some sites and not on others on a same server

    10-21-2008, 7:39 AM
    • Member
      2 point Member
    • Basil Kubba
    • Member since 10-21-2008, 7:29 AM
    • Posts 1

    Hi Kalahaine,

    Did you find a solution to your problem above?

    I am encountering the same problem. For companies in our group I have created an extended site from our original on a different port. All the functionality seems to work fine, and I am able to add in the personal WebParts I made, however while the page shows that the WebPart is there on the title it does not show any thing else of the WebParts, and unfortunately SharePoint does not complain or show any diagnostics.

    I would be interested to learn if you made any progress on your problem.

    Thank you and regards

    Basil Kubba

Page 1 of 1 (2 items)