System.Reflection.TargetInvocationException调用目标抛出了异常。 [英] System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation.

查看:3637
本文介绍了System.Reflection.TargetInvocationException调用目标抛出了异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 8 x64上

On windows 8 x64

使用

MICROSOFT VISUAL STUDIO ULTIMATE 2012

MICROSOFT VISUAL STUDIO ULTIMATE 2012

我打开我的visualstudio - > windows phone - >我无法得到设计师。但是xaml& cs代码很好。 

when i open my visualstudio -> windows phone -> am not able to get designer. but xaml & cs codes are well. 

在设计师的位置,我得到这个....

In the place of designer, am getting this....

未处理的异常发生

System.Reflection.TargetInvocationException

调用目标抛出了异常。

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action,Int32 targetApartmentId,WaitHandle aborted,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action,Int32 targetApartmentId,WaitHandle aborted,CallSynchronizationMode syncMode,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle`1 targetObject,Action action,CallSynchronizationMode syncMode)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TResult,TValue](RemoteHandle`1 targetObject,Func`2 func,CallSynchronizationMode syncMode)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item,IHostTextEditor editor,RemoteCancellationToken remoteCancelToken)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。<> c__DisplayClass12。< Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner> b__11(RemoteCancellationToken remoteToken)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation [TResult](CancellationToken cancelToken,Func`2 func)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item,IHostTextEditor editor,CancellationToken cancelToken)

    at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



System.Reflection.TargetInvocationException

异常已被删除由调用目标抛出。



服务器堆栈跟踪: 

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action,Int32 targetApartmentId)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn [TResult](IRemoteObject targetObject,Func`1 func)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken
remoteToken)

&NBSP;   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Object []& outArgs)

    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)



在[0]处重新抛出异常: 

    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)

    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken cancelToken)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。<> c__DisplayClass8。< CreateDesignerImpl> b__6(IRemoteDesignerService d)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass4`2。< MarshalOut> b__3()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
$


System.Reflection.TargetInvocationException

异常被调用的目标抛出。

    at System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] arguments,Signature sig,Boolean constructor)

   在System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)

   在System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark& stackMark)

   在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)

   在System.Activator.CreateInstance(Type type,Object [] args)

    at Microsoft.Expression.DesignSurface.PlatformLoader.CreatePlatformCreator(IPlatformService platformService,String assemblyFile,String typeName)

    at Microsoft.Expression.DesignSurface.PlatformLoader。<> c__DisplayClass4。< Register> b__1()

    at Microsoft.Expression.Platform.PlatformService.PlatformEntry.get_PlatformCreator()

    at Microsoft.Expression.Platform.PlatformService.GetPlatformCreator(String frameworkSpec)

    at Microsoft.Expression.Platform.PlatformService.IsCompatibleFramework(FrameworkName hostFramework,FrameworkName guestFramework)

    at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project,IPlatform platform,Boolean create)

    at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)

    at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item,IHostTextEditor editor,CancellationToken cancelToken)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass10。<> c__DisplayClass12。< Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner> b__f(CancellationToken
cancelToken)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation [TResult](IRemoteCancellationToken remoteToken,Func`2 func)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass10。< Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner> b__e()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass16`1。< MarshalIn> b__15()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
$


System.NotSupportedException

找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action,Int32 targetApartmentId,WaitHandle aborted,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action,Int32 targetApartmentId,WaitHandle aborted,CallSynchronizationMode syncMode,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle`1 targetObject,Action action,CallSynchronizationMode syncMode)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TResult,TValue](RemoteHandle`1 targetObject,Func`1 func,CallSynchronizationMode syncMode)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.Invoke [T](Func`2 action)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName)

    at Microsoft.Expression.DesignSurface.PlatformContext.GetProperty(String frameworkSpec,String propertyName)

    at Microsoft.Expression.Platform.PlatformService.GetProperty(String frameworkSpec,String propertyName)

    at Microsoft.Expression.SilverlightPlatform.SilverlightPlatformCreator..ctor(IPlatformService platformService)



System.NotSupportedException

找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。



服务器堆栈跟踪: 

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action,Int32 targetApartmentId)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn [TResult](IRemoteObject targetObject,Func`1 func)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.Invoke [T](Func`2 action)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName)

    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Object []& outArgs)

    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)



在[0]处重新抛出异常: 

    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)

    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)

    at Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService。<> c__DisplayClass1。< Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty> b__0(IHostPlatformService s)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1。<> c__DisplayClass4`1。< Invoke> b__3()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass7`2。< MarshalOut> b__6()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
$


System.NotSupportedException

找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。

    at Microsoft.Expression.HostUtility.Platform.SilverlightDomainFactory.get_ReferenceAssembliesPath()

    at Microsoft.Expression.HostUtility.Platform.HostPlatformService.GetProperty(String frameworkSpec,String propertyName)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService。<> c__DisplayClass1。< Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty> b__0(IHostPlatformService s)

    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1。<> c__DisplayClass4`1。< Invoke> b__3()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass16`1。< MarshalIn> b__15()

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.

Server stack trace: 
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Microsoft.Expression.DesignSurface.PlatformLoader.CreatePlatformCreator(IPlatformService platformService, String assemblyFile, String typeName)
   at Microsoft.Expression.DesignSurface.PlatformLoader.<>c__DisplayClass4.<Register>b__1()
   at Microsoft.Expression.Platform.PlatformService.PlatformEntry.get_PlatformCreator()
   at Microsoft.Expression.Platform.PlatformService.GetPlatformCreator(String frameworkSpec)
   at Microsoft.Expression.Platform.PlatformService.IsCompatibleFramework(FrameworkName hostFramework, FrameworkName guestFramework)
   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)
   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.NotSupportedException
Could not find Microsoft Silverlight SDK 5.0. Please make sure that the correct version of the Microsoft Silverlight SDK has been installed.
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`1 func, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.Invoke[T](Func`2 action)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec, String propertyName)
   at Microsoft.Expression.DesignSurface.PlatformContext.GetProperty(String frameworkSpec, String propertyName)
   at Microsoft.Expression.Platform.PlatformService.GetProperty(String frameworkSpec, String propertyName)
   at Microsoft.Expression.SilverlightPlatform.SilverlightPlatformCreator..ctor(IPlatformService platformService)

System.NotSupportedException
Could not find Microsoft Silverlight SDK 5.0. Please make sure that the correct version of the Microsoft Silverlight SDK has been installed.

Server stack trace: 
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.Invoke[T](Func`2 action)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec, String propertyName)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec, String propertyName)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.<>c__DisplayClass1.<Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty>b__0(IHostPlatformService s)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.<>c__DisplayClass4`1.<Invoke>b__3()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass7`2.<MarshalOut>b__6()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.NotSupportedException
Could not find Microsoft Silverlight SDK 5.0. Please make sure that the correct version of the Microsoft Silverlight SDK has been installed.
   at Microsoft.Expression.HostUtility.Platform.SilverlightDomainFactory.get_ReferenceAssembliesPath()
   at Microsoft.Expression.HostUtility.Platform.HostPlatformService.GetProperty(String frameworkSpec, String propertyName)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.<>c__DisplayClass1.<Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty>b__0(IHostPlatformService s)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper`1.<>c__DisplayClass4`1.<Invoke>b__3()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

plz rpl如果你知道soln,你可以尽快... 

plz rpl if u know the soln, as fast as u can... 

推荐答案

这似乎是关键:无法找到Microsoft Silverlight SDK 5.0。请确保正确的版本...  因此无法正确安装某些内容

This seems to be the key: Could not find Microsoft Silverlight SDK 5.0. Please make sure that the correct version of the ...   So something is not installed correctly

尝试修复Visual Studio安装。 如果这不起作用,请卸载Visual Studio,然后重新安装。

Try Repairing you Visual Studio Installation.  If that does not work, Uninstall Visual Studio, then re-install it.


这篇关于System.Reflection.TargetInvocationException调用目标抛出了异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆