System.MethodAccessException thrown on load

Post here all your questions related with beta Silverlight API

Moderators: Lapo, Bax

cgay
Posts: 5
Joined: 25 May 2010, 18:58

System.MethodAccessException thrown on load

Postby cgay » 28 Jul 2011, 22:18

I am attempting to build a WP7 game utilizing XNA. I have upgraded the Silverlight project through Web Developer 2010 and have referenced it in my project. On start running my game I get:

A first chance exception of type 'System.MethodAccessException' occurred in SmartFoxClientAPI_Silverlight.dll

The only thing I can see that might throw that error is line 292 in JsonMapper.cs:

MethodInfo op = t1.GetMethod (
"op_Implicit", new Type[] { t2 });

Is this the cause and if so what can I do to solve it. If it isn't does anyone have any ideas? Let me know if more information is needed.

Thanks in advance!
cgay
Posts: 5
Joined: 25 May 2010, 18:58

Found it

Postby cgay » 29 Jul 2011, 15:54

Current WP7 doesn't support Sockets :( . It is possible that it will with the Mango update. Going to look in the Other API's list for a WCF build.

Return to “Silverlight API”

Who is online

Users browsing this forum: No registered users and 4 guests