I want to show my Silverlight 3 application’s version number in the about box, but when I use a traditional .Net call like:
Assembly.GetExecutingAssembly().GetName().Version;
I get a MethodAccessException on the GetName() call. How am I supposed to get the version number of my assembly?
or this:
From: http://betaforums.silverlight.net/forums/p/128861/288595.aspx
a post about it:
http://forums.silverlight.net/forums/p/93400/214554.aspx
You can look at the js file I posted here: Detect Silverlight version required by an assembly
Your error is expected.as it is secutiry critical, above are some work arounds.