Common file and registry virtualization issues in Windows Vista
| Article ID | : | 927387 |
| Last Review | : | March 15, 2007 |
| Revision | : | 2.6 |
On This Page
SYMPTOMS
Scenario 1: You receive error messages when you install, upgrade, or use an application
When you install, upgrade, or use an application, you may receive various error messages that indicate that access was denied. For example, you may experience one of the following symptoms:
| • | After you install an application in a folder other than the %programfiles% folder, you receive access denied error messages. Additionally, the application does not function as expected. | ||||||||
| • | You receive application error messages that resemble the following:
Cannot create folder under C: MyApp Temp
Cannot create file under C: MyApp Temp output.dat
|
||||||||
| • | You receive error messages that resemble the following:
Error Writing to MyFile.exe
This issue may occur when you perform any of the following actions:
|
||||||||
| • | Parts of the application that require file input or output no longer work correctly. |
Scenario 2: You cannot find the file or the folder that you just created
When you use an application for which virtualization is enabled, you create data files in virtualizable locations of the file system. When you use another application or Windows Explorer to access these newly created files, you cannot find them. For example, if you save a file in a photo editing application in the %programfiles%, %systemroot%, or %programdata% folders, you cannot locate this file.
Scenario 3: You upgrade an application and then experience unexpected program behavior
After you upgrade an application, you receive an error message that resembles the following:
Additionally, the application does not work as expected. The application appears to be using incorrect or pre-upgrade data.
Scenario 4: After you uninstall an application, the application’s files are still present on the computer
In this scenario, you experience one of the following symptoms:
| • | In another application, you notice that file and folder information for the uninstalled application still exists in the %programfiles%, %programdata%, or %systemroot% folders. |
| • | The %userprofile% AppData Local VirtualStore folder is larger than you expect. When you uninstalled the application, the virtualized files that were created during the application’s runtime were not removed. |
CAUSE
| • | The application tries to create files or folders outside certain specified virtualized folders. |
| • | Files that are saved by an application in the %programfiles% folder may be directed to a folder other than the user’s virtual store folder. |
| • | The application uses a file that is not supported for virtualization. |
.
RESOLUTION
Scenario 1
To determine whether you have the issue that is described in Scenario 1, look in Event Viewer for FileCreateVirtualExclude events. To do this, follow these steps:
| 1. | Click Start , type eventvwr in the Start Search box, and then click eventvwr.exe in the Programs list.
|
| 2. | Expand Applications and Services Logs, expand Microsoft, expand Windows, expand UacFileVirtualization, and then select Operational. If the event ID is 5000, a FileCreateVirtualExclude event has occurred. |
To resolve this issue, use one of the following methods:
| • | Reinstall the application in the %programfiles% folder if the program is not already installed in the %programfiles% folder. | ||||||||||||||||||||||
| • | Use an account that has administrative credentials to run this application. To do this, locate and then right-click the application shortcut, and then click Run as administrator.
|
||||||||||||||||||||||
| • | Run the application at an elevated command prompt. To do this, follow these steps:
|
||||||||||||||||||||||
| • | Change the security settings on the application’s folder. To do this, follow these steps:
|
Scenario 2
To resolve this issue, use one of the following methods:
| • | Click the Compatibility Files button that appears on the Explorer bar to view virtualized files in the folder. The Compatibility Files button appears only if there are virtualized files in the folder. |
| • | Look in the C: Users User_name AppData Local VirtualStore folder to locate files and folders. |
| • | Save your application’s data in a folder under your user profile. |
Scenario 3
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
To resolve this issue, use one of the following methods:
| • | Run the application at an elevated command prompt. To do this, follow these steps:
|
||||||
| • | Open the virtual store, and then delete the old application data files. To do this, use Windows Explorer to open the C: Users User_name AppData Local VirtualStore Program Files MyApp folder, and then delete any files that are not your documents or data files. | ||||||
| • | Delete the virtual store from the registry.
To locate the virtual store in the registry and to remove any unnecessary keys, follow these steps:
|
Scenario 4
To resolve this issue, use Windows Explorer to open the C: Users User_name AppData Local VirtualStore MyApp folder, and then delete any obsolete application data.
MORE INFORMATION
For more information, visit the following Microsoft Web site:
APPLIES TO
| • | Windows Vista Business |
| • | Windows Vista Enterprise |
| • | Windows Vista Home Premium |
| • | Windows Vista Home Basic |
| • | Windows Vista Ultimate |
| • | Windows Vista Business 64-bit Edition |
| • | Windows Vista Enterprise 64-bit Edition |
| • | Windows Vista Home Premium 64-bit Edition |
| • | Windows Vista Home Basic 64-bit Edition |
| • | Windows Vista Ultimate 64-bit Edition |
Keywords:Â |
kbfilesystems kbregistry kbexpertiseinter kbtshoot kbprb KB927387 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Back to the top
, type
If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
Leave a Reply