我正在尝试在 IIS 上部署我的 Web 服务。
但是,VS 2012 给我一个错误,因为默认网站使用的应用程序池使用 .NET Framework 2.0。但是,我的需要 .NET Framework 4.0 或更高版本。
因此,当我手动添加另一个 Web 服务时,我分配了支持 .NET Framework 4.0 的不同应用程序池。
我怎样才能自动化它?
我可以在扩展名为pubxml 的设置文件中指定使用我想要的应用程序池吗?
我想将默认网站与不同的应用程序池一起使用,而不是使用默认应用程序池。
谢谢。
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<SiteUrlToLaunchAfterPublish>http://localhost/Manager/ODataManager.svc</SiteUrlToLaunchAfterPublish>
<MSDeployServiceURL>localhost</MSDeployServiceURL>
<DeployIisAppPath>Default Web Site/Manager</DeployIisAppPath> …Run Code Online (Sandbox Code Playgroud) 我正在使用 VS2015 Update 1 尝试一键发布 aspnet 5 vNext MVC 站点。我要发布到的服务器没有真正的证书,因此我收到错误消息:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5):错误:错误代码:ERROR_CERTIFICATE_VALIDATION_FAILED
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5):错误:更多信息:使用指定的进程(“Web 管理服务”),但无法验证服务器的证书。如果您信任服务器,请再次连接并允许不受信任的证书。了解更多信息:http : //go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED。
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5):错误:错误:底层连接已关闭:无法建立信任关系SSL/TLS 安全通道。
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5):错误:错误:根据验证程序,远程证书无效。
根据(相当旧的)链接,我发现我可以通过手动运行 msbuild 命令并传递-allowUntrusted开关轻松地使其工作。但是,我找不到 UI 对话框设置、中的 XML 标记*.pubxml,也*publish.ps1无法在文件中找到使此行为在 Visual Studio 中起作用的好地方。
如何让一键发布忽略我服务器的无效证书?
msbuild oneclick one-click-web-publishing webdeploy visual-studio-2015