VS 2012 RC XAML Designer因访问被拒绝而崩溃 [英] VS 2012 RC XAML Designer Crashes with Access Denied

查看:67
本文介绍了VS 2012 RC XAML Designer因访问被拒绝而崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎与VS 2012的预览版和Beta版非常相似。 博客的工作没有帮助。 Windows 8 RP的安装是Windows 7的升级。  VS2012 RC已经安装和卸载(需要花费b $ b一些额外的工作量)并重新安装,以解决Metro Apps的JavaScript调试器问题。

This appears to be very similar problem to Preview and Beta builds of VS 2012.  The work around that was blogged did not help. The installation of Windows 8 RP was an upgrade of Windows 7.  VS2012 RC has been installed and uninstalled (that took some extra effort) and reinstalled to unsuccessfully get around an issues with the JavaScript debugger for Metro Apps.

System.UnauthorizedAccessException

错误5:访问被拒绝:'C:\Program Files(x86) \参考Assemblies\Microsoft\Framework\.NETCore\v4.5 \ Microsoft.CSharp.dll'

  在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)  在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action
action,Int32 targetApartmentId,WaitHandle aborted,WaitHandle timeoutSignal)  在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TValue](RemoteHandle`1 targetObject,Action action)  在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut [TResult,TValue](RemoteHandle`1
targetObject,Func`2 func)  在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem项目,IHostTextEditor编辑器,RemoteCancellationToken remoteCancelToken)  在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem
item,IHostTextEditor editor,CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

System.UnauthorizedAccessException

System.UnauthorizedAccessException

错误5:访问被拒绝:'C:\Program Files(x86)\ Reference Assemblies\Microsoft \ Framework\.NETCore\v4.5 \ Microsoft.CSharp.dll'

Error 5: Access is denied : 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\Microsoft.CSharp.dll'

服务器堆栈跟踪:   在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext,BlockingCall call,WaitHandle timeoutSignal)  在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action
action,Int32 targetApartmentId)  在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject,Action action)  在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn [TResult](IRemoteObject
targetObject,Func`1 func)  在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]处重新抛出异常:   在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)  在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)  
at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem,IRemoteHostTextEditor remoteEditor,IRemoteCancellationToken cancelToken)  在Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService。<> c__DisplayClass2。< CreateDesignerImpl> b__0(IRemoteDesignerService
d)  在Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass4`2。< MarshalOut> b__3()  在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

Server stack trace:    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)   at 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)   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass2.<CreateDesignerImpl>b__0(IRemoteDesignerService d)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.UnauthorizedAccessException

System.UnauthorizedAccessException

错误5:拒绝访问:'C:\Program Files(x86)\Reference Assemblies \\ \\ Microsoft /\\ Framework \ .NETCore \v4.5 \ Microsoft.CSharp.dll'

Error 5: Access is denied : 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\Microsoft.CSharp.dll'

  在Microsoft.Expression.Utility.Interop.NativeMethods.GetFileAttributesInternal(String path)  在Microsoft.Expression.Utility.Interop.NativeMethods.GetFileAttributes(String path,FileAttributes& attributes)  
at Microsoft.Expression.Utility.AssemblyHelper.GetAssemblyNameFromPath(String path)  在Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyFrom(String path)  在Microsoft.Expression.Utility.WindowsRuntimeContext.LoadFrom(String
path)  在Microsoft.Expression.Utility.AssemblyHelper.Load(AssemblyName assemblyName)  在Microsoft.Expression.DesignSurface.Assemblies.WindowsXamlAssemblyResolver.ResolveRuntimeAssembly(AssemblyName assemblyName)  在Microsoft.Expression.Platform.PlatformService.ResolvePlatformAssembly(AssemblyName
assemblyName)  在Microsoft.Expression.DesignSurface.DesignerContext.PlatformAssemblyResolver.ResolveAssembly(AssemblyName assemblyName)  在Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(AssemblyName assemblyName,
IEnumerable`1 assemblyResolverTable)  在Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(IHostProject项目,字符串路径)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String
path)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(IHostReferenceItem reference)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable`1
referencesToUpdate)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver..ctor(IHostProject project,DesignerContext designerContext)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService。< .ctor> b__0(IHostProject
项目)  在Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.CreateItems(TKey key)  在System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key,Func`2 valueFactory)  在Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.GetItem(TKey
key)  在Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)  在Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()  在Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()  
at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project,IPlatform platform,Boolean create)  在Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem
sourceItem)  在Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem项目,IHostTextEditor编辑器,CancellationToken cancelToken)  在Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService。<> c__DisplayClass9。< Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner> b__8()  
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler。<> c__DisplayClass19`1。< MarshalIn> b__18()  在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

   at Microsoft.Expression.Utility.Interop.NativeMethods.GetFileAttributesInternal(String path)   at Microsoft.Expression.Utility.Interop.NativeMethods.GetFileAttributes(String path, FileAttributes& attributes)   at Microsoft.Expression.Utility.AssemblyHelper.GetAssemblyNameFromPath(String path)   at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyFrom(String path)   at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadFrom(String path)   at Microsoft.Expression.Utility.AssemblyHelper.Load(AssemblyName assemblyName)   at Microsoft.Expression.DesignSurface.Assemblies.WindowsXamlAssemblyResolver.ResolveRuntimeAssembly(AssemblyName assemblyName)   at Microsoft.Expression.Platform.PlatformService.ResolvePlatformAssembly(AssemblyName assemblyName)   at Microsoft.Expression.DesignSurface.DesignerContext.PlatformAssemblyResolver.ResolveAssembly(AssemblyName assemblyName)   at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(AssemblyName assemblyName, IEnumerable`1 assemblyResolverTable)   at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(IHostProject project, String path)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String path)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(IHostReferenceItem reference)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable`1 referencesToUpdate)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver..ctor(IHostProject project, DesignerContext designerContext)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.<.ctor>b__0(IHostProject project)   at Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.CreateItems(TKey key)   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)   at Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection`2.GetItem(TKey key)   at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)   at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()   at Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass9.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__8()   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass19`1.<MarshalIn>b__18()   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

推荐答案

嗨Keith,

Hi Keith,

不幸的是你还在遇到这个问题,请按照以下步骤操作,看看是否有帮助:

Unfortunate that you are still running into this, can you please follow these steps and see if this helps:

1。右键单击%Program Files(x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5或您计算机上的相应位置。

1. Right click %Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5 or respective location on your machine.

2. 您会得到这样的东西(重要的是要知道你是否可以在这些文件夹中找到
所有应用程序包 ACL,如下面的屏幕截图所示。)

2. You will get something like this (it is important to know if you can find the ALL APPLICATION PACKAGES ACL on these folders, as in the screenshot below).

 

   3。如果 "所有应用程序包"不可用,请使用此解决方法:

1.  关闭所有正在运行的Visual Studio实例。

2。 启动命令提示符作为管理员。

3。 输入按顺序执行:

<跨度>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; a。 
pushd%VS110COMNTOOLS%

     湾icacls" C:\Program
Files(x86)\ Reference Assemblies\Microsoft\Framework\.NETCore\v4.5"
/ grant * S-1-15-2-1:(OI)(F)

      b. icacls "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5" /grant *S-1-15-2-1:(OI)(F)

       c。 icacls" C:\Program
Files(x86)\ Reference Assemblies\Microsoft\Framework\.NETCore\v4.5" / grant * S-1-15-2-1:(CI)(F)

      c. icacls "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5" /grant *S-1-15-2-1:(CI)(F)

这应解决问题,如果您有更多问题,请发送电子邮件至navits at microsoft dot com。


这篇关于VS 2012 RC XAML Designer因访问被拒绝而崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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