Solved Reference path problems

Posted on 2007-08-08
Last Modified: 2013-11-26
I have a (vs 2003) Windows app that creates a spreadsheet.  I have added references for Microsoft Core Library, Office Interop, and two others I found necessary to do what I was doing in the program.  The program works fine on my desktop but I have to deploy that to a windows server and it will be run within a Windows script in batch mode.  The problem I have is that  the program does not find the references when I move it to the server.  I have tried copying the dll's to the folder containing the .exe and it does not help.  I have also removed the references and adding them back from the server and that does not work.  The program is still on my desktop when I change out the references.  I have looked at teh path in properties.  I would like to change the path so it will change as I move the executable.  
Question by:garyinmiami2003
    LVL 96

    Accepted Solution

    Is Office installed on the server?  It won't work if it isn't.  The Interop libraries are only run-time callable wrappers for the COM libraries.


    Author Comment


    Office is not installed on the server.  To be sure I understand, the Interop libraries use components within office and are not all self contained?  Just trying to understand it well enough to seek having Office placed on the server where this runs.  If you can add a sentence or two that would haelp me effectively communicate this to the server folks, I'd appreciate it.  I will close the question soon anyway.

    LVL 96

    Expert Comment

    by:Bob Learned
    Tell them that it is against the deployment licensing from Microsoft to attempt to deploy the type libraries for Office to a machine that doesn't have Office installed.  Tell them that the type libraries are required in order to access an Office document from a .NET application.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now