我已经安装了VS-2012 Express Edition。现在,我正在尝试创建Silverlight应用程序。
在一开始我以下列错误结束:
您需要在创建Silverlight项目之前安装最新的Silverlight Developer运行时。 下载x86运行时: go.microsoft.com/fwlink/?LinkId=229323
因此,我从上面给出的URL下载了Silverlight Developer运行时,我尝试再次创建Silverlight应用程序。
当我点击新建项目对话框中的确定按钮时,我收到以下错误。
可能是什么原因?任何人都可以建议解决方案是什么?
错误摘要如下:
System.Reflection.TargetInvocationException 调用的目标抛出了异常。 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作操作,Int32 targetApartmentId,WaitHandle中止,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(操作操作,Int32 targetApartmentId,WaitHandle中止,CallSynchronizationMode syncMode,WaitHandle timeoutSignal) 在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,Func2 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) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken) 在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)System.Reflection.TargetInvocationException 调用目标引发了异常。
服务器堆栈跟踪: 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action,Int32 targetApartmentId) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn [TResult](IRemoteObject targetObject,Func`1 func) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken remoteToken) 在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Object []&amp; outArgs) 在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
在[0]处重新抛出异常: 在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData,Int32 type) 在Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken cancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。&lt;&gt; c__DisplayClass8.b__6(IRemoteDesignerService d) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。&lt;&gt; c__DisplayClass4`2.b__3() 在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&amp; stackMark) 在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes) 在System.Activator.CreateInstance(Type type,Object [] args) 在Microsoft.Expression.DesignSurface.PlatformLoader.CreatePlatformCreator(IPlatformService platformService,String assemblyFile,String typeName) 在Microsoft.Expression.DesignSurface.PlatformLoader。&lt;&gt; c__DisplayClass4.b__1() 在Microsoft.Expression.Platform.PlatformService.PlatformEntry.get_PlatformCreator() 在Microsoft.Expression.Platform.PlatformService.GetPlatformCreator(String frameworkSpec) 在Microsoft.Expression.Platform.PlatformService.IsCompatibleFramework(FrameworkName hostFramework,FrameworkName guestFramework) 在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject项目,IPlatform平台,布尔创建) 在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem) 在Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。&lt;&gt; c__DisplayClass10。&lt;&gt; c__DisplayClass12.b__f(CancellationToken cancelToken) 在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.b__15() 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()System.NotSupportedException 找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(操作操作,Int32 targetApartmentId,WaitHandle中止,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(操作操作,Int32 targetApartmentId,WaitHandle中止,CallSynchronizationMode syncMode,WaitHandle timeoutSignal) 在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,Func1 func, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper
1.Invoke [T](Func`2动作) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName) 在Microsoft.Expression.DesignSurface.PlatformContext.GetProperty(String frameworkSpec,String propertyName) 在Microsoft.Expression.Platform.PlatformService.GetProperty(String frameworkSpec,String propertyName) 在Microsoft.Expression.SilverlightPlatform.SilverlightPlatformCreator..ctor(IPlatformService platformService)System.NotSupportedException 找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。
服务器堆栈跟踪: 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal) 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action,Int32 targetApartmentId) 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action) 在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动作) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName) 在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Object []&amp; outArgs) 在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)在[0]处重新抛出异常: 在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData,Int32 type) 在Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String frameworkSpec,String propertyName) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService。&lt;&gt; c__DisplayClass1.b__0(IHostPlatformService s) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper
1.<>c__DisplayClass4
1.b__3() 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。&lt;&gt; c__DisplayClass7`2.b__6() 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()System.NotSupportedException 找不到Microsoft Silverlight SDK 5.0。请确保已安装正确版本的Microsoft Silverlight SDK。 在Microsoft.Expression.HostUtility.Platform.SilverlightDomainFactory.get_ReferenceAssembliesPath() 在Microsoft.Expression.HostUtility.Platform.HostPlatformService.GetProperty(String frameworkSpec,String propertyName) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService。&lt;&gt; c__DisplayClass1.b__0(IHostPlatformService s) 在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper
1.<>c__DisplayClass4
1.b__3() 在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。&lt;&gt; c__DisplayClass16`1.b__15() 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
答案 0 :(得分:6)
格式化错误消息后,我发现您的问题是您还需要安装Silverlight 5工具,您可以在此页面上找到它:Silverlight.net downloads page。
答案 1 :(得分:1)
我受到了slugster的启发,我也开始扫描完整的错误信息。我发现需要安装Microsoft®Silverlight®5SDK。我从here安装了相同的内容,我的问题已经解决了。