I'm developing an ASP.NET MVC 4 (RC) website, runs great on my local dev box.
Deploying to my host (DiscountASP) required me to change <compilation targetFramework="4.5" />
to <compilation targetFramework="4.0" />
even though I bin deployed it.
The site operates fine, until someone who is logged into Facebook, or attempts to connect to my site using their Facebook account (which is nearly all, my membership system uses Facebook primarily), it throws an error:
Could not load type 'System.Reflection.IntrospectionExtensions' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Since it's beta, I'm not worried about leaving the error online at this time, you should be able to re-create the error on my site here.
It appears the Facebook C# SDK is throwing the error, but is it the SDK's fault, or the fact I had to change to 4.0 framework? How could I resolve this?
Update
From what I gather, the System.Reflection.IntrospectionExtensions are new to .net 4.5, which is not on my host. However, my project targets the .net 4.0 framework, and is bin deployed as such. On my development system it runs fine, on host it errors.