Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run an ASP.NET web application without VS2010?

Say, I have an ASP.NET web application that I can run in a web browser by opening that solution in VS 2010 and then by going to Debug -> Start without debugging, or by pressing Ctrl+F5.

I was wondering if it's possible to create a link on my desktop to run the same web app but without starting VS2010 first? (Say, by just double-clicking such link.)

like image 634
ahmd0 Avatar asked Dec 05 '25 22:12

ahmd0


2 Answers

Yes, deploy the site to your local IIS

http://www.codeproject.com/Articles/32210/Deployment-of-a-Website-on-IIS

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/33e0a51a-5f8a-40f2-9923-cdd604e1a812.mspx?mfr=true

like image 113
Alex Avatar answered Dec 07 '25 10:12

Alex


Create a windows batch file to start the ASP.NET Web Development Server and point it to your application's root directory.

Here's my .bat file:

"C:\Program Files\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer40.exe" /path:"E:\NITIN" /vpath:"/MyApp" /port:2510

http://www.codeproject.com/Articles/166319/Run-ASP-NET-Web-Application-from-Command-Prompt

http://www.dotnetperls.com/development-server-bat

like image 29
Nitin S Avatar answered Dec 07 '25 12:12

Nitin S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!