0

VS-2012 Express Edition をインストールしました。今、Silverlight アプリケーションを作成しようとしています。

最初は、次のエラーで終了しました。

Silverlight プロジェクトを作成する前に、最新の Silverlight Developer ランタイムをインストールする必要があります。x86 ランタイムを go.microsoft.com/fwlink/?LinkId=229323 からダウンロードします。

したがって、上記の URL から Silverlight Developer ランタイムをダウンロードし、Silverlight アプリケーションをもう一度作成しようとしました。

[新しいプロジェクト] ダイアログの [ OK ] ボタンをクリックすると、次のエラーが表示されます。

その理由は何ですか?誰でも解決策を提案できますか?

ここに画像の説明を入力

エラーの概要は次のとおりです。

System.Reflection.TargetInvocationException 呼び出しのターゲットによって例外がスローされました。Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion (NestedCallContext nestedCallContext、BlockingCall 呼び出し、WaitHandle timeoutSignal) で Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous (アクション アクション、Int32 targetApartmentId、WaitHandle が中止され、WaitHandle timeoutSignal) ) Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut[TValue](RemoteHandle 1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle1 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, Func2 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、ネストされたCallContext、BlockingCall 呼び出し、WaitHandle timeoutSignal) で、Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(アクション アクション、Int32 targetApartmentId) でMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, アクション アクション) 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) System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) で System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

[0] で例外が再スローされました: Microsoft.Expression で System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 タイプ) で System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) で。 DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem、IRemoteHostTextEditor remoteEditor、IRemoteCancellationToken cancelToken) Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.b__6(IRemoteDesignerService d) Microsoft.Expression.DesignHost.Isolation. Remoting.ThreadMarshaler.<>c__DisplayClass4`2.b__3() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.Reflection.TargetInvocationException 呼び出しのターゲットによって例外がスローされました。System.RuntimeMethodHandle.InvokeMethod (オブジェクト ターゲット、オブジェクト [] 引数、シグネチャ sig、ブール コンストラクター) で System.Reflection.RuntimeConstructorInfo.Invoke (BindingFlags invokeAttr、バインダー バインダー、オブジェクト [] パラメーター、CultureInfo カルチャ) で System.RuntimeType.CreateInstanceImpl (BindingFlags bindingAttr、Binder バインダー、Object[] args、CultureInfo カルチャ、Object[] activationAttributes、StackCrawlMark& stackMark) System.Activator.CreateInstance(Type タイプ、BindingFlags bindingAttr、Binder バインダー、Object[] args、CultureInfo カルチャ、Object[] Microsoft.Expression.DesignSurface.PlatformLoader の System.Activator.CreateInstance(Type type, Object[] args) で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__DisplayClass161.b__15() at 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 呼び出し、WaitHandle timeoutSignal) で Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous (アクション アクション、Int32 targetApartmentId、WaitHandle が中止され、WaitHandle timeoutSignal) ) Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut[TValue](RemoteHandle1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandleMicrosoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String FrameworkSpec , 1 func, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapperString propertyName) at Microsoft.Expression. Microsoft.Expression.Platform.PlatformService.GetProperty(String FrameworkSpec, String propertyName) の DesignSurface.PlatformContext.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、ネストされたCallContext、BlockingCall 呼び出し、WaitHandle timeoutSignal) で、Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(アクション アクション、Int32 targetApartmentId) でMicrosoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, アクション アクション) Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func1 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper1.System.Runtime.Remoting.Messaging の Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.Microsoft.Expression.DesignHost.IHostPlatformService.GetProperty(String FrameworkSpec, String propertyName) で Invoke[T](Func`2 アクション) を呼び出します。 System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) の StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)

[0] で例外が再スローされました: Microsoft.Expression で System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 タイプ) で System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) で。 Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostPlatformService.<>c__DisplayClass1.b__0(IHostPlatformService s) の Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper 1.<>c__DisplayClass41.b__3( ) Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>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.<>c__DisplayClass1. b__0(IHostPlatformService s) Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteWrapper 1.<>c__DisplayClass41.b__3() Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.b__15() Microsoft.Expression.DesignHost .Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

4

2 に答える 2

7

エラー メッセージをフォーマットした後、Silverlight 5 ツールもインストールする必要があることが問題であることがわかりました。Silverlight 5 ツールは、Silverlight.net ダウンロード ページで見つけることができます。

于 2012-10-02T11:24:47.180 に答える
-1

私はスラッグスターに触発され、完全なエラーメッセージのスキャンも開始しました。Microsoft®Silverlight®5SDKをインストールする必要があることがわかりました。ここから同じものをインストールしましたが、問題は解決しました。

于 2012-10-04T23:56:27.300 に答える