none
Share point 2013 assembly RRS feed

  • Question

  • I am not able to find microsoft.sharepoint assembly under c:\windows\assembly in my sherepoint 2013 installation. I can see the same in share point 2010 installation. Is any thing got changed in 2013?
    Monday, March 25, 2013 11:08 AM

Answers

  • Hi!

    Check if you can find it on C:\Windows\Microsoft .NET\assembly\GAC_MSIL\Microsoft.SharePoint\v4.0_15.0.0.0__71e9bce111e9429c.

    You can also look in the 15 hive on the ISAPI folder or on the Visual Studio SharePoint Tools folder (try C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SharePointTools\ReferenceAssemblies).

    Hope it helps.

    Cheers

    Monday, March 25, 2013 11:25 AM
  • So the SharePoint DLL is written in .NET 4, and apparently you're application uses an older version of the .NET framework, probably 3.5 Check this in VS, Projects > Properties. If you want to use the .NET 4 assembly, you'll have to change the version used by your app.

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    • Marked as answer by Emir Liu Tuesday, April 2, 2013 6:46 AM
    Tuesday, March 26, 2013 7:51 AM
    Moderator

All replies

  • Hi!

    Check if you can find it on C:\Windows\Microsoft .NET\assembly\GAC_MSIL\Microsoft.SharePoint\v4.0_15.0.0.0__71e9bce111e9429c.

    You can also look in the 15 hive on the ISAPI folder or on the Visual Studio SharePoint Tools folder (try C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SharePointTools\ReferenceAssemblies).

    Hope it helps.

    Cheers

    Monday, March 25, 2013 11:25 AM
  • Hi,

    I can see Microsoft.SharePoint.dll under "C:\Windows\Microsoft .NET\assembly\GAC_MSIL\Microsoft.SharePoint\v4.0_15.0.0.0__71e9bce111e9429c".

    I have only "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0" folder not v11.0. I can not find SharePointTools folder in my system. 

    also ISAPI folder contains Microsoft.SharePoint.dll. If I copy "Microsoft.SharePoint.dll" my bin folder I get following error in load() 

    "This assembly is built by a runtime newer than currently loaded runtime"

    Tuesday, March 26, 2013 5:57 AM
  • So the SharePoint DLL is written in .NET 4, and apparently you're application uses an older version of the .NET framework, probably 3.5 Check this in VS, Projects > Properties. If you want to use the .NET 4 assembly, you'll have to change the version used by your app.

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    • Marked as answer by Emir Liu Tuesday, April 2, 2013 6:46 AM
    Tuesday, March 26, 2013 7:51 AM
    Moderator
  • I have .Net 4.5 and VS 2010 installed in my system...but still I get this error...
    Tuesday, March 26, 2013 11:52 AM
  • I have one more clarification too...Do we need to copy microsoft.sharepoint.dll manually or It will get created in  c:\windows\assembly after share point installation.
    Tuesday, March 26, 2013 11:56 AM
  • It's stored in the GAC automatically after SharePoint installation, and the fact that you have .NET 4.5 and VS 2010 installed on your system doesn't mean that your application actually uses this version. As I indicated before, it's a good idea to check what version of .NET your App is actually using, because the error msg indicates it's not .NET 4 but a lower version

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    Tuesday, March 26, 2013 12:09 PM
    Moderator
  • It's stored in the GAC automatically after SharePoint installation, and the fact that you have .NET 4.5 and VS 2010 installed on your system doesn't mean that your application actually uses this version. As I indicated before, it's a good idea to check what version of .NET your App is actually using, because the error msg indicates it's not .NET 4 but a lower version

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    I agree with Margriet. Check the version of the assembly just to be sure.

    Regards

    Tuesday, March 26, 2013 1:51 PM
  • Yes you are true, I used VS 2008 for building my binary which can sets target atmoset .Net environment to 3.5. So my binary was running in .net 3.5, which resulted in this issue. Thankyou for all the replies.
    Monday, April 8, 2013 10:51 AM