Running C# Windows Application
-
I have built a simple C# Windows Application and it runs on the machine I built it on fine. I put the .EXE on another machine and tried to run it there it failed. It needed mscoree.dll so I added that to the directory the .EXE is in. Now I'm getting a .NET frame work initialization error. I guess I need to install the .NET frame work (maybe?). If that is the problem, how do I do that without installing the Visual Studio.NET? Rick Crone
-
I have built a simple C# Windows Application and it runs on the machine I built it on fine. I put the .EXE on another machine and tried to run it there it failed. It needed mscoree.dll so I added that to the directory the .EXE is in. Now I'm getting a .NET frame work initialization error. I guess I need to install the .NET frame work (maybe?). If that is the problem, how do I do that without installing the Visual Studio.NET? Rick Crone
You need to have the .NET runtime installed on target machines [its a 18-19 MB download] Nish Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic -
I have built a simple C# Windows Application and it runs on the machine I built it on fine. I put the .EXE on another machine and tried to run it there it failed. It needed mscoree.dll so I added that to the directory the .EXE is in. Now I'm getting a .NET frame work initialization error. I guess I need to install the .NET frame work (maybe?). If that is the problem, how do I do that without installing the Visual Studio.NET? Rick Crone
download this and install it on the target machine http://download.microsoft.com/download/VisualStudioNET/Trial/2.0/W982KMeXP/EN-US/dotnetfx.exe Nish Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic -
I have built a simple C# Windows Application and it runs on the machine I built it on fine. I put the .EXE on another machine and tried to run it there it failed. It needed mscoree.dll so I added that to the directory the .EXE is in. Now I'm getting a .NET frame work initialization error. I guess I need to install the .NET frame work (maybe?). If that is the problem, how do I do that without installing the Visual Studio.NET? Rick Crone
Rick you need to install the .NET framework on the target machine. Developing for .NET brings along awhole slew of new things, including runtime baggage. If you got VS.NET via an MSDN subscription then you should also have got a CD with the entire .NET Framework on it. Use that on the target machine. From what I have heard there will be a "service pack" for Windows XP (not sure about 2000, but probably as well) that will include the .NET Framework. This should be released once .NET has gone gold. Future versions of Windows will have it all built in. I can't wait :) regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
-
Rick you need to install the .NET framework on the target machine. Developing for .NET brings along awhole slew of new things, including runtime baggage. If you got VS.NET via an MSDN subscription then you should also have got a CD with the entire .NET Framework on it. Use that on the target machine. From what I have heard there will be a "service pack" for Windows XP (not sure about 2000, but probably as well) that will include the .NET Framework. This should be released once .NET has gone gold. Future versions of Windows will have it all built in. I can't wait :) regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge