2012-03-06 16 views
2

私たちのプロダクションサーバーでは、mvc 3 .NET 4サイトを実行している2008年の32ビットを獲得しました 私は突然エラーログ "このプログラムを開くことができませんライセンス執行システムが改ざんされているか破損しているためです。ライセンス執行システムが改ざんされている - win server 2008

すべてのソフトウェアはライセンスが付与されており、しばらくの間サーバーに新しいものはインストールされていません。

オブジェクトがXMLにシリアル化されたときにコントローラメソッドを呼び出すと、例外がスローされます。 Se以下のスタックトレースから抽出します。

ここで何が間違っているかを知る方法はありますか?

敬具およびTIA /のStaffan

  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) 

答えて

3

私は、私はそれが

スタックトレースを見ると、クラッシュがXMLシリアル化のための一時的なアセンブリをコンパイルしたCodeDOMで発生することが見ていたと思います私はこれをgoogledし、ページの後に来て 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

関連する問題