Home All Groups Group Topic Archive Search About

Exe + dll system.management.dll

Author
16 Aug 2006 8:18 PM
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

Author
16 Aug 2006 8:48 PM
Greg Young
The .NET framework has to be installed on the machine you wish to run it on
(not visual studio)
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

You can also include this with your installer.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung


<sudha.ake***@gmail.com> wrote in message
Show quote
news:1155759535.556964.92560@m73g2000cwd.googlegroups.com...
> 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
>
Author
16 Aug 2006 8:48 PM
Alan Pretre
<sudha.ake***@gmail.com> wrote in message
news:1155759535.556964.92560@m73g2000cwd.googlegroups.com...
> 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
Author
16 Aug 2006 9:16 PM
sudha.akella
But all the systems do not have framework to run the application??
How do i inlcude everything into a executable.

Alan Pretre wrote:
Show quote
> <sudha.ake***@gmail.com> wrote in message
> news:1155759535.556964.92560@m73g2000cwd.googlegroups.com...
> > 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
Author
16 Aug 2006 9:22 PM
Alan Pretre
<sudha.ake***@gmail.com> wrote in message
news:1155762987.406663.118620@m73g2000cwd.googlegroups.com...
> 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

AddThis Social Bookmark Button