UnauthorizedAccessException with Visual Studio 11, simple Grid project
-
9 aprilie 2012 10:13
I have installed Windows 8 Consumer Preview, Visual Studio Professional 11 beta, Blend 11 beta.
I create a simple Grid projet, want to run it and get an UnauthorizedAccessException. I try to open the project in Blend and get
"The imported project C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v10.0\Microsoft.Windows.UI.Xaml.CSharp.targets was not found. In fact on my computer I have C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.CSharp.targets with v11.0 instead of v10.0.
By the way when I try to open and run any samples I got the UnauthorizedAccessException.
Thank you for your help and advices
Yves
Yves Pflieger
Toate mesajele
-
10 aprilie 2012 19:54Moderator
Hi Yves,
could you check the following folders - C:\Program Files (x86)\Windows Kits and C:\Program Files (x86)\Reference Assemblies, right click on each folder, select properties, go to the security tab, is the local user ALL APPLICATION PACKAGES part of the list for each folder?
If so, then we might want to run procmon http://technet.microsoft.com/en-us/sysinternals/bb896645 to see if it is a file or registry resource where we are getting access denied. Run process monitor and repro the UnauthorizedAccessException, go back process monitor and select File | capture events to turn off capturing events, then search for access denied in the events that it captured.
Is this an upgrade scenario where Windows 7 was on the box at one point before you installed windows 8?
much appreciated,
mike
-
11 aprilie 2012 12:09
Hello Yves,
Did you solve this problem? I have the same on my Windows 8.
Alberto Diaz Martin twitter://@adiazcan | http://geeks.ms/blogs/adiazmartin | MVP SharePoint Server
-
11 aprilie 2012 19:00
Hi Yves,
Can you please try the work-around as suggested here:
For UnAuthorizedAccessException - http://blendinsider.com/xaml/known-issue-xaml-designer-in-visual-studio-11-beta-crashes-on-launch-2012-03-07/
For Opening projects in Blend - http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/b9fd941c-2e67-4dea-b81a-e6bb62869418
Thanks,
Navit Saxena -
12 aprilie 2012 09:55
Thank you for your help. Here below are the two screen capture you asked concerning ALL APPLICATION PACKAGES and below is a small access denied monitored by Process Monitor. I have several such errors in the complete log file. I can send you the log file if you want.
PS: The name of my computer is still YVES-PC-WIN7 but it runs on Windows 8 Consumer Preview of course.
Yves
<event>
<ProcessIndex>366</ProcessIndex>
<Time_of_Day>11:07:47,6015835</Time_of_Day>
<Process_Name>Application4.exe</Process_Name>
<PID>8008</PID>
<Operation>RegOpenKey</Operation>
<Path>HKCU\Software\Microsoft\.NETFramework</Path>
<Result>ACCESS DENIED</Result>
<Detail>Desired Access: Read</Detail>
</event>Yves Pflieger
-
12 aprilie 2012 10:02
I have done these two suggestions For UnAuthorizedAccessException and For Opening projects in Blend but the two problems remains.
Yves
Yves Pflieger
-
12 aprilie 2012 16:56Moderator
Hi Yves,
check out the links from Navit in the product group to see if they help
For UnAuthorizedAccessException - http://blendinsider.com/xaml/known-issue-xaml-designer-in-visual-studio-11-beta-crashes-on-launch-2012-03-07/
For Opening projects in Blend - http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/b9fd941c-2e67-4dea-b81a-e6bb62869418
Also, I would definitely like to see the procmon log you collected. Please send it to mikewong at microsoft.com.
much appreciated,
mike
-
16 aprilie 2012 16:13
I have done a middle reinitialization of Windows 8. Parametres / General / Restaurer les performances de votre PC sans affecter vos fichiers.
This correct this problem.
Yves
Yves Pflieger
- Marcat ca răspuns de Vicky SongModerator 19 aprilie 2012 07:10