说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.InvalidOperationException: 无法生成临时类(result=1)。
error CS2001: 未能找到源文件“C:\WINDOWS\TEMP\qeqrsu5t.0.cs”
error CS2008: 未指定输入


源错误:

DE<执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。DE<

堆栈跟踪:

DE<
[InvalidOperationException: 无法生成临时类(result=1)。  error CS2001: 未能找到源文件“C:\WINDOWS\TEMP\qeqrsu5t.0.cs”  error CS2008: 未指定输入  ]     System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) +1060     System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) +2024     System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) +74     System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) +99     System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) +348     System.Xml.Serialization.XmlSerializer..ctor(Type type) +6     PowerEasy.Foundation.SiteConfig.GetConfig() +460     PowerEasy.Foundation.SiteConfig.get_SiteInfo() +9     PowerEasy.Foundation.HttpModule.SystemCheckModule.UpdateVirtualPathToSiteConfig() +22     PowerEasy.Foundation.HttpModule.SystemCheckModule.Init(HttpApplication context) +11     System.Web.HttpApplication.InitModulesCommon() +66     System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006     System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259     System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114     System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350
DE<

 

 

无法生成临时类(result=1)。
error CS2001: 未能找到源文件“C:\WINDOWS\TEMP\qeqrsu5t.0.cs”
error CS2008: 未指定输入

解决办法:很简单只要把你的C:\WINDOWS\TEMP\ 文件夹的安全设置高就OK,如下:

无法生成临时类(result=1)

相关文章:

  • 2021-06-13
  • 2021-11-12
  • 2021-07-18
  • 2022-12-23
  • 2021-12-02
  • 2021-06-28
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2021-07-13
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-11-17
相关资源
相似解决方案