Creating .EXE File

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jan 2006
Posts: 5
Reputation: superwoman is an unknown quantity at this point 
Solved Threads: 0
superwoman superwoman is offline Offline
Newbie Poster

Creating .EXE File

 
0
  #1
Feb 1st, 2006
Hi

i just developed an ASP.NET web application and i would like to know how to create an .Exe File of the solution so that I can run it on any other computer which doesnt have VIsual studio installed. Please help. :-|
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Creating .EXE File

 
0
  #2
Feb 1st, 2006
ASP.NET Applications are run via IIS. What you're asking makes no sense. If you mean, you'd like to migrate the application to a different IIS web server, then search for "ASP.NET deployment".
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Creating .EXE File

 
0
  #3
Feb 2nd, 2006
It makes sense just fine, she is just using the wrong word. She means dll. what you are looking for is in the bin subdirectory. All you need is to put the all non-codebehind pages(*.aspx, global.asax, etc) in the folder on the new server. You don't need the code behind pages(*.cs), but if in doubt, copy them all, they won't hurt anything being there. Then, create a subdirectory called bin and copy the contents of the bin (especially the dll,) directory from the development server to the new one.

Generic example:
You created the standar webapplication1 using VS and have just the standard webform1.aspx.

Copy webform1.aspx, web.config, global.asax into the virtual directory on the new server.
Copy the bin folder and paste it into the virtual directory on the new server.
Open IIS (start->run->inetmgr) on the new server
right click on the new virtual directory and hit properties.
In the application section hit the button that says create.
Then click on the documents tab and make sure your start page (default.aspx or whatever you called is listed in that box.
Hit ok and close out of IIS.

Voila, you are done


In the directory you will have the bin folder, the
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Creating .EXE File

 
0
  #4
Feb 2nd, 2006
There is no need in doing all of that manually. Visual Studio has built-in deployment methods and wizards.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Creating .EXE File

 
0
  #5
Feb 2nd, 2006
which are probably a lot more difficult to do than just doing it manually the way I described, which takes all of about 1 minute.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Creating .EXE File

 
0
  #6
Feb 2nd, 2006
Not so. If you don't want to use the simple click-through wizard built-in to Visual Studio.NET, and would prefer to deploy your ASP.NET Applications through the command-line, then Microsoft recommends using the XCOPY method, as discussed here:

http://msdn2.microsoft.com/en-us/library/f735abw9.aspx
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 5
Reputation: superwoman is an unknown quantity at this point 
Solved Threads: 0
superwoman superwoman is offline Offline
Newbie Poster

Re: Creating .EXE File

 
0
  #7
Feb 2nd, 2006
thanks guys......i will try both methods!!!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Creating .EXE File

 
0
  #8
Feb 2nd, 2006
hell it took me longer just to find the deployment wizard than it did to do it my way. As for the command line instructions, they do the same thing that I did. actually, I would probably just create a batch file with those command line instructions in it and use it whenever I wanted to put out updates
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Creating .EXE File

 
0
  #9
Feb 2nd, 2006
A batch file is a great idea. The thing with XCOPY, is that it preserves permissions and other attribute flags. A simple "copy" may not.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: sirishavidya is an unknown quantity at this point 
Solved Threads: 0
sirishavidya sirishavidya is offline Offline
Newbie Poster

Re: Creating .EXE File

 
0
  #10
Nov 28th, 2008
Can anybody help that how to create .exe file in asp.net with c#.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC