Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

BadImageFormatException for System.ServiceModel.Web.dll

$
0
0

Hi All,
I'm running into a few exceptions related to System.ServiceModel.Web. According to the documentation, this is an available assembly, but I get errors whenever I try to work with it from my Xamarin.Mac app.

Simply running this code:

            var Data = System.IO.File.ReadAllBytes(@"/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.6.1-api/System.ServiceModel.Web.dll");

            System.Reflection.Assembly.Load(Data);

Generates the exception.

Does anyone have any suggestions? Perhaps something is messed up with this assembly?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>