部署IIS

时间:2016-02-23 13:33:36

标签: c# asp.net iis

我有两台不同的服务器,我需要部署一个应用程序。 两者几乎相同。唯一不同的是一次更新。

问题如下:在部署时,其中一个服务器引发了编译错误(在问题的最后。它太大了)

我注意到了这一点:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe 所以我检查了IIS设置,是的,就是这样。 Default Language under the .NET Compilation菜单设置为vb

这很奇怪,因为其他服务器具有完全相同的设置,也就是这个设置,但不知怎的,它设法切换到css.exe并编译Web应用程序。

知道这两个服务器为什么在同一个应用程序中表现不同? 是否有任何设置在Visual Studio中设置此默认语言?

网络应用类型

ASP .Net WebForms 4.5.1

服务器配置

Windows Server 2012 R2数据中心

IIS 8.5.9600.16384

的Web.config

<compilation targetFramework="4.5.1">

更新&#34;错误&#34;服务器

https://support.microsoft.com/en-us/kb/2992080

编译错误

  

&#39; /&#39;中的服务器错误应用

     

编译错误     描述:编译服务此请求所需的资源时发生错误。请查看以下特定错误详细信息并相应地修改源代码。

     

编译器错误消息:编译器失败,错误代码为-1073741511。

     

显示详细的编译器输出:

     

C:\ Windows \ System32下\ INETSRV&GT; &#34; C:\的Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ VBC.EXE&#34; / t:library / utf8output /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ c2f80fba \ ecba2d49_396ed101 \ LORT。 DLL&#34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 3dfdc744 \ 053bcce7_ab7dd001 \ System.Web.Optimization.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 1ae92062 \ f5331ae8_ab7dd001 \ AspNet.ScriptManager.bootstrap.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ d5f86421 \ 4f38f3c6_d57ed001 \ System.Web.WebPages.Razor。 DLL&#34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 4e6cc1e7 \ e54a63e8_ab7dd001 \ AspNet.ScriptManager.jQuery.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ b2a0cd7a \ b55fc9e8_ab7dd001 \ Microsoft.ScriptManager.MSAjax.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 2698ec6c \ a58222e6_ab7dd001 \ WebGrease.dll&#34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ b6c06e10 \ 284bd7c6_d57ed001 \ System.Web.WebPages.Deployment。 DLL&#34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 04c0eb7e \ d5db7ae6_ab7dd001 \ Antlr3.Runtime.dll&#34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 9a1d29b5 \ 2151e7c6_d57ed001 \ System.Web.WebPages.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 430e4b69 \ 7d639bc7_d57ed001 \ System.Web.Mvc.dll&# 34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 9f8e94f4 \ e5feb6ea_ab7dd001 \ Microsoft.AspNet.Web.Optimization。 WebForms.dll&#34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ ac2ec17e \ 556dede9_ab7dd001 \ Microsoft.Web.Infrastructure.dll&# 34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 366482ea \ 55c51ae7_ab7dd001 \ Newtonsoft.Json.dll&#34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 52c841ec \ e58568e9_ab7dd001 \ Microsoft.ScriptManager.WebForms.dll&# 34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ b3447c74 \ ee73ab85_396ed101 \ App_global.asax.dll&#34; /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ cc2bf574 \ 952fc8c6_d57ed001 \ System.Web.Helpers.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 9e52f2ee \ 1f3b65c5_d57ed001 \ System.Web.Razor.dll&# 34; /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ assembly \ dl3 \ 54bc6c65 \ d52527eb_ab7dd001 \ Microsoft.AspNet.FriendlyUrls.dll&# 34; /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ App_Theme_DesignLH.pumitven.dll&#34; / debug- / nowarn:41008,40000,40008 / define:_MYTYPE = \&#34; Web \&#34; /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.ComponentModel.DataAnnotations,System.Configuration,System.Linq,System.Text,System.Text.RegularExpressions,System名.web,System.Web.Caching,System.Web.DynamicData,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI程序,System.Web.UI.WebControls,System.Web程序.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Xml.Linq,System.Web.Optimization,LORT / warnaserror- / optionInfer +&#34; C:\ Windows \ Microsoft.NET \ Framework64 \ v4。 0.30319 \ Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ App_Theme_DesignLH.pumitven.0.vb&#34; &#34; C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ a4cfed00 \ 726e4389 \ App_Theme_DesignLH.pumitven.1.vb&#34;

     

版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.34274

0 个答案:

没有答案