Error FS0193 System.IO.Compression.CompressionLevel

Hello,

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=4.0.0.0, 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?

Thanks!

1 comment
Comment actions Permalink

Hi,

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)?

0

Please sign in to leave a comment.