简体   繁体   中英

How can I deploy an asp.net application using Visual Studio 2008

我正在尝试使用IIS发布一个网站,我创建了一个虚拟目录,并在此目录中添加了所有网页并配置了虚拟目录,但我仍然无法运行我的Web应用程序。

Here is the step by step method to deploy an asp.net application

http://www.15seconds.com/issue/030806.htm

Please post any error message

确保您正在运行正确的asp.net版本...检查是否在asp.net选项卡中是否为v 1将其更改为v2

你能不能让我知道错误信息。(检查最小设置,如startUp页面,版本,尝试使用向导发布等)

In Visual studio, click on project , Properties , Web . Under Servers , select Use local IIS Web server , then on Create virtual Directory . Now, when you debug, the page should open in IIS, and Visual studio has taken care of most of the grudge work of setting up the IIS, all you will probably have to change is the security settings under IIS. Hope this helps.

If it is IIS7 check that your application has enough permissions to run:

IIS Actions Pane:

  1. Basic Settings
  2. Connect as (be sure to log in with Admin account first to test, then create you own specific user. Least Privilege Principle)
  3. Test Settings (Authorization and Authentication is Green!)
  4. Test your webisite

The question doesn't say what exactly the error is but you mentioned that you just created the virtual directory. Did you make it an web application? For IIS 6 follow this link - Create and Configure Local ASP.NET Web Sites . In IIS7 just right click on it and convert it to application.

If its already a website, did you choose the correct framework? normally when you create a website it ill be assigned the default app-pool. If you have installed multiple dotnet then you might check which framework is in default app-pool. Then change the default app-pool to the correct version that is required by your website, or create a new app-pool.

There can be multiple reasons so if you could provide the error message then it would be easier to resolve the problem.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM