Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am getting this error message when I run my Web application. I do have MS word 2007 install in my computer

Error : An error Occured during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Could not load file or assembly="Office, Version=, Culture=neutral, PublicKeyToken=71E9BCE111E9429C or one of its dependencies. The system cannot find the specified.

Thank you
Аslam Iqbal 1-Dec-11 0:34am    
Are you using any 2rd party tools?

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.
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.
Share this answer
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()]
Share this answer

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