This project is read-only.
1

Resolved

There are many errors in other Demos_GameBase's samples run in silverlight

description

The error is :
 
System.ArgumentNullException was unhandled by user code
Message=值不能为 null。
参数名: input
StackTrace:
   位于 System.IO.BinaryReader..ctor(Stream input, Encoding encoding)
   位于 System.IO.BinaryReader..ctor(Stream input)
   位于 Microsoft.Xna.Framework.Content.ContentReader..ctor(ContentManager manager, Stream stream, GraphicsDevice graphicsDevice)
   位于 Microsoft.Xna.Framework.Content.ContentManager.LoadXnb[T](String assetName)
   位于 Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
   位于 Xen2D.XenCache`1.Initialize(Type contentElementEnumeration)
   位于 Xen2D.XenCache`1..ctor(ContentManager content, Type contentElementEnumeration)
   位于 Xen2D.SpriteFontCache..ctor(ContentManager content, Type contentElementEnumeration)
   位于 XenGameBase.GameBase.LoadContent()
   位于 Microsoft.Xna.Framework.Game.Initialize()
   位于 XenGameBase.GameBase.Initialize()
   位于 Demo_BasicElement2D.GameMain.Initialize()
   位于 Microsoft.Xna.Framework.Game.gameLoop_Update(Object sender, SimpleEventArgs`1 e)
   位于 SilverArcade.SilverSprite.GameLoop.CompositionTarget_Rendering(Object sender, EventArgs e)
   位于 System.Windows.Media.CompositionTarget.OnRendering(Object sender, RenderingEventArgs e)
   位于 MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
InnerException:
 

 
System.MethodAccessException was unhandled by user code
Message=方法"XenAspects.Pool`1<System.__Canon>.New()"访问方法"Demo_MouseSelection.ClickableElement..ctor()"的尝试失败。
StackTrace:
   位于 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   位于 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
   位于 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
   位于 System.Activator.CreateInstance[T]()
   位于 XenAspects.Pool`1.New()
   位于 XenAspects.ComposableObject`1.Acquire()
   位于 Demo_MouseSelection.GameMain.LoadContent()
   位于 Microsoft.Xna.Framework.Game.Initialize()
   位于 XenGameBase.GameBase.Initialize()
   位于 Microsoft.Xna.Framework.Game.gameLoop_Update(Object sender, SimpleEventArgs`1 e)
   位于 SilverArcade.SilverSprite.GameLoop.CompositionTarget_Rendering(Object sender, EventArgs e)
   位于 System.Windows.Media.CompositionTarget.OnRendering(Object sender, RenderingEventArgs e)
   位于 MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
InnerException:

comments

twohalf wrote Feb 23, 2011 at 12:06 PM

fixed behaviors and elements to be public in order for reflection to succeed in Silverlight.

wrote Feb 14, 2013 at 2:50 AM

wrote May 16, 2013 at 5:46 AM

wrote May 16, 2013 at 5:46 AM

wrote Jun 14, 2013 at 8:39 AM