脚本无法通过IIS7.5静态文件处理服务 [英] Script not served by static file handler on IIS7.5

查看:383
本文介绍了脚本无法通过IIS7.5静态文件处理服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚尝试部署我的第一个Web应用程序IIS在我​​的Windows 7家庭premium笔记本电脑。创建应用程序后,我不得不改变经典的应用程序池,然后设置池框架4.0。现在,我得到以下错误:

I've just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, then set that pool for framework 4.0. Now I get the following error:

HTTP错误404.17 - 未找到
所请求的内容似乎是脚本,并不会由静态文件处理程序送达。

该请求的URL的的http://本地主机:80 / pvmms / Default.aspx的

恐怕广泛的谷歌搜索已经取得了明显的没有足够的或明确对我来说,使用和往常一样,我转向了专家。

I'm afraid extensive Googling has yielded nothing clear or definite enough for me to work with and as usual I've turned to the experts.

编辑:
我怀疑这是因为有.aspx文件没有框架4.0的处理程序映射。然而,即使ASPNET_REGIIS我给管理员用户手指,说我需要运行管理权限。

I suspect this is because there are no framework 4.0 handler mappings for .aspx files. However, aspnet_regiis even gives my admin user the finger and says I need admin rights to run it.

编辑#2:
我注册的所有框架(2和4,32和64)和所有现在的作品。我通过手动添加为的.aspx 脚本映射到aspnet_isapi,瞧发现了这个。我不明白为什么这个框架的安装不这样做,除非我的记忆失败了我,我在安装后VS才启用IIS。

EDIT #2: I registered all the frameworks (2 & 4, 32 and 64) and all now works. I found this by manually adding a script map for .aspx to aspnet_isapi and voila. I don't understand why the installation of the framework doesn't do this, unless my memory fails me and I only enabled IIS after installing VS.

推荐答案

也许太晚了,但更多的往往不是你需要运行

Maybe too late now, but more often than not you need to run

aspnet_regiis.exe -i  

安装asp.net后。也许我会做也无妨吧。

after installing asp.net. Maybe I would do it anyway now.

这篇关于脚本无法通过IIS7.5静态文件处理服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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