在编译服务此请求所需的资源期间发生错误

时间:2011-10-01 17:28:11

标签: c#

这意味着什么?

  应用程序中的服务器错误。

     

编译错误

     

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

     

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

     

显示详细的编译器输出:

c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\b5d50123\4baf1c64_5780cc01\Tooltip.DLL" /R:"C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\f75ac7b7\30b20097_5480cc01\AjaxControlToolkit.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\853f18ae\b26243f5_d1d5cb01\Masterworks.Controls.Web.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\e43c5d29\51c72b28_6c74cb01\Iesi.Collections.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\911b5b42\18ea1580_6a5ecb01\Masterworks.SqlLocalization.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\a8b3bdef\4ebfce7e_6a5ecb01\Masterworks.Cryptography.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\c2317027\e86fb4e0_d341cb01\Microsoft.Practices.Web.UI.WebControls.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\48bac770\1e6c3a24_5880cc01\FoodOrder.Shell.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\d06c67e9\efbee87f_6a5ecb01\Masterworks.Controls.Web.SecurityControls.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_GlobalResources.xw29jesx.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\53cb1bdc\1860c5e0_d341cb01\Microsoft.Practices.ObjectBuilder.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\1be16282\5915bd22_5880cc01\FoodOrder.Core.DLL" /R:"C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_global.asax.u95mrm-a.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\a1f2870f\1ecff82b_da21cb01\CSSFriendly.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\6d6af5ce\851e6028_6c74cb01\NHibernate.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\4ada28a5\5b97a426_5880cc01\FoodOrder.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\64acacfd\041c067a_6c5ecb01\Masterworks.WebControlCaptcha.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\34f09ef4\a0b2a524_5880cc01\FoodOrder.Notifications.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\02ba03eb\95a66223_5880cc01\FoodOrder.Data.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_Web_swohbrqr.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\24789032\78d4bce0_d341cb01\Microsoft.Practices.EnterpriseLibrary.Common.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\715b874b\ae4aa563_8186cb01\DayPilot.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\19b1cd66\ba096a28_6c74cb01\Castle.DynamicProxy2.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\aaf304a9\71a232e1_d341cb01\ManagedFusion.Rewriter.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\78131b2d\8b852f5f_695ecb01\Masterworks.Buttons.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\b24420c4\dbd4fc7e_6a5ecb01\Masterworks.ConfirmButtons.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\de089f2d\3d9d9f14_d544cb01\FredCK.FCKeditorV2.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\c9f50bf2\43a75d21_5880cc01\ProjectBase.Data.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\60b92aa4\cdb55928_6c74cb01\log4net.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\a1581848\8e7dcf0b_7ad6cb01\Masterworks.Controls.Web.Validators.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\11e54d93\e5ef9b28_6c74cb01\Antlr3.Runtime.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\a645b2ed\98baed28_6c74cb01\FluentNHibernate.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\f900ae16\b247c823_5880cc01\FoodOrder.Lib.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions.Design\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\3e6c6fbf\ed7db520_5880cc01\ProjectBase.Utils.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\1d165978\15481a25_5880cc01\FoodOrder.RestaurantModule.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\2b037192\e32e44e1_d341cb01\PostBackRitalin.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\c47bde74\1f6ad8c0_3984cb01\NHibernate.Linq.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\344c2531\5b4ffb28_6c74cb01\Castle.Core.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\0f060aeb\8eeca628_6c74cb01\NHibernate.ByteCode.Castle.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\assembly\dl3\699a6c99\5909df08_7ad6cb01\Masterworks.Utilities.DnsQuery.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_Web_search.master.7371103c.wkrdmiw6.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\7oevkkzx.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_Web_search.master.7371103c.wkrdmiw6.0.cs" "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\85135762\a89acdb6\App_Web_search.master.7371103c.wkrdmiw6.1.cs"
     

版本信息:Microsoft .NET Framework版本:2.0.50727.5446; ASP.NET版本:2.0.50727.5420

8 个答案:

答案 0 :(得分:7)

这意味着您尝试打开网页,当asp.net尝试动态编译时,它无法构建解决方案。您有构建错误或需要重建解决方案。在Visual Studio中打开解决方案并尝试构建它。如果它有编译错误修复它们,直到你可以构建它然后尝试再次浏览它。

答案 1 :(得分:4)

我遇到了同样的错误,通过以下步骤解决了问题:

1)删除ASP.Net临时文件(C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files)

2)清理并重建解决方案。确保在解决方案资源管理器中的项目中设置StartUp项目。

答案 2 :(得分:2)

就我而言,我只是重启应用程序池(停止并启动)。它有效!

答案 3 :(得分:0)

您必须右键单击c:\ windows \ Temp并通过添加修改,读取执行,写入来修改IIS_IUSRS帐户的授权...

答案 4 :(得分:0)

我已经在Visual Studio 2017中创建了一个新的Web API项目,并将其发布到仅支持C#6.NET Framework 4.5.1的IIS托管服务器上。

该项目的Microsoft.Net.Compilers版的Nuget软件包2.6.1在其描述中表示:

  

引用此程序包将导致使用程序包中包含的特定版本的C#和Visual Basic编译器来构建项目,而不是任何系统安装的版本。

     

该软件包可用于编译针对任何平台的代码,但只能仅使用台式机 .NET 4.6+完整框架运行

我想我可以单独尝试降级Nuget软件包,但是我选择在Visual Studio 2015中创建项目,该项目使用了该软件包的1.0.0版本,并且对其他Nuget软件包进行了更改,从而获得了成功在服务器上构建。

答案 5 :(得分:0)

升级NuGet软件包时出现此错误。我必须手动删除packages文件夹,然后为解决方案手动选择Restore NuGet Packages。然后,一切再次开始工作。

答案 6 :(得分:0)

右键单击解决方案资源管理器-> Clean Solution,然后Rebuild Solution

答案 7 :(得分:0)

检查您的web.config,例如名称空间“ ....”