Dependency error with excel interop dll in .NET app -
i running .net app on local machine uses microsoft excel interop library. has been working until today when removed library , added project. until few weeks ago had been using trial version of excel application work , working after trial had expired. afraid since trial expired , removed library project , put in causing error. correct here? should re-installing excel fix problem?
here error when try run application:
parser error message: not load file or assembly 'microsoft.office.interop.excel, version=14.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)
and logs:
=== pre-bind state information === log: user = aaron-pc\aaron log: displayname = microsoft.office.interop.excel, version=14.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 (fully-specified) log: appbase = file:///c:/users/aaron/documents/visual studio 2012/websites/website1/ log: initial privatepath = c:\users\aaron\documents\visual studio 2012\websites\website1\bin calling assembly : (unknown). === log: bind starts in default load context. log: using application configuration file: c:\users\aaron\documents\visual studio 2012\websites\website1\web.config log: using host configuration file: c:\users\aaron\documents\iisexpress\config\aspnet.config log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: microsoft.office.interop.excel, version=14.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 log: attempting download of new url file:///c:/users/aaron/appdata/local/temp/temporary asp.net files/root/fd4ebee9/714ba73d/microsoft.office.interop.excel.dll. log: attempting download of new url file:///c:/users/aaron/appdata/local/temp/temporary asp.net files/root/fd4ebee9/714ba73d/microsoft.office.interop.excel/microsoft.office.interop.excel.dll. log: attempting download of new url file:///c:/users/aaron/documents/visual studio 2012/websites/website1/bin/microsoft.office.interop.excel.dll. wrn: comparing assembly name resulted in mismatch: major version err: failed complete setup of assembly (hr = 0x80131040). probing terminated.
also aware of fact microsoft doesn't recommend using excel in .net apps please not factor answer. thanks!
i ended deleting microsoft.office.interop.excel
dll project , changing assembly in web.config file match assembly found in c:\windows\assembly
, works. tipped off this question.
Comments
Post a Comment