IIS 7 应用程序路径无效,Win 7 [英] IIS 7 Invalid Application Path, Win 7

查看:42
本文介绍了IIS 7 应用程序路径无效,Win 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出现无效的应用程序路径"错误.以下是我采取的步骤.

Getting "Invalid Application Path" error. Here are the steps I've taken.

  1. 右键单击网站的根文件夹.点击添加虚拟目录".

  1. Right click on web site's root folder. Click "Add Virtual Directory".

在打开的窗口中,将别名设置为子文件夹的名称.WS

In window that opens, set alias to name of sub folder. WS

使用浏览按钮导航并设置驱动器上物理文件夹的路径.点击确定

Use browse button to navigate and set path to physical folder on drive. Click OK

单击测试设置..."传递身份验证通过.但收到警告,无法验证路径.这看起来很正常.

Click "Test Settings..." Pass-through authentication passes. But get warning that path cannot be verified. This looks to be normal.

点击确定.并且WS"文件夹现在被设置为虚拟目录.(如果我点击基本设置..."并测试设置,仍然会得到上述结果.

Click OK. And "WS" folder is now set as a virtual directory. (If I click "Basic Settings..." and test settings, still get above results.

右键文件夹.选择转换为应用程序".保持所有默认值不变.单击测试设置",我收到有关无效路径的错误.(这是使用直通"身份验证.)

Right click folder. Select "Convert to Application". Leave all default values as they are. Click "Test Settings" and I get the error about invalid path. (This is with "Pass-through" authentication.)

以特定用户"身份连接,这一次,测试设置..."不会报告任何错误.此外,该路径被指示为可访问".

Connect as "Specific User" and this time, "Test Settings..." does not report any errors. Additionally the path is indicated as being "accessible".

那么,问题是,为什么直通"身份验证不起作用?

So, the question is, why does "Pass Through" authentication not work?

现在,请注意,如果我继续并单击确定"将虚拟文件夹转换为应用程序,则不会引发错误.我可以运行 Web 服务(这是使用应用程序的传递身份验证选项).

Now, note that if I continue on and click OK to convert the virtual folder to an application, no error is raised. And I can run the web service (this is using pass-through authentication option for application).

那么,有什么问题.好吧,当我将网站添加到 VS 2008 解决方案并尝试构建网站时(我需要调试 Web 服务).我收到此错误:

So, what's the problem. Well, when I add the website to a VS 2008 solution, and try to build the website (I need to debug the web service). I get this error:

在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的部分是错误的.此错误可能是由于虚拟目录未在 IIS 中配置为应用程序所致.

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

但是,该文件夹是一个应用程序.我刚刚转换了它.而且,Web 服务在本地主机上运行良好.

But, the folder is an application. I just converted it. And, the web service runs just fine on the local host.

我遗漏了哪些细节?

(在研究这些问题时,我确实发现多个web.config文件会导致站点无法构建的错误.我没有多个web.config文件.)

(In researching these problems, I did find out that multiple web.config files can cause the error of the site not building. I do not have multiple web.config files.)

推荐答案

有人建议我 IIS 已损坏.但是,在安装了新的 Win 7 64 位、安装 IIS 并创建了一个新网站的新计算机上体验此消息后,我得出结论,该消息本身是一个错误并且它是良性的.也就是说,应用程序和网站将按预期运行.自从我几个月前发布此观点以来,此观点在 MS IIS 论坛上并未遭到反驳.

It had been suggested to me that IIS is/was corrupted. But, after experiencing this message on a new computer with a fresh Win 7 64-bit, IIS install and one new web site created, I have come to the conclusion that the message itself is a bug and that it is benign. That is, the application and website will run as expected. This opinion has not been contradicted on the MS IIS forum since I posted this several months ago.

查看此主题:http://forums.iis.net/p/1182820/2000936.aspx

这篇关于IIS 7 应用程序路径无效,Win 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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