Last post May 13, 2011 02:06 AM by Jonathan Shen – MSFT
May 05, 2011 09:31 PM|Nullio|LINK
I have a very strange problem. I'm trying to get IronPython working with XNA, I've copied the source from: http://www.ironpython.info/index.php/XNA_Example_with_a_Bouncing_Sprite
Then when I compile this I got the error "IOError: System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."
I fixed this issue by added a ipy.exe.config file in the same director as my ipy.exe with the following config information:
This worked perfectly and I was able to compile and run the code on all but 1 machine which gives me the error:
"SystemError: The invoked member is not supported in a dynamic assembly."
when trying to create an XNA object. IT works fine on 2 out of 3 machines both with the latest IronPython and XNA installed the only difference is the machine it is not working on is Windows 7 32 bit where the other 2 are 64bit (shouldn't make a difference?)
I'm bashing my head over this can someone point me in the right direction? even some insight as to what the error means and some steps I might take to debug
May 13, 2011 02:06 AM|Jonathan Shen – MSFT|LINK
What's your issue going now?