3

I have ASP.NET web application and would like to run it. The machine doesn't have Visual Studio installed on it. On my machine which has Visual Studio I was able to run the application using the steps mentioned in this link

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

However, the production box doesn't have WebDev.WebServer20.EXE. Obviously the exe file could be downloaded and then I could run the program, but on production box I can't do that.

Is there any other way to run ASP.NET program from command line? It is a simple program, I am not using any third-party dll files and there are no command line arguments.

4
  • 1
    Does it have IIS - after all, that exe is a "dev server" to test ASP.net web locally on a dev desktop that probably wouldn't have IIS by default (you can). If you want to go beyond that, Project Katana might interest you. Hth... Commented Oct 27, 2014 at 21:59
  • Or IIS Express Commented Oct 27, 2014 at 22:08
  • Yes the machine I have has IIS. Could you tell me what to do next. Actually I am not a .NET developer so not familiar with all this. Any help would be great. Commented Oct 27, 2014 at 22:22
  • 1
    If you came here for the title - dailydotnettips.com/… and forums.asp.net/t/… Commented Aug 2, 2021 at 17:02

2 Answers 2

4

Is there any other way to run ASP.NET program from command line? It is a simple program, I am not using any third-party dll files and there are no command line arguments. I have has IIS. Could you tell me what to do next. Actually I am not a .NET developer so not familiar with all this. Any help would be great.

You are missing basic concepts.

You do not need to run ASP.Net Web Application like executable program. Production Sever doesn't need Visual Studio; it just requires IIS and targeted .Net Framework.

Since you have Visual Studio on your local machine, you can publish straight to production server. Here is an example. - OR - Publish files to local folder and copy file to production folder.

Then create a site in IIS, and map Physical Path.

Sign up to request clarification or add additional context in comments.

Comments

1

Take a look at hostable web core. For example http://blogs.iis.net/carlosag/archive/2008/04/14/host-your-own-web-server-in-your-application-using-iis-7-0-hostable-web-core.aspx

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.