Webpart class is missing from namespace microsoft.sharepoint.webpartpages

Answered Webpart class is missing from namespace microsoft.sharepoint.webpartpages

  • 2 สิงหาคม 2555 19:33
     
     

    Visual studio is showing error while adding the Namespace "microsoft.sharepoint.webpartpages.Webpart" of missing assembly reference, same problem i m facing with "SPLimitedWebPartManager", completely updated windows server 2008 r2, upgraded the sharepoint 2010 with its service pack sp1, even then facing same problem, but the same code is working fine on other machine.

    Thanks in advance


    Ashok Sah

ตอบทั้งหมด

  • 2 สิงหาคม 2555 19:42
    ผู้ตอบ
     
     

    hello,

    As far as I know the class are case sensitive, have you tried the Microsoft.SharePoint.WebPartPages namespace?


    Best regards, Christopher.
    Blog | Mail
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • 2 สิงหาคม 2555 19:50
     
     

    Hello,

    Make sure you have referenced Microsoft.SharePoint.dll that is located at your sharepoint folder at  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • 3 สิงหาคม 2555 17:33
     
     
    thanks for the reply, but the provided solution didnt work, are you getting the reference of the above mentioned class in sharepoint dll, do we need to install to get the additional update to get this assemble referenced

    Ashok Sah

  • 3 สิงหาคม 2555 17:46
     
     

    Yes, namespace required is located in sharepoint.dll. You get sharepoint.dll instaled on a machine that has Sharepoint installed on it and is located at

      C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI 

    know as  "14 Hive" folder.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • 3 สิงหาคม 2555 18:09
     
     
    what is the version number of your sharepoint.dll, mine showing 14.0.0.0

    Ashok Sah

  • 3 สิงหาคม 2555 18:19
     
     

    Same here


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • 3 สิงหาคม 2555 18:22
    ผู้ตอบ
     
     
    what is the error message?

    Best regards, Christopher.
    Blog | Mail
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • 3 สิงหาคม 2555 18:28
     
     
    when ever i m trying to using the namespace  in Visual studio 2010 sharepoint project like this ""using Webpart = Microsoft.SharePoint.Webpartpages.webpart" visual studio is showing the error of missing reference, same for the SPLimitedWebPartManager", yesterday i also upgraded the sharepoint to sp1 ,

    Ashok Sah

  • 9 สิงหาคม 2555 9:19
    ผู้ดูแล
     
     คำตอบ

    Hi Ashok,

    Please go to the references of your Visual Studio 2010 SharePoint Project, and find if the "Microsoft.SharePoint.dll" reference correctly. If not, you can delete it and re-reference it from this path" C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI".


    Thanks,
    Lhan Han

    • ทำเครื่องหมายเป็นคำตอบโดย Lhan HanModerator 12 สิงหาคม 2555 11:01
    •