• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 983
  • Last Modified:

VB.net Reference path problems

I have a vb.net (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.  
0
garyinmiami2003
Asked:
garyinmiami2003
  • 2
1 Solution
 
Bob LearnedCommented:
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.

Bob
0
 
garyinmiami2003Author Commented:
Bob:

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.

Gary
   
0
 
Bob LearnedCommented:
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.

Bob
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now