We are hoping that you are enjoying some of the new capabilities of the XAML Designer in Visual Studio 11 Beta. This post captures some of the known issues (and potential workarounds for them, if any). We will keep this updated with feedback that we get from you, so please keep it coming!
Issue:
There is a potential issue where the XAML Designer in Visual Studio 11 Beta will crash as soon as you try to open a XAML document. The conditions where you are likely to run into this crash are:
- You installed Visual Studio into a non-default location (for example, Windows was installed to C:\Windows, and you install Visual Studio to D:\MyFolder\)
- You upgraded your system to Windows 8 Consumer Preview from an existing Windows 7 installation.
- You are working on a Metro style application (in any language – C#, VB, C++) and you are trying to open a XAML file.
If you suspect that your crash might not be related to the conditions described above, do not apply the workaround being offered for this issue. Instead, please get in touch with us and we will work with you to resolve your issue as soon as possible. You can reach us at BlendFeedback@Microsoft.com.
Cause
This crash happens because the dependencies for the XAML Designer are in folders that do not have their permissions set correctly (because of an error in Visual Studio setup).
Workaround
To work around this issue, please use the following steps (updated 3/28/2012):
- Shut down all running instances of Visual Studio.
- Launch a command prompt as an Administrator.
- Type the following in sequence:
-
pushd %VS110COMNTOOLS% icacls ..\IDE /grant *S-1-15-2-1:(OI)(F)icacls ..\IDE /grant *S-1-15-2-1:(CI)(F)icacls ..\IDE\PrivateAssemblies /grant *S-1-15-2-1:(OI)(F)icacls ..\IDE\PrivateAssemblies /grant *S-1-15-2-1:(CI)(F)icacls ..\IDE\PublicAssemblies /grant *S-1-15-2-1:(OI)(F)icacls ..\IDE\PublicAssemblies /grant *S-1-15-2-1:(CI)(F)- Restart Visual Studio and try your scenario again.
Pingback: WindowsDevNews.com