1

构建解决方案时,没有错误。这是什么意思?“/”应用程序中的服务器错误。

编译错误

说明:在编译服务此请求所需的资源期间发生错误。请查看以下特定错误详细信息并适当修改您的源代码。

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

显示详细的编译器输出:

c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.NET\Framework64\ v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\531418d8\19a5ce64_c03fce01\EntityFramework.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\edafaa7b\1616764b\assembly\dl3\170ee7f7\003d348b_acaccb01\System. Web.Helpers.dll" /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.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\a22bb0b4\519f7cc5_1b42ce01\MvcPager.dll" /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\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.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.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.网络\组装\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData。dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\0510f5a7\457139f5_1b42ce01\ZPMH.Infra.dll" /R: "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\57198f34\519f7cc5_1b42ce01\Omu.Drawing.dll" /R:"C:\Windows \Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\476d065b\6830d000_7a79ce01\ZPMH.WebUI.dll" /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\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a \System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Abstractions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Abstractions.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\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\edafaa7b\1616764b\assembly\dl3\0772e69c\317b75c5_1b42ce01\log4net.dll" /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\edafaa7b\1616764b\assembly\dl3\cddec2f6\75312793_1b42ce01\Castle.Core .dll" /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\edafaa7b\1616764b\assembly\dl3\a76687c5\e34d03d5_9952ce01\System.Web .WebPages.dll" /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\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\edafaa7b\1616764b\assembly\dl3\87353a58\003d348b_acaccb01\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP。NET 文件\root\edafaa7b\1616764b\assembly\dl3\ae9822fc\003d348b_acaccb01\System.Web.WebPages.Razor.dll" /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\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll " /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\94b823bb\1c2700e1_1b42ce01\Omu.AwesomeMvc.dll" /R:" C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\89b68d6e\75312793_1b42ce01\Castle.Windsor.dll" /R:"C:\Windows\ Microsoft.NET\Framework64\v4.0.30319\临时 ASP。NET 文件\root\edafaa7b\1616764b\assembly\dl3\c7d8fcd3\1c2700e1_1b42ce01\Microsoft.Practices.ServiceLocation.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\根\edafaa7b\1616764b\assembly\dl3\eca8993f\003d348b_acaccb01\System.Web.Razor.dll" /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\edafaa7b\1616764b\assembly\dl3\b687bd36\16db3793_1b42ce01\ZPMH.Data。 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\ Framework64\v4.0.30319\临时 ASP。NET 文件\root\edafaa7b\1616764b\assembly\dl3\a06d981a\b6793593_1b42ce01\ZPMH.Core.dll" /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.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\edafaa7b\1616764b\assembly\dl3\26a6be88\003d348b_acacccb01\System.Web.WebPages.Deployment.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\Framework64\v4.0.30319\ mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET 文件\root\edafaa7b\1616764b\assembly\dl3\9b8e1639\004c56d6_bcaccb01\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\ root\edafaa7b\1616764b\assembly\dl3\c501a63c\b6793593_1b42ce01\Omu.ValueInjecter.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\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\assembly\dl3\f591894d\56183393_1b42ce01\Omu.Encrypto.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /out:"C:\Windows\Microsoft. NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\App_global.asax.dsnvexll.dll"/D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\ 1616764b\App_global.asax.dsnvexll.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\edafaa7b\1616764b\App_global.asax.dsnvexll.1.cs"

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

4

3 回答 3

2

长话短说:根据这个有趣的帖子,这可能是由于堆耗尽。您可以通过将您的网站配置为使用 AppPoolIdentity 帐户或为该特定应用程序池使用专用用户帐户来解决。

于 2013-07-05T15:30:36.770 回答
0

有时会出现这种现象,因为某些dll引用冲突,所以删除发布环境中存在的dll,然后重新发布,也许可以解决问题......

于 2013-11-26T06:34:01.297 回答
0

我将应用程序池标识从“本地系统”更改为“ApplicationPoolIdentity”显然我的本地系统存在权限错误,csharp 编译器 (csc.exe) 无法访问某些资源和源代码。

为了更改您的 AppPool 身份,请按照此处给出的步骤操作:http ://learn.iis.net/page.aspx/624/application-pool-identities/

于 2016-03-09T10:57:17.067 回答