"log-"+ Now.ToString(“dd-MM-yyyy”) + ".txt" throws error

On searching the group for “assure that this workflow is compiled” I easily found this post:

I’m guessing you have your project set to Windows instead of Windows Legacy, and don’t have the proper version of .Net installed.