F# and Azure

by mheydt 26. March 2009 22:17 >
I pushed my first set of F# code to Azure today.  Upon first run, I got an error that FSharp.Core could not be found.  I was pretty sure it was in the package that was deployed, so I set about a bit investigation.  The most appropriate link I found was the following:

http://code.msdn.microsoft.com/fsharpazure

Basically, you can run F# code in azure, but because F# libraries are stored locally in the GAC (and hence referenced in the GAC), and that since in Azure the the GAC F# assemblies to not allow partial trust the F# libraries are not found by default?

The solution?  It's in that article to a point.  My F# code was not an actual worker_role piece of code, so that template did not assist me.  My worker was a C# worker that was attempting to call an F# library.  Since I had the code, I put the --standalone value in the other flags section of the project properties (see the picture), recompiled, linked the new dll into the C# app, deployed it, and it ran fine!


Tags:

Azure | F#

blog comments powered by Disqus

about the author

I'm a .NET, XAML, and iOS polyglot that loves playing with new things and making cool and innovative stuff.  I am also a Mac junkie.

I am Principal Technologist for SunGard Global Services in NYC, in their Advanced Technologies practice, and I work extensively with SunGard's energy and financial customers.

Note the the posting on this blog are my own and do not represent the position, strategies or opinions of SGS.

twitter

I can't stop thinking big!
Sunday 1:08AM via WindowsLive
Just watched Moneyball. That's my pick for best movie this year.
Saturday 3:51PM via WindowsLive
@vincebelpiede: Report: Skype For Windows Phone Beta Imminent http://t.co/KYNjgg1L#mhtnd
Wednesday 8:39AM via Twitter for Mac
@mashable: Kinect Fusion Will Turn Gaming (and More) Into a 3D Fun House - http://t.co/Ihrq2fY2#mhtnd
Wednesday 8:39AM via Twitter for Mac
New Kinect SDK: http://t.co/57MvA5L5 #mhtnd
Wednesday 8:39AM via Twitter for Mac
Follow me on Twitter

recent comments

None

month list