Asp.Net 128 错误——"编译器失败,错误代码为 128"

遇到错误,我首先在网上搜索了一下,网上的答案是:

 

it's a really horrible dream!

One morning , afeter i open my computer, i found that all my asp.net web application could not run again!

I searched the problem with google, but nothing is valuable.

The following method is at least useful to me, I hope u are also lucky!

First of all, update your antivirus software and make a full scan on your computer. I guess the cause of the problem is that some hacker has entered in my computer and made some change in my account and security settings, so the sensitive asp.net found it and then stopped working. (注:大意是检查电脑,电脑可能被黑客攻击更改了配置。)

After u are sure no viruse is in your computer, u can follow the steps below.

1. run "aspnet_regiis -ua" in the cmd. u can start the cmd from the vs.net tools in the start menu, otherwise u need type the full path.

2. remove the aspnet account from your computer

3. uninstall iis

4. restart your computer

5. reinstall iis

6. run "aspnet_regiss -i" in the cmd

7. add vs_developers group to iis operators (u can operation in iis)

8. open the file "machine.config" which is in "C:\WINNT\Microsoft.NET\Framework\v1.1.xxxx\CONFIG", then find and replace
userName="machine"
with
userName="SYSTEM"

9. restart your computer and pray silently



I can't promise u anything, but i will pray for u.

仔细对比了一下,排除以上所有原因。因为我一份程序在3个目录运行,其它两个目录下都是好的,但是就这个是出了128错误的。

自已查看了编译输出:

 

c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.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.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.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.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\assembly\dl3\e8d26ca0\5eb31c0d_10eec801\Yurow.Common.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.8.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jp3\371b3559\fe4c0fc4\App_Code.kmksavfh.7.cs"

 

我想有可能是dll加载出错了。然后,我更新了web.config文件,把里面的configSections,assemblies,pages,httpHandlers,httpModules,system.codedom,system.webServer,runtime这些我用不到的节点都去掉了。

但是还报这个错误。但是我意外的发现,web.config文件中文注释变成了乱码。然后我用记事本打开,另存时选择utf-8编码而不是anis编码。错误解决了。

posted @ 2008-07-25 13:11  Birdshover  阅读(3220)  评论(3编辑  收藏  举报