Could not load file or assembly 'Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
This might occur one or more assembly are not loaded correctly or there is an assembly compatibility issue within your web application. Here is few suggestion.
Solutions 1 :
1. If the web application is in your machine,
Remove existing office assembly from the web application.
Add the office assembly to your web application
Compile your application and run it.
2. If not try to do step 1 in your development machine.
Solution 2
I actually just ran in to a very similar error, for me this fix was going into AssemblyInfo.cs and removing the line containing
[assembly: SecurityTransparent()]
Comments
Post a Comment