将 asp.net 应用程序(.Net4.0)包部署到 IIS 6.0 [英] Deploying asp.net application(.Net4.0) package on to IIS 6.0

查看:40
本文介绍了将 asp.net 应用程序(.Net4.0)包部署到 IIS 6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2010 (.net 4.0) 中创建了一个 asp.net 应用程序项目.我已经使用 Project-> Build Deployment Package 发布了它.它在 Application (obj\Release\Package) 文件夹中生成了 .zip 文件以及扩展名为.deply.cmd"、.SetParameters.xml"、.SourceManifest.xml"和 readme.txt 的文件

I have created a asp.net application project in Visual Studio 2010 (.net 4.0). I had published it using Project-> Build Deployment Package. It generated .zip file along with files having extension " .deply.cmd", ".SetParameters.xml", ".SourceManifest.xml" and readme.txt, in Application (obj\Release\Package) folder

我的意图是在具有 IIS6.0、Windows Server 2003 R2 x64 版服务包 2 的测试服务器上托管该包.它具有 .net 4.0.

My intension is to host the package on test server which has IIS6.0, Windows Server 2003 R2 x64 Edition service pack 2. It has .net 4.0.

我尝试运行 cmd 文件,但它向我显示了如下消息:

I tried by running the cmd file but its showed me an message as below:

错误:系统无法找到指定的注册表项或值.在这台机器上找不到 msdeploy.exe.请在执行脚本前安装 Web Deploy.

ERROR: The system was unable to find the specified registry key or value. msdeploy.exe is not found on this machine. Please install Web Deploy before execute the script.

任何帮助请....

推荐答案

您是否在目标服务器上安装了 WebDeploy?如果没有,试试那个.您可以在此处找到它:http://www.iis.net/download/WebDeploy.

Have you installed WebDeploy on he target server? If not, try that. You can find it here: http://www.iis.net/download/WebDeploy.

如果您有并且仍然收到错误,则安装程序似乎没有创建 VS2010 构建的文件所期望的注册表项或环境变量:请参阅 此处.

If you have and you're still getting the error, it seems that the installer doesn't create the registry key or environment variable that the VS2010-constructed files expect: see here.

我在以下位置打开了注册表项:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\2 取了注册表值 InstallPath 的值(C:\Program Files\IIS\Microsoft Web Deploy V2\"在我的机器上)并用它来创建一个名为MSDeployPath"的环境变量.之后 .cmd 文件运行.

I opened the registry key at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\2 took the value of the registry value InstallPath ("C:\Program Files\IIS\Microsoft Web Deploy V2\" on my machine) and used it to create an environment variable called "MSDeployPath". After that the .cmd file ran.

这篇关于将 asp.net 应用程序(.Net4.0)包部署到 IIS 6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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