运行Web应用程序时出错 [英] Error in Running web application

查看:81
本文介绍了运行Web应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

执行Web应用程序时出现此错误.
我正在使用ASP.Net 3.5

此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的"

:confused:

Hi all

I get this error when I execute my web application.
I''m using ASP.Net 3.5

"This error can be caused by a virtual directory not being configured as an application in IIS"

:confused:

推荐答案

错误表示它的意思.在Web应用程序根目录下的IIS中配置应用程序,该错误将消失.
The error means what it says. Configure an application in IIS at the root of your web app and the error will go away.


在IIS上部署Web应用程序,然后运行该应用程序.
看这里:
在IIS 7.0上部署ASP.NET网站 [在IIS 6.0中部署ASP.NET应用程序(IIS 6.0) [ ^ ]
Deploy your web application on IIS and then run the application.
Look here:
Deploying ASP.NET Websites on IIS 7.0 [^]
Deploying ASP.NET Applications in IIS 6.0 (IIS 6.0)[^]


HI, you can try the below solutions

1. You can right click on project in the solution explorer, click on web tab, choose Use IIS Webserver radio button Click on Create Virtual Directory button


2. From the Visual Studio.Net 2008 command prompt run 
aspnet_regiis.exe -i
and then right click on virtual directory, click properties choose
ASP.Net  tab and then select the ASP.Net version as 2.0.50727 from the ASP.Net version dropdown.I hope this helps you in solving the error


这篇关于运行Web应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆