1

Closed

Metadata file 'C:\Program Files (x86)\Common Files...

description

Everything works until I execute a query, then I receive the following error in LinqPad.
 
Metadata file 'C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.dll' could not be found (See attached)
 
Environment variables:
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
 
I am running on Windows 7 64bit Ultimate

file attachments

Closed Mar 15, 2011 at 9:01 AM by theiwaz
This issue was closed due to problem solving

comments

theiwaz wrote Feb 21, 2011 at 1:20 PM

The screenshot you provided indicates that you are running LinqPad 4 instead of a release for NET 3.5. SharePoint does not allow access from a .NET 4.0 process and the resulting error messages could sometimes be strange...
The code in the driver which is responsible for loading the SharePoint Assemblies looks like this:
string spdllHive = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles), @"Microsoft Shared\Web Server Extensions\14\ISAPI");

As you can see there is nothing special with it and on a 64x Machine this should result in 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.dll'.
Can you please give it a try with LinqPad v2.31.0?

Cheers,
Marcus

wrote Mar 15, 2011 at 9:01 AM

wrote Feb 14, 2013 at 12:01 AM

wrote May 16, 2013 at 5:32 AM