.net - Using WSS 3.0 console application on SharePoint 2013 -


we have console application used administer wss 3.0 sites. application uses microsoft.sharepoint assembly, in wss 3.0 of version 12.0.0.0

now, want use same console application on sharepoint 2013, without having rebuild new 1 specific version. since sharepoint 2013 comes version 15.0.0.0 of microsoft.sharepoint assembly, have created application configuration file following content:

<?xml version="1.0" encoding="utf-8" ?> <configuration>    <runtime>       <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">        <dependentassembly>          <assemblyidentity name="microsoft.sharepoint"                            publickeytoken="71e9bce111e9429c"                            culture="neutral"      />          <!-- redirecting version 15.0.0.0 of assembly. -->          <bindingredirect oldversion="12.0.0.0"                           newversion="15.0.0.0" />        </dependentassembly>       </assemblybinding>    </runtime> </configuration> 

it doesn't work however, binding fails. ideas why?

i see following in binding logs:

** assembly binder log entry  (2013-07-15 @ 11:28:53) **  operation failed. bind result: hr = 0x80070002. system cannot find file specified.  assembly manager loaded from:  c:\windows\microsoft.net\framework64\v2.0.50727\mscorwks.dll running under executable  c:\users\fredrikg\desktop\customer\bin\usemicrosoftsharepoint.exe --- detailed error log follows.   === pre-bind state information === log: user = infoweaver\fredrikg log: displayname = microsoft.sharepoint, version=12.0.0.0, culture=neutral, publickeytoken=71e9bce111e9429c  (fully-specified) log: appbase = file:///c:/users/fredrikg/desktop/customer/bin/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = null calling assembly : usemicrosoftsharepoint, version=1.0.0.0, culture=neutral, publickeytoken=null. === log: bind starts in default load context. log: using application configuration file: c:\users\fredrikg\desktop\customer\bin\usemicrosoftsharepoint.exe.config log: using machine configuration file c:\windows\microsoft.net\framework64\v2.0.50727\config\machine.config. log: redirect found in application configuration file: 12.0.0.0 redirected 15.0.0.0. log: post-policy reference: microsoft.sharepoint, version=15.0.0.0, culture=neutral, publickeytoken=71e9bce111e9429c log: gac lookup unsuccessful. log: attempting download of new url file:///c:/users/fredrikg/desktop/customer/bin/microsoft.sharepoint.dll. log: attempting download of new url file:///c:/users/fredrikg/desktop/customer/bin/microsoft.sharepoint/microsoft.sharepoint.dll. log: attempting download of new url file:///c:/users/fredrikg/desktop/customer/bin/microsoft.sharepoint.exe. log: attempting download of new url file:///c:/users/fredrikg/desktop/customer/bin/microsoft.sharepoint/microsoft.sharepoint.exe. log: probing urls attempted , failed. log: attempting install assembly using windows installer. log: gac lookup unsuccessful. 


Comments