Problem with .NET Framework 2 & Windows 2003 Server

Hi experts.

I have installed .NET Framework 2.0 on Windows Server 2003 SP1 R2.
when I want to run a program that I previously built on Windows XP and VS .NET 2005, Windows 2003 Server Generate an error.
I installed .NET Framework 2.0 on other windows O.S. and I had no problem with running my programs.
How I can solve this problem on Windows 2003 Server.

Thank you very much.
LVL 1
MOH_RAsked:
Who is Participating?
 
dstanley9Connect With a Mentor Commented:
See if this helps:

From http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=164465&SiteID=1:

The proper way is to use vcredist_x86.exe.  More details are mentioned at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=149470&SiteID=1 or to just link statically to the CRT using the /MT compiler switch.

For more info, please see:
http://msdn2.microsoft.com/en-us/library/ms235624.aspx
http://msdn2.microsoft.com/en-us/library/zebw5zk9.aspx
0
 
dstanley9Commented:
What error are you getting?  What is the code generating the error?
0
 
MOH_RAuthor Commented:
when I want to run an .exe file , this error generates :

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

this error dose not generate on Windows 2000 family and Windows XP.
how I can solve it ?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
dstanley9Commented:
Is this a C++.NET app (or using any external DLLs written in C++)?  Is there anything in the event log?  
0
 
MOH_RAuthor Commented:
Yes, I write a very simple C++ .NET 2005 Program that show a MessageBox.
But I can not run the .exe file on Windows 2003 Server + .NET Framework 2.0 .
I wrote other program and test them, but none of them executed .
0
 
MOH_RAuthor Commented:
I forgot it , it is not a MFC program , it is .NET Framework program.

MessageBox.Show("Test","Test");
0
All Courses

From novice to tech pro — start learning today.