Silverlight designer未处理的异常(IOException)。无法打开xaml页

Silverlight designer未处理的异常(IOException)。无法打开xaml页,silverlight,Silverlight,当我使用Silverlight 4创建一个新的Silverlight应用程序(如果有必要的话)并在设计器中打开MainPage.xaml时,我收到一个未处理的异常发生 堆栈详细信息如下所示: System.IO.FileNotFoundException Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or on

当我使用Silverlight 4创建一个新的Silverlight应用程序(如果有必要的话)并在设计器中打开MainPage.xaml时,我收到一个
未处理的异常发生

堆栈详细信息如下所示:

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()
System.IO.FileNotFoundException
无法加载文件或程序集“System.Windows,Version=2.0.5.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e”或其依赖项之一。系统找不到指定的文件。
在MS.Internal.Platform.SilverlightPlatformImpl.Initialize()处
在MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()处
在MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()处
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(字符串原始标识符、布尔值isGlobal、字符串标识、FrameworkName FrameworkName、AssemblyName appAssemblyName、IVsHierarchy层次结构)
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(字符串标识符,IServiceProvider提供程序)
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(字符串标识符,IServiceProvider提供程序)
位于MS.Internal.Providers.VSDesignerContext.CreateIsolationProvider(IServiceProvider提供程序,IVsHierarchy层次结构)
在MS.Internal.Providers.VSDesignerContext.c__DisplayClass1.b__0(IsolationProviderProxy i)
在MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()上
在MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler值)处
在MS.Internal.Designer.DesignerPane.LoadDesignerView()上

请帮助解决此问题。

在进行了大量的谷歌搜索、点击和试用之后,在安装Visual Studio 2010 Service pack 1之后,这些东西对我起到了作用。

您在xaml中做了任何更改吗?这意味着您的xaml中有错误。如果没有问题,那么尝试清理您的解决方案。我在xaml中没有更改任何内容。我也尝试过清洗解决方案,但没有任何效果。显示xaml代码please@AbhishekGahlout请显示您的xaml代码。在创建新silverlight项目时生成的默认代码中,我没有更改任何内容。