mjay Posted August 12, 2005 Posted August 12, 2005 Hello, I actually have 2 questions and this is really for vb.net users. 1. When I debug my code I get an exe file that I tried to deploy to another computer. And the program of course did not work. It was looking for a dll file that was in the bin folder on my machine. When I copy that bin folder to the other computer I of course am able to run the program. How do I compile my program so I get an exe file that is not dependable on the dll file? 2. When I run the compiled program on another computer (clients) I get an error message Invalid index. This is completly throwing off because when I run that same progam on the machine I used to build it on, it runs just fine. Could the version of excel be the reason why? Please help I have worked a long time on this program to have it not work on another computer is pittyful. Thanks mjay :rolleyes: Quote
Administrators PlausiblyDamp Posted August 12, 2005 Administrators Posted August 12, 2005 1. That is by design, if you use an external library then you need to deploy it along with your executable. To minimise duplicates they can be installed in a central location known as the GAC (Global Assembly Cache) - however to do so the dll needs to have a strong name (been digitally signed). 2. Without knowing more about what your application does / interacts with it is difficult to pin-point exactly what causes any given error; however there are know incompatibilities between different versions of office. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
techmanbd Posted August 12, 2005 Posted August 12, 2005 With the Excel file, I was having the same problem, and it turned out I had 10.0 and the other computers had 9.0 I think, but was a different version goto this link, and the last reply I had found a solution http://www.xtremedotnettalk.com/showthread.php?t=79754&highlight=excel Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
mjay Posted August 12, 2005 Author Posted August 12, 2005 Thanks on your reply, On question number 1 you completely lost me Question #2. This is a simple vb.net program that reads in a column from an excel spreadsheet, then in extracts data from a text file, compares the two items and displayes whatever information that was on the spreadsheet but not in the text file I just figured that the code is too long and too mundane to post here ... Thanks mjay Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.