我在服务器的IIS上浏览网页时,出现这样的错误Compilation Error

rrjin 2005-10-12 10:45:24
我在服务器的IIS上浏览网页时,出现错误Compilation Error,但是我的服务器上的文件都是编译好了再上传上去的啊,怎么会出现这样的错误呢,请各位高手指点一下,本人现在很急,在线等~~~~~~~~~
...全文
9092 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
skywatcher 2005-10-13
  • 打赏
  • 举报
回复
asp.net在aspx中的代码改动时需要重新编译(假如在aspx中存在runat="server"的script的话)

还有如果你使用了反序列化功能,也会涉及到编译
adandelion 2005-10-13
  • 打赏
  • 举报
回复
asp.net调试错误收集
http://adandelion.cnblogs.com/articles/225925.html
adandelion 2005-10-13
  • 打赏
  • 举报
回复
当然,Global.asax.web.config和其他图片样式文件也要传递啊.若使用C#那,*.cs文件就可以不穿了.
adandelion 2005-10-13
  • 打赏
  • 举报
回复
项目编译OK后,把bin目录下的所有文件,以及没个目录及目录下的aspx文件,若有用户控件那ascx文件也要传递:
web.config 中的
<customErrors mode="Off" />后可以在远程显示详细错误信息,根据错误信息去找问题.
saucer 2005-10-13
  • 打赏
  • 举报
回复
*.aspx在用户浏览时也需要被编译成assembly后才能执行,把错误信息贴出来
yeskele 2005-10-13
  • 打赏
  • 举报
回复
你是不是沒有新建應用項目阿?
rrjin 2005-10-13
  • 打赏
  • 举报
回复
具体的错误信息 如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: The compiler failed with error code 128.



Show Detailed Compiler Output:


C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\c12b22c5\81436448\assembly\dl2\3d794e1a\62208a73_3ecfc501\play.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\c12b22c5\81436448\9q9ct6me.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\c12b22c5\81436448\9q9ct6me.0.cs"







Show Complete Compilation Source:


Line 1: //------------------------------------------------------------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9: //------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : Play.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:





--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
rrjin 2005-10-13
  • 打赏
  • 举报
回复
我上面的主要错误信息是这样的 the compilation error coede 128,我在网上找了一下,发现这是个很严重的问题啊,在国外的很多论坛上都提出了这样的问题,不过国内的网站上见到还是比较少,他们的解决方法很多是重装系统,我可不想这样啊,不知道有没有简单点的办法,只要不重装系统就可以!!!急啊

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧