【问题标题】:Silverlight designer unhandled exception (IOException) . Unable to open xaml pageSilverlight 设计器未处理异常 (IOException)。无法打开 xaml 页面
【发布时间】:2013-06-05 05:38:44
【问题描述】:

当我使用 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()

请帮助解决这个问题。

【问题讨论】:

  • 您是否更改了 xaml 中的任何内容?这意味着您的 xaml 中有错误。如果没有问题,请尝试清理您的解决方案。
  • 我在 xaml 中没有任何改变。我也尝试过清洗溶液,但没有任何效果。
  • 请显示 xaml 代码
  • @AbhishekGahlout 请出示您的 xaml 代码。
  • 我也没有更改创建新 silverlight 项目时生成的默认代码中的任何内容。 schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="schemas.microsoft.com/winfx/2006/xaml" xmlns:d="schemas.microsoft.com/expression/blend/2008" xmlns:mc="schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable=" d" d:DesignHeight="300" d:DesignWidth="400">

标签: silverlight


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-16
    • 1970-01-01
    • 1970-01-01
    • 2021-11-01
    • 2018-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多