部署错误:无效的应用程序路径 [英] Deployment error: Invalid application path

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

问题描述

我尝试部署一个asp.net项目,但这次没有成功。我的程序如下:

1)在VS 2010中构建项目并单击发布网站。

2)在发布网站中,目标路径为:http ://本地主机/ GISPages。默认情况下选中允许此...。然后我点击OK按钮。

3)打开II6 Manager。右键单击已发布的项目,然后单击转换为应用程序以打开添加应用程序向导。在这个向导中,Pyysical Path:C:\inetpub \wwwroot \ GISPages(实际上它的南边是L:\ ... \ GISPages \,但它已经变灰了)

当我单击测试设置...时,我收到错误:

执行此操作时出现错误。详细信息:应用程序路径无效。

我搜索但没有找到有效的解决方案。希望你能告诉我如何修复它。在此先感谢。

I tried to deploy an asp.net project but not successful this time. My procedure is below:
1) Build the project in VS 2010 and the click Publish Web Site.
2) In the Publish Web Site, the Target path is: http://localhost/GISPages. The Allow this ... is checked as default. Then I click the OK button.
3) Open II6 Manager. Right-click the project published and then click Convert to Application to open the Add Application wizard. In this wizard, the Pyysical Path: C:\inetpub\wwwroot\GISPages (actually its south is at L:\...\GISPages\, but it's grayed out)
When I click the Test settings..., I receive Error:
There awa an error while performing this operation. Details: Invalid application path.
I searched but found no effective solution. Hopefully, you can provide me the idea how to fix it. Thanks in advance.

推荐答案

在发布时,选择发布方法为文件系统

然后选择要发布更改的文件夹。



现在在IIS中,按照您的操作,但选择发布文件夹,同时选择应用程序的物理路径。



更多 - 如何:在没有Web部署的情况下使用一键式发布部署Web应用程序项目 [ ^ ]
While Publishing, select Publish method as File System.
Then select the Folder, where you want to Publish the changes.

Now in IIS, do as you are doing, but select the Published Folder while selecting the Physical path of application.

For more - How to: Deploy a Web Application Project Using One-Click Publish Without Web Deploy[^]


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

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