Unable to run the dot net exe on other machine.

S

Sivaprasad

Hi All,

I am new to .NET development.
I created a dot net project and took the exe from app path bin folder and
copied it to another machine.
When i run that exe on that machine,I am getting an error saying
"mscoreworks.dll could not be loaded" kind of error message.
The machine i loaded is windows 2000 professional and it has sp2.

Is there anything i am missing.
I just changed debug to release and created a Build and took the exe from
bin folder.

Please advice
Siva
 
C

Chris, Master of All Things Insignificant

Is .Net installed on the other computer?

Chris
 
G

Guest

Does the new machine have .Net framework 1.1? .Net 1.1 programs will not
work on .Net 1.0

If you run that EXE on your machine outside of Visual Studio does it work?

Ron.
 
P

Phill. W

Sivaprasad said:
I am new to .NET development.
I created ... the exe ... and copied it to another machine. .. . .
I am getting an error saying "mscoreworks.dll could not be loaded" .. . .
Is there anything i am missing.

Yes.

The .Net Framework (all 20-odd Mb of it).

This is required by [practically] /every/ .Net program you write.

Regards,
Phill W.
 
H

Herfried K. Wagner [MVP]

Sivaprasad said:
I created a dot net project and took the exe from app path bin folder and
copied it to another machine.
When i run that exe on that machine,I am getting an error saying
"mscoreworks.dll could not be loaded" kind of error message.
The machine i loaded is windows 2000 professional and it has sp2.

Are you sure the .NET Framework is installed on that machine?

..NET Framework Version 1.1 Redistributable
<URL:http://msdn.microsoft.com/netframework/downloads/framework1_1redist/>

You may want to install it as part of your application's setup:

Deploying the .NET Framework in a setup package
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=deployframework&lang=en>
 
S

Sivaprasad

I thought .NET Framework comes with Windows 2000 sp2.
I clicked on the link to get the :Deploying the .NET Framework in a setup
package" its not going to the right page i guess. Because its taking to a
page
which again points to other links.
Thanks
siva
 
H

Herfried K. Wagner [MVP]

Sivaprasad said:
I thought .NET Framework comes with Windows 2000 sp2.

AFAIK no. You can easily check if the .NET Framework is installed in the
system's "Software" control panel.
I clicked on the link to get the :Deploying the .NET Framework in a setup
package" its not going to the right page i guess. Because its taking to a
page
which again points to other links.

Yep, that's intentional. It's a link to a collection of links on this
topic.
 
S

Sivaprasad

So if i want to distribute a small application to another computer, i have
to bundle the .Net frame work with it?
My exe is only less than 100KB and the framework is about 29MB.
Or else the client has to install the .Net framework, right?

It would have been great, if the framework comes with windows, then we just
have to copy the exe and run.

Thanks anyway for your information.
Siva
 
H

Herfried K. Wagner [MVP]

Sivaprasad said:
So if i want to distribute a small application to another computer, i have
to bundle the .Net frame work with it?
My exe is only less than 100KB and the framework is about 29MB.
Or else the client has to install the .Net framework, right?
Yes.

It would have been great, if the framework comes with windows, then we
just have to copy the exe and run.

IIRC the .NET Framework is included in Windows Server 2003, and it's on the
Windows XP SP1/SP2 CDs (these CDs could be ordered for free from Microsoft).
 
S

Sivaprasad

Thank you

Herfried K. Wagner said:
IIRC the .NET Framework is included in Windows Server 2003, and it's on
the Windows XP SP1/SP2 CDs (these CDs could be ordered for free from
Microsoft).
 

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