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

查看:259
本文介绍了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天全站免登陆