在本地iis托管的网站无法正常工作 [英] Website hosted in local iis not working

查看:82
本文介绍了在本地iis托管的网站无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio web developer 4.0,其中我正在做一个Web应用程序。我在我的本地IIS中托管了我的网站。我的问题是,当我从visual studio打开网站时,一些更改的消息就像



ASP.NET 4.0尚未在网络服务器上注册。您需要为asp.net 4.0手动配置您的Web服务器才能使您的站点正常运行...



当我尝试调试网站时错误我得到



无法在服务器上启动调试。无法启动asp.net调试。更多信息我可以在没有调试的情况下启动项目。



然后我浏览了我的启动页面而没有调试然后浏览器中的错误是



由于扩展配置,无法提供您请求的页面。如果页面是脚本,请添加处理程序。如果要下载该文件,请添加一个MIME地图。



我尝试过很多东西,例如用aspnet_regiis -1注册asp.net,并搜索了很多但是没有工作。我正在使用Windows 8.



请帮助。

i am using Visual studio web developer 4.0, in which i doing a web application. And i hosted my website in my local IIS. My problem is while i am opening the website from visual studio some alter message is coming like

ASP.NET 4.0 has not been registered on the webserver. You need to manually configure your web server for asp.net 4.0 in order for your site to run correctly...

An then when i am trying to debugg website bellow error i am getting

Unable to start debugging on the server. Could not start asp.net debugging. More information my available by starting the project without debugging.

Then i browsed my startup page without debugging then the error in browser is

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

i tried many things like registering asp.net with aspnet_regiis -1, and searched a lot bt not working. and i m using windows 8.

Pls help.

推荐答案

如果你想调试那么确保你的web.config文件包含的值如

< compilation debug =true>



请检查你的应用程序池和它正在运行的框架。如果.NET framework v2.0发现你改了.NET framework v4.0。



如果问题没有解决那么一个建议,你可以修复你的.NET框架v 4.0然后iis注册aspnet_regiis命令。
If you want to debug then make sure your web.config file contain the value like
<compilation debug="true">

Please check your application pool and under which framework it is running. If .NET framework v2.0 found you changed it .NET framework v4.0.

If problem not solved then one suggestion, you can repair your .NET framework v 4.0 then iis register with aspnet_regiis command.


Hello Friend.

Go to IIS and check Web Service Extensions


这篇关于在本地iis托管的网站无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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