2012-09-16 4 views
11

Hinweis diese Dinge:Microsoft Advertising SDK für Windows 8 RTM verursacht Zugriff verweigert Fehler

  • ich Windows 8 RTM haben.
  • Ich habe Visual Studio 2012 RTM.
  • Ich habe Microsoft Advertising SDK RTM.

Alles was ich tue ist: Fügen Sie einen Verweis darauf hinzu.

Der Fehler:

System.UnauthorizedAccessException 
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func) 
    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 
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 

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__DisplayClass8.<CreateDesignerImpl>b__6(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 
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) 
    at System.Reflection.Adds.NativeMethods.SafeOpenFile(String fileName) 
    at System.Reflection.Adds.FileMapping..ctor(String fileName) 
    at System.Reflection.Adds.MetadataDispenser.OpenFileAsFileMapping(String fileName) 
    at Microsoft.MetadataReader.Loader.LoadAssemblyFromFile(String file) 
    at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyUsingReferenceType(String path) 
    at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadRuntimeAssemblyFrom(String path) 
    at Microsoft.Expression.Utility.WindowsRuntimeContext.LoadFrom(String path) 
    at Microsoft.Expression.Utility.AssemblyHelper.LoadFrom(String path) 
    at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveInstalledAssembly(String path) 
    at Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(String assemblyPath, String assemblyFullName, String projectPath, IHostShadowCopyTask hostShadowCopyTask) 
    at Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String path, String assemblyFullName) 
    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__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func) 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e() 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15() 
    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() 

Antwort

11

Dies kann für eine Korrektur in einem zukünftigen Update geplant, um ein bekanntes Problem in Beziehung gesetzt werden. In der Zwischenzeit können Sie versuchen, die folgenden und sehen, ob es das Problem behebt:

  1. Schließen Sie alle Instanzen von Visual Studio
  2. dort Stellen Sie sicher, sind keine Fälle von xDescProc.exe oder MSBuild.exe auf der Maschine läuft
  3. von einem Admin-Eingabeaufforderung:

"C:\Windows\system32\icacls.exe" "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs" /grant "*S-1-15-2-1":(OI)(CI)(IO)(GR,GE) /grant "*S-1-15-2-1":(RX)

Dies setzt voraus, dass Microsoft Advertising SDK bei

installiert ist

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs

Starten Sie dann Visual Studio neu und öffnen Sie den XAML-Designer.

+0

Ja, es sagt mir nur falsche Lautstärke, ich habe es im Standardverzeichnis installiert –

+0

Wann kommt das Advertising SDK dann heraus? Es heißt Mitte September ... es ist Mitte September –

+0

Entschuldigung Rob, es gab ein Anführungszeichen, das im Befehl fehlte, und ich habe es bearbeitet. Ich sehe den Absturz nicht, aber der Befehl funktioniert jetzt für mich. Was die SDK-ETA angeht, weiß ich nicht mehr als das, was auf der Site gepostet wurde. –

Verwandte Themen