Visual Studio设计视图中的UnauthorizedAccessException

时间:2014-01-15 18:51:20

标签: c# telerik windows-store-apps visual-studio-2013 windows-8.1

我在使用visual studio的设计视图时出现问题,当我尝试加载Telerik引用时,我会收到一个错误,当我加载时,当我删除时,我会收到异常异常消失了。

所有这些都发生在空白Telerik controls for windows 8上,其中只有一个网格。该项目将运行良好,并显示我在xaml中的任何UI,但它只是不会在设计视图中显示。

这是堆栈跟踪

xaml

和我的 System.UnauthorizedAccessException Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft.VisualStudio.Silverlight.AssemblyMetadataHelper.IMetaDataDispenserEx.OpenScope(String szScope, Int32 dwOpenFlags, Guid& riid) at Microsoft.VisualStudio.Silverlight.AssemblyMetadataHelper.OpenScope(IMetaDataDispenserEx dispenser, String path) at Microsoft.Expression.Utility.AssemblyHelper.TryGetAttributeValueAsString(String path, String attributeName, String& attributeValue, Boolean& attributeExists) at Microsoft.Expression.Utility.AssemblyHelper.IsDesignAssembly(String path, Version extensibilityAssemblyVersion) at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.FindBestMetadataAssembly(IEnumerable`1 possiblePaths) at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.FindMetadataAssembly(String assemblyPath, String designerExtension) at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.EnsureDesignMetadataLoaded(Boolean showErrors) at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.AssemblyCollection_EnumerationChanged(Object sender, EnumerationChangedEventArgs`1 e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.Expression.Utility.Collections.NotifyingCollectionBase`1.EventInvoker(EnumerationChangedEventArgs`1 eventArguments) at Microsoft.Expression.Utility.Events.SuspendingEventManager`1.ForwardEvents() at Microsoft.Expression.Utility.Events.Suspender.SuspendDisposer.Dispose(Boolean disposing) at Microsoft.Expression.Utility.Events.Suspender.SuspendDisposer.Dispose() at Microsoft.Expression.DesignSurface.Assemblies.AssemblyCollection.AssemblyService_AssembliesUpdated(Object sender, EventArgs`1 e) at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.OnAssembliesUpdated(IEnumerable`1 assemblyInformation) at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.WindowsRuntimeService_IterationContextChanged(Object sender, WindowsRuntimeContextChangedEventArgs e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.Expression.Utility.WindowsRuntimeService.SetIterationContext(String[] paths) at Microsoft.Expression.Utility.WindowsRuntimeService.SynchronizeDesignerContext() at Microsoft.Expression.Utility.WindowsRuntimeService.ProcessShadowCopyResults(IEnumerable`1 results) at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.FlushShadowCopyUpdateQueue() at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.Project_ReferencesChanged(Object sender, HostItemChangesEventArgs`1 e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalEvent`3.<>c__DisplayClass1b.<Invoke>b__1a() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvoke(Boolean inbound, Action action, Int32 sourceApartmentId, Int32 targetApartmentId, Int32 originId, WaitHandle aborted) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvokeInbound(Action action, Int32 targetApartmentId) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalEvent`3.Invoke(Object sender, TEvent args) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalHostProject.<>c__DisplayClass9b.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteHostProjectCallback.OnReferencesChanged>b__9a() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessInboundQueue(Int32 identity) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessMessage(Int32 msg, IntPtr wParam, IntPtr lParam, Boolean elevatedQuery, Boolean& handled) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at Microsoft.Expression.DesignHost.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at Microsoft.Expression.DesignHost.Isolation.DesignerProcess.RunApplication() at Microsoft.Expression.DesignHost.Isolation.DesignerProcess.DesignProcessViewProvider.AppContainerDesignerProcessRun(String[] activationContextArgs) at Microsoft.Expression.DesignHost.Isolation.DesignerProcess.DesignProcessViewProvider.<>c__DisplayClass7.<applicationView_Activated>b__6() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

xaml

这个错误似乎并没有给我任何关于问题的信息。有什么想法吗?

0 个答案:

没有答案