[02/03] Getting program to work on another computer.
So, another amature question, and thank you for your kind help in advance.
I recently finished a small program for calculation different commissions. I don't recall if I started with a new blank solution or a new project. I do know that VS did a lot of the work for me (I used the design mode for all the forms, and I wrote the actual calculations code myself.
My problem, I can't get the program to work on another computer. I've built the solution, and built the program (under the "Build" menu). I've tried copying both of the .exe files located at \CC\bin\CC.exe and the other at \CC\obj\Debug\CC.exe. I get a missing .DLL file error when I try to run those .exe files on another computer. Anyone know what I'm missing? Thank you again.
-Christina
Re: [02/03] Getting program to work on another computer.
First, don't use the executables in the obj folder as those are created during the building process. Always used the ones located in \bin\Debug\ or \bin\release\ (use release when "releasing" the app and debug when "debugging" the app).
Secondly, what DLL is it saying that's missing? Do you have the .Net framework 1.1 installed on the other computer? Do you have any other dependencies? Are you accessing any databases?
Re: [02/03] Getting program to work on another computer.
"Releasing" the program to what, exactly? I'm not familiar with that term.
The error message on the other computer is:
A required .DLL file, MSCOREE.DLL, was not found.
I would imagine the framework is installed on the other computer, though I can't be positive (it's not my comptuer and the person hasn't gotten back to me yet).
Dependencies? I don't think so, but what are other dependencies? No database...
Re: [02/03] Getting program to work on another computer.
Quote:
Originally Posted by CTringali
"Releasing" the program to what, exactly? I'm not familiar with that term.
Debugging is for when you need to debug the app. Releasing is when you're relasing the application to someone.
Quote:
Originally Posted by CTringali
The error message on the other computer is:
A required .DLL file, MSCOREE.DLL, was not found.
I would imagine the framework is installed on the other computer, though I can't be positive (it's not my comptuer and the person hasn't gotten back to me yet).
That DLL is part of the .Net framework. Have them install the .Net framework 1.1. Most computers don't have it installed yet.
Re: [02/03] Getting program to work on another computer.
I can't get the application to work on a computer without it installed, can I? This program is going to be released to an entire Real Estate office. I don't have much control over what is installed and what is not, though I'm sure I could get them to install the .NET Framework.
Another question, not really part of the "programming"... How do I change the icon for the .exe file to a custome built icon?
Re: [02/03] Getting program to work on another computer.
Quote:
Originally Posted by CTringali
I can't get the application to work on a computer without it installed, can I? This program is going to be released to an entire Real Estate office. I don't have much control over what is installed and what is not, though I'm sure I could get them to install the .NET Framework.
Nope. The .Net framework is required when you develop applications using the Framework. you can't make a program with a framework and expect it to work without it.
You could always create an installer for your app that includes the .Net framework and have it install everything at once. Though, since it's a large company, they most likely have IT that regulate anything being installed so they may not allow that.
Next time I'd suggest doing some research in the language you're using before developing anything in it especially if it's for a large company.
Quote:
Originally Posted by CTringali
Another question, not really part of the "programming"... How do I change the icon for the .exe file to a custome built icon?
Right click your project in the solution explorer and select properties. It's located in there (I don't remember its exact locaiton but it should be easy to find).