Please have a look at assembly binding redirect in your Web.config. WebSharper binaries are currently built against F# 2.0.0.0 but they work against F# 4.0.0.0 (.NET 4.0) and F# 4.3.0.0 (.NET 4.5) provided you configure the runtime to redirect the binding:

1
2
3
4
5
6
  <assemblyBinding appliesTo="v4.0.30319" xmlns="urn:schemas-microsoft-com:asm.v1">
   <dependentAssembly>
    <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="2.0.0.0" newVersion="4.3.0.0" />
   </dependentAssembly>
  </assemblyBinding>

I think if you use VS 2011 Beta then the default templates will target 4.5 and contain this redirect. If you use VS 2010, everything will default to 4.0 and will require modification manually.

If the development server does not have FSharp.Core installed in the GAC, you will also need to make sure FSharp.Core 4.3.0.0 makes it into the bin folder of your web app.

By on 5/25/2012 3:10 PM ()

Thank you

By on 5/26/2012 12:13 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper