我正在使用CSC敏捷平台,这是一个混合云平台,它使用cygwin在它创建的虚拟机上运行脚本。
我有一个Windows Server 2012标准,我必须安装SQL server 2012 express,使用cygwin调用安装程序。
当我使用" cmd"执行SQL服务器设置时即命令提示符,它运行正常。但是当我使用cygwin时,安装崩溃了。如果使用cygwin安装任何其他软件,它工作正常,安装不会崩溃。它只发生在SQL服务器上,但使用" cmd"安装完成后。
即使我打开" cmd"通过cygwin,问题就出现了。
安装程序没有损坏,我重新下载了SQL服务器设置并尝试过,它仍然崩溃。
Description:
Stopped working
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: scenarioengine.exe
Problem Signature 02: 11.0.2100.60
Problem Signature 03: 4f35dbe7
Problem Signature 04: Microsoft.SqlServer.Chainer.Infrastructure
Problem Signature 05: 11.0.0.0
Problem Signature 06: 4f35dbe6
Problem Signature 07: 200
Problem Signature 08: 179
Problem Signature 09: ZAGSF01GRLFWVJMY5S0U0HXSJJE2HDT4
OS Version: 6.2.9200.2.0.0.272.7
Locale ID: 1033
这是SQL Server安装程序生成的异常的堆栈跟踪:
Unhandled Exception: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException: Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp' ---> S
ystem.ArgumentException: Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Specialized.StringDictionary.Add(String key, String value)
at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputN
ame, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& e
rrorName, String trueCmdLine)
at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeRetu
rnValue, 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 par
ameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache)
--- End of inner exception stack trace ---
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SetCommonFlag(String key, Boolean value)
at Microsoft.SqlServer.Chainer.Setup.Setup.InitializeLogProviders(ServiceContainer context)
at Microsoft.SqlServer.Chainer.Setup.Setup.Run()
at Microsoft.SqlServer.Chainer.Setup.Setup.Start()
at Microsoft.SqlServer.Chainer.Setup.Setup.Main()
答案 0 :(得分:0)
我解决了它,我刚刚将cygwin更新到了最新版本,并且它有效。