Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Dynamic Referencing Microsoft.SharePoint.dll based on its versoin.

$
0
0

Hi All!

I am using Mirosoft.SharePoint.dll in my code. I compile the code having reference of Microsoft.SharePoint.dll version 12.0. I assumed that it would automatically load any version of dll available at runtime. But thats not happening. When I run my applicatoin, it gives me error

"Could not load file or assembly 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified." 

The version of DLL available on system is 15.0.0.0. And I have to use same piece of code for every version of SharePoint (because each of the dll has same classes which I need) Please guide me how can I resolve my issue.

Is there any way I can load/refer a DLL based on version at runtime?

Thanks in advance.

Rizwan Ahmed 


Rizwan Ahmed. Software Engineer - Microsoft Lync | Exchange | SharePoint | Blackberry Enterprise Server | .NET


Viewing all articles
Browse latest Browse all 25064

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>