IIS7 403 - 拒绝访问 [英] IIS7 403 - Access Denied

查看:1582
本文介绍了IIS7 403 - 拒绝访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图部署,我已经建在MVC3运行IIS7的服务器上的网站。我能够得到它通过IIS7在本地运行我的笔记本电脑,但是当我试图把它的服务器上,我得到当试图得到它远程和一个连接超时当我尝试一个403拒绝访问错误从服务器本身查看。

I am trying to deploy a website that I have built in mvc3 on an server that runs iis7. I was able to get it running through the iis7 locally on my laptop, but when I try to put it on the server I get a 403 access denied error when trying to get to it remotely and a "connection has timed out" when I try to view it from the server itself.

我已经确定我必须使用asp_regiis.exe最新的.Net 4框架的。我试过多个应用程序池,包括默认值。我允许.NET4 ISAPI。我已经改变了权限,允许从IUSER,服务器网络,认证的用户访问。我已经确定默认文档列表是一样的在我的笔记本IIS7之一(其中正常工作)。

I have made sure I have the most recent .Net 4 framework using the asp_regiis.exe. I tried multiple application pools including the default. I allowed .net4 isapi. I have changed permission to allow access from IUSER, SERVER NETWORK, Authenticated Users. I have made sure the default document list is the same as the one on my laptop iis7 (which works fine).

我也有多个其他站点(使用web表单,不MVC)的工作就好了服务器上。

I also have multiple other sites (using webforms, not mvc) working just fine on the server.

它可能是与我传递给文件到服务器的方式吗?我只是压缩文件并放置它们(并解压他们)在服务器上,并指示IIS以创建的目录。

Could it have something to do with the way I passed to files to the server? I just zipped the files up and placed them (and unzipped them) on the server and directed iis to the created directory.

我是什么失踪?

推荐答案

上周我遇到这个错误,它可以由许多原因引起:

I faced this error last week and it can be caused by many things:


  1. 的.NET Framework的正确版本未安装或asp_regiis.exe注册

  2. 在runAllManagedModulesForAllRequests设置为false,在你的web.config

  3. MVC的正确版本没有安装在服务器

  4. 您有哪些忽略了您的请求忽略路线

  5. 您在你的Application_Start早期例外,你的网站不能正常​​启动

就我而言,我忘了在web.config中改变了我的日志目录路径价值的现有directoy。

For my part I forget to changed my logging directory path value in the web.config to an existing directoy.

您可以做的知道,如果它是一个配置错误或应用程序错误是建立在VS一个新的默认MVC项目和它在同一程序池部署什么。

What you can do to know if it's an configuration error or an error in your application is to create a new default MVC project in VS and to deploy it in the same apppool.

这篇关于IIS7 403 - 拒绝访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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