944,001 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 37592
  • ASP.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Feb 1st, 2006
0

Creating .EXE File

Expand Post »
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. :-|
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
superwoman is offline Offline
5 posts
since Jan 2006
Feb 1st, 2006
0

Re: Creating .EXE File

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".
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Feb 2nd, 2006
0

Re: Creating .EXE File

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
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
Feb 2nd, 2006
0

Re: Creating .EXE File

There is no need in doing all of that manually. Visual Studio has built-in deployment methods and wizards.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Feb 2nd, 2006
0

Re: Creating .EXE File

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.
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
Feb 2nd, 2006
0

Re: Creating .EXE File

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
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Feb 2nd, 2006
0

Re: Creating .EXE File

thanks guys......i will try both methods!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
superwoman is offline Offline
5 posts
since Jan 2006
Feb 2nd, 2006
0

Re: Creating .EXE File

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
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
Feb 2nd, 2006
0

Re: Creating .EXE File

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Nov 28th, 2008
0

Re: Creating .EXE File

Can anybody help that how to create .exe file in asp.net with c#.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sirishavidya is offline Offline
1 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP.NET Website Administration tool "An error was encountered"
Next Thread in ASP.NET Forum Timeline: data reader as array??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC