Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...