Exe + dll system.management.dll

S

sudha.akella

Hi all,

I am new to the .net framework.
Created a windows application(ui) and added the references
system.management.dll and system.windows.forms.
The exe is build and runs very good.
but I want run the exe on any machine which does not have visual studio
installed.
Do i have any options when compliing and building the project???

the error i get when i run this on a windows server 2003 with visual
stdio not installed.

I get a dialog box on startup of computer and when trying to run the
exe. It says
.NET Framework Initialization error
To run this application you must first install one of the
following versions of the net framework:
v2.0.50727... (and so on)

Please suggest..what to do..to send this exe to run on any system.

Thanks a lot,
Sudha
 
A

Alan Pretre

The exe is build and runs very good.
but I want run the exe on any machine which does not have visual studio
installed.
Do i have any options when compliing and building the project???

You do not need Visual Studio, but rather the .NET 2.0 Framework. You can
get it from Windows Update.

-- Alan
 
S

sudha.akella

But all the systems do not have framework to run the application??
How do i inlcude everything into a executable.
 
A

Alan Pretre

But all the systems do not have framework to run the application??
How do i inlcude everything into a executable.

You can't roll the framework up into your executable. It just doesn't work
that way. You can either include the framework redistributable (an .exe or
..msi file) as part of your installer, or force the users to download the
framework through Windows Update or manually. Also keep in mind the
computer will very likely require a reboot if it is getting the framework
for the first time.

-- Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top