0

当我使用 Silverlight 4 创建一个新的 Silverlight 应用程序(如果重要的话是 C#)并在设计器中打开 MainPage.xaml 时,我收到一个Unhandled Exception has occurred.

Stack details如下面所述:

System.IO.FileNotFoundException
Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
   at MS.Internal.Platform.SilverlightPlatformImpl.Initialize()
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String originalIdentifier, Boolean isGlobal, String identity, FrameworkName frameworkName, AssemblyName appAssemblyName, IVsHierarchy hierarchy)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(String identifier, IServiceProvider provider)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identifier, IServiceProvider provider)
   at MS.Internal.Providers.VSDesignerContext.CreateIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy)
   at MS.Internal.Providers.VSDesignerContext.<>c__DisplayClass1.<Initialize>b__0(IsolationProviderProxy i)
   at MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()
   at MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler value)
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()

请帮助解决此问题。

4

1 回答 1

0

经过大量的头脑风暴谷歌搜索和点击和试用,在安装 Visual Studio 2010 Service Pack 1 后,这些东西对我有用。

于 2013-06-05T09:22:13.503 回答