Click here to Skip to main content
15,662,570 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
Hi
I have created .net console appplication which uses webbrowser to load html pages , i this app is executing fine on my local machine , but when i run same exe on the machin where .net framwork is not installed i m getting errors, erlier i have run the other app with includeing some .dll file. can any one please let me which .dll files i need to keep with this exe.

Thanks
Posted

John is right.

If you create a .NET application (or dll), you need .NET framework to load and run them.
It is like Java with the virtual machine: if there is no virtual machine installed, then you can't run you java binaries.

If you don't want to install .NET framework, then code in "classical" C/C++ instead of C# for example.
 
Share this answer
 
You can't run a .Net app on a machine that doesn't have (the appropriate version of ) .Net installed. Period. End of story. What you should do is create a setup project in your solution which automatically sets up the .Net dependancy, which forces the user to download/install .Net if necessary.
 
Share this answer
 
Comments
RaviRanjanKr 14-Apr-11 12:07pm    
Perfect Solution! My 5 :)
Sergey Alexandrovich Kryukov 15-Apr-11 0:53am    
Correct, a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900