页面有很多ascx模块,每个模块使用xml文件和xslt文件通过System.Web.UI.WebControls.Xml控件显示数据,每运行时间24小时左右多个模块开始报错:System.Runtime.InteropServices.ExternalException: 无法执行程序。所执行的命令为 "c:\winnt\microsoft.net\framework\v1.1.4322\csc.exe" /noconfig @"C:\DOCUME~1\server_name\ASPNET\LOCALS~1\Temp\ty6ydbmp.cmdline"。
   at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
   at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
   at System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
   at System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters options, String[] fileNames)
   at System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
   at System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters options, CodeCompileUnit e)
   at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e)
   at System.Xml.Xsl.Compiler.CompileAssembly(ScriptingLanguage lang, Hashtable typeDecls, String nsName, Evidence evidence)
   at System.Xml.Xsl.Compiler.CompileScript(Evidence evidence)
   at System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
   at System.Xml.Xsl.XslTransform.Load(String url)
   at module.Page_Load(Object sender, EventArgs e)此报错持续几分钟后,出现:System.Threading.ThreadAbortException: 线程正被中止。
   at Microsoft.Win32.SafeNativeMethods.WaitForSingleObject(HandleRef handle, Int32 timeout)
   at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
   at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
   at System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
   at System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters options, String[] fileNames)
   at System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
   at System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters options, CodeCompileUnit e)
   at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e)
   at System.Xml.Xsl.Compiler.CompileAssembly(ScriptingLanguage lang, Hashtable typeDecls, String nsName, Evidence evidence)
   at System.Xml.Xsl.Compiler.CompileScript(Evidence evidence)
   at System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
   at System.Xml.Xsl.XslTransform.Load(String url)
   at module.Page_Load(Object sender, EventArgs e)服务器运行非常缓慢,IIS异常退出,系统报错为:来源:Service Control
事件ID 7031
IIS Admin Service 服务意外地终止,这种情况已经出现了 1 次。以下的修正操作将在 0 毫秒内运行: 没有操作。 重起IIS后恢复正常,但是24小时以后还会出现,请求帮助。

解决方案 »

  1.   

    你又引用了多个ascx模块,如果你的ascx模块又包含很多其它控件的话,效率会很低的,之前我测试过。
      

  2.   

    ascx模块里一般只有一个xml控件,因为每个模块都会在很多页面中使用,所以这样维护比较方便。会是这个问题引起的吗?
      

  3.   

    soldierB(eric) ( ) 信誉:99  2006-5-15 23:40:49  得分: 0  
     
     
       
    写了,循环一万次,没有问题。 
     
    先运行24小时再说啊
      

  4.   

    ilovejolly(有些伤感) , 正在等待中。 但是已经连续两天有错误了。
      

  5.   

    Tie Qi, I am Li Xiaojian, you issue is so trouble, I will research tonight and tell my friend to resolve, up first.
      

  6.   

    没有人遇到这样的问题吗?我在思归那里找到了相同的问题,当初思归也没有解决。。
    http://blog.joycode.com/saucer/archive/2004/03/13/15959.aspx