asp.net-mvc - 许可证执行系统已被篡改 - win server 2008

标签 asp.net-mvc windows licensing

<分区>

在我们的生产服务器上,win 2008 32 位,运行 mvc 3 .NET 4 站点, 我突然在错误日志中收到此消息 “服务器无法打开此程序,因为许可证执行系统已被篡改或损坏”

所有软件均已获得许可,我已经有一段时间(数周)没有在服务器上安装任何新软件了。

当对象序列化为 XML 时调用 Controller 方法时抛出异常。 从下面的堆栈跟踪中提取。

有没有人知道如何找出这里出了什么问题?

最好的问候和TIA /斯塔凡

            from the Stacktrace:    at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
               at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
               at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
               at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
               at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
               at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
               at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
               at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
               at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
               at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location, Evidence evidence)
               at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence)   

最佳答案

我想我找到了

查看堆栈跟踪并看到崩溃发生在 CodeDom 编译用于 Xml 序列化的临时程序集时,我用谷歌搜索了这个并找到了以下页面 Error consuming Web Service from Winform App - "Cannot execute a program..."它指引我到http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx .

它清楚地表明,如果您为 XmlSerializer 使用错误的构造函数,将会发生内存泄漏。可能会导致像我们这样的崩溃。

因此,在重写我们的 Xml 序列化服务之后,我现在很享受没有这些崩溃和令人印象深刻的 Xml 序列化性能提升。

/Z

关于asp.net-mvc - 许可证执行系统已被篡改 - win server 2008,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9590384/

相关文章:

c# - 如何使用 C# 限制 Windows 应用程序只安装一台计算机?

javascript - MVC Jquery/ Controller 后重定向

c - 重命名文件预操作 Windows Minifilter 驱动程序

licensing - 产品序列号/购买

windows - Windows位置上的Docker根文件夹

python - Windows中没有PRIMARY选择剪贴板吗

android - Android 开源项目中的 Google Maps API key

c# - asp.net mvc 中的表单超时问题

c# - 如何将 List<model> 从 MVC4 中的 View 传递到 Controller ?

c# - 将应用程序从 ASP.NET 移植到 ASP.NET MVC