How to solve System.IO.FileNotFoundException?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote a ASP.NET program which can generate a Excel Report, that I using
WindowXP and Oiffce XP to develop. It is work, but after I deployed to Window
Server 2003 with Office 2003. It occur the error as following,
File or assembly name Office, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: File or assembly name
Office, or one of its dependencies, was not found.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

How can solve it?
 
See if one of the files and or commands changed.

The best thing to do would be to develop on a similar environment as you
will be running on in production.

David
 
Back
Top