How to fix compatibility mode error that can appear when installing Windows Phone Developer Tools or Visual Studio 2010
2011-01-15 23:10
661 查看
I have heard from a few people who tried to install the final release of the Windows Phone Developer Tools but get an installation error like the following:
Visual Studio setup cannot run in compatibility mode.
For more information see the 'Installing' section in the Visual Studio readme at http://go.microsoft.com/fwlink/?LinkID=143397.
The link in the error message points to the Visual Studio 2010 readme because this issue can affect all editions of Visual Studio 2010, including WPDT. Item 2.1.10 in that readme provides a workaround for this issue. In my past experience, that workaround has proven to be incomplete though, so here are some updated steps that usually help solve this type of error:
Click on the start menu, choose Run, type regedit and click OK.
Browse to each of the following keys and delete any value that refers to the WPDT setup program (named vm_web.exe):
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
If the above doesn’t help, then you can also try to save vm_web.exe to your computer and run it from there. When compatibility mode is triggered by Windows, it is based on a full path to the setup executable, so if you save it to a different location than you previously tried to run it from and then run it again, that can help avoid triggering compatibility mode.
原文:http://blogs.msdn.com/b/astebner/archive/2010/09/17/10064318.aspx
Visual Studio setup cannot run in compatibility mode.
For more information see the 'Installing' section in the Visual Studio readme at http://go.microsoft.com/fwlink/?LinkID=143397.
The link in the error message points to the Visual Studio 2010 readme because this issue can affect all editions of Visual Studio 2010, including WPDT. Item 2.1.10 in that readme provides a workaround for this issue. In my past experience, that workaround has proven to be incomplete though, so here are some updated steps that usually help solve this type of error:
Click on the start menu, choose Run, type regedit and click OK.
Browse to each of the following keys and delete any value that refers to the WPDT setup program (named vm_web.exe):
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
If the above doesn’t help, then you can also try to save vm_web.exe to your computer and run it from there. When compatibility mode is triggered by Windows, it is based on a full path to the setup executable, so if you save it to a different location than you previously tried to run it from and then run it again, that can help avoid triggering compatibility mode.
原文:http://blogs.msdn.com/b/astebner/archive/2010/09/17/10064318.aspx
相关文章推荐
- FIX: Error message when you try to install a large Windows Installer package or a large Windows Installer patch package in Windows Server 2003 or in Windows XP: "Error 1718. File was rejected by digital signature policy"
- Error 1402 when installing Crystal Reports for Visual Studio 2010 runtime via the msi file
- 解决安装windows phone developer tools遇到的问题Setup cannot be run in Program Compatibility Mode
- How to solve install error ".NET Framework 2.0 is not detected." when installing VS tools SDK for GP 10.0
- How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8
- how to modify Visual Studio 2010 environment
- [转]How to Create HTML5 Website and Page Templates for Visual Studio 2010
- How to build mex file directly in Visual Studio 2010?
- If you have multiple web application run how to determin which is yours when you debug using visual studio 2008?
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- How to debug test code on Windows Mobile Emulator with Visual Studio
- Windows Phone Developer Tools October 2010 Update
- How to compile WinPcap with Visual Studio 2010?
- 必须先安装与 Silverlight Tools 4 语言版本相一致的 Visual Studio 2010、Visual Web Developer 学习版 2010 或 Visual Phone
- How to write an application that supports the Fast User Switching feature by using Visual Basic .NET or Visual Basic
- How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?
- How To Fix Windows Java Error 1723
- How to Completely Fix Windows Live Error
- How to fix the problem that the Download rate is too Slow when doing "apt-get install"
- How to develop Silverlight 4 using Visual Studio Express 2010