-
Notifications
You must be signed in to change notification settings - Fork 259
Description
We have .NET 8 WPF application which uses CS-Script. After updating to 4.8.21 (or newer 4.8.x) we are facing issue in test environment.
Test environment is clean Win10 IoT Enterprise and .NET 8 SDK. No other software installed. In development environment everything works without issues, because it has .NET 9 SDK installed.
In test environment we found following:
4.8.19: Works fine with .NET 8 SDK
4.8.21: Does not work without .NET 9 runtime. It requires .NET 8 SDK and .NET 9 runtime.
Error message is:
CSScriptLib.CompilerException
BUILD: error : System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:17001
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at CSScriptLib.BuildServer.Request(String request, Nullable1 port) at CSScriptLib.BuildServer.SendBuildRequest(String[] args, Nullable
1 port)
System.ValueTuple2[System.Byte[],System.Byte[]] CompileAssemblyFromFileBatch_with_Csc(System.String[], System.String[], System.String, Boolean, CSScriptLib.CompileInfo) at CSScriptLib.CodeDomEvaluator.CompileAssemblyFromFileBatch_with_Csc(String[] fileNames, String[] ReferencedAssemblies, String outAssembly, Boolean IncludeDebugInformation, CompileInfo info) at CSScriptLib.CodeDomEvaluator.Compile(String scriptText, String scriptFile, CompileInfo info) at CSScriptLib.EvaluatorBase
1.CompileCode(String scriptText, String scriptFile, CompileInfo info)
at CSScriptLib.EvaluatorBase1.CompileCode(String scriptText) at CSScriptLib.EvaluatorBase
1.LoadCode(String scriptText, Object[] args)
Then even more strange thing. If we first run application which has 4.8.19 and immediately after that the application which has 4.8.21, it works! But after computer reboot 4.8.21 version fails again.