Error FS0193 System.IO.Compression.CompressionLevel


I have fsx script in my project on the TeamCity server. It is run by FAKE.exe tool that using fsi.exe. After runnig I got the next error:

error FS0193: internal error: Could not load type 'System.IO.Compression.CompressionLevel' from assembly 'System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'

The script works fine locally and it seems that it's using System.IO.Compression.dll that is in the C:\Windows\Microsoft.NET\Framework\v4.0.30319 folder. Is there this dll on the server?
I put it on my own and after that I got the error above. It seems that fsi.exe on the server doesn't work with such dll version. However, I have .NET 4.0 installed.

Do you know how to fix it?


1 comment
Comment actions Permalink


Does a build succeed if you run it via console on this machine in the same working directory and under the same user account that the agent is running (see this guide)?


Please sign in to leave a comment.