VS 2010 - 找不到Silverlight SDK v4.0 [英] VS 2010 - Could not find Silverlight SDK v4.0

查看:84
本文介绍了VS 2010 - 找不到Silverlight SDK v4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


前段时间我将Visual Studio许可证升级到VS 2010,安装了Silverlight(版本3和4)并开始编码。就在上周我安装了MS Expression Ultimate和MS Office 2010的副本,因为我遇到了这些问题,我跑了
一个注册表清理。安装和注册表清理的组合完全搞砸了我的VS 2010给我以下错误:


System.NotSupportedException

找不到Microsoft Silverlight SDK v4 0.0。 Plase确保已安装正确版本的Microsoft Silverlight SDK。

  在MS.Internal.Platform.SilverlightResolver.get_ReferenceAssemblyPath()

  在MS.Internal.Platform.SilverlightPlatform.ConfigureAppDomain(AppDomainSetup设置)

  在MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String originalIdentifier,Boolean isGlobal,String identity,FrameworkName frameworkName,AssemblyName appAssemblyName,IVsHierarchy hierarchy)

  在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。< Initialize> b__0(IsolationProviderProxy i)

  在MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()

  在MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler value)

  在MS.Internal.Designer.DesignerPane.LoadDesignerView()


我找到了下面的线程,并按照使用SubInACL命令更改注册表权限的说明进行操作。


http://social.msdn.microsoft .com /论坛/ en-US / vswpfdesigner / thread / 34b26e8f-7529-422b-9fab-42d58fcff6c8


我还卸载了VS 2010,Silverlight v4.0重新启动然后重新安装了VS 2010和Silverlight v4.0,然后重新启动并启动了VS 2010并打开了我的silverlight项目。再次这对我不起作用,我仍然收到错误消息。我再次重复了整个
流程,以确保我正确地执行了所有步骤。这仍然不起作用。


任何人都可以提出任何其他建议吗?遵循此主题和相关的


http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx


似乎这是一个常见的问题,据我所知,可以追溯到2006年。微软是否正在努力解决这个问题? 

解决方案

我终于通过在我的机器上卸载所有版本的Silverlight并重新安装来设法让我的Silverlight项目出现在VS 2010中。这似乎已经成功了,但我花了很多时间试图让这个工作。恶梦!!!!


Hello,

A while back I upgraded my Visual Studio License to VS 2010, installed Silverlight (versions 3 and 4) and started coding. Just last week I installed a copy of MS Expression Ultimate and MS office 2010 and becuase I was having difficulty with these, I ran a registry clean. the combination of the installs and registry clean has completely messed up my VS 2010 giving me the following error :

System.NotSupportedException
Could not find Microsoft Silverlight SDK v4.0. Plase make sure that the correct version of the Microsoft Silverlight SDK has been installed.
   at MS.Internal.Platform.SilverlightResolver.get_ReferenceAssemblyPath()
   at MS.Internal.Platform.SilverlightPlatform.ConfigureAppDomain(AppDomainSetup setup)
   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()

I found the thread below and followed the instructions in using the SubInACL commands to change registry permissions.

http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/34b26e8f-7529-422b-9fab-42d58fcff6c8

I also uninstalled VS 2010, Silverlight v4.0 rebooted and then reinstalled VS 2010 and Silverlight v4.0, then rebooted and started VS 2010 and opened my silverlight project. Again this did not work for me, i still got the error message. I repeated the whole process again, just to make sure I followed all the steps properly. Still this does not work.

Can anybody make any other suggestions? Having followed this thread and the associated

http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx

it seems that this is a common problem, as far as I can tell dating as far back as 2006. is there any solution/change that Microsoft is working on to alleviate this problem? 

解决方案

I finally managed to get my Silverlight project to show up in VS 2010 by uninstalling all versions of Silverlight on my machine and re-installing. This seems to have done the trick, but I have invested a lot of time trying to get this working. Nightmare!!!!


这篇关于VS 2010 - 找不到Silverlight SDK v4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆