Crash at runtime
Posted on 2003-11-10
I have just tried to deploy a very small console program onto my live server and of course it crashed at run time. :( IT compiled fin on the live server.
Basically the program that works fine on my development computer opens word documents reads them and then inserts then into a database. My program references The Office XP Primary Interop Assemblies that interacts with the word object libraries.
Here is what i think is the problem.
On my development computer everything is on the same drive.
On the live server the .net framework is on the c: drive and word and my program (which includes the necessary Office XP PIA files) are on the D: drive I think the drive difference is the problem i'm trying to replicate the live server but i have very little resources at work and not much help. I have also got limited access to the live server.
the error that comes up is:
Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Micr
osoft.Office.Interop.Word, or one of its dependencies, was not found.
File name: "Microsoft.Office.Interop.Word"
at CVU.Components.Cv.ReadWordToMemory(String filename)
at CVU.Cvs.GetCvInfo(FileInfo filenames)
at CVU.MainClass.Main(String args)
CVU is the name of my program.
any help would be fantastic.