Click here to Skip to main content
15,437,332 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello!

I made a sharepoint winform application(reference Microsoft.SharePoint.dll version 12.0)

I already registered that dll using gacutil.

In my PC, SharePoint 2016 is installed, in Visual studio, build and run application is okay.

But when I try to run some button event, exception occured like this

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


So I think problem is the different dll between my PC SharePoint(version 16)

and Application`s SharePoint(version 12). Is that right?

If that is right, is it impossible to run in my PC? or another way?

Please somebody help me

What I have tried:

Searching about it but not completed....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900