Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: You may receive error messages when you try to open an .aspx page in ASP.NET or in Visual Studio .NET 2002


View products that this article applies to.

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/ ) Description of the Microsoft Windows Registry

↑ Back to the top


Symptoms

When you try to open an .aspx page, you may receive all the following error messages:

Error message 1
Server Error in /folder Application.
Error message 2
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Error message 3
CS0013: Unexpected error writing metadata to file 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\testtest\1a30c5a1\13b5ce7\upifylqt.dll' -- The directory name is invalid.

↑ Back to the top


Resolution

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To resolve this problem, remove Microsoft Visual Studio .NET and the Microsoft .NET Framework from your computer and then reinstall Visual Studio .NET and the .NET Framework on your computer. To do this, follow these steps:
  1. Click Start, click Control Panel, and then click Add or Remove Programs.
  2. In the Add or Remove Programs dialog box, click Microsoft Visual Studio .NET under Currently installed programs, and then click Change/Remove.
  3. Follow the instructions that appear on the screen to remove Visual Studio .NET.

    Note If you are prompted to restart your computer, do so. When your computer has restarted, return to Add or Remove Programs.
  4. In the Add or Remove Programs dialog box, click Microsoft .NET Framework under Currently installed programs, and then click Change/Remove.
  5. Follow the instructions that appear on the screen to remove the .NET Framework.

    Note If you are prompted to restart your computer, do so. Then, go to step 6.
  6. Click Start, double-click My Computer, and then double-click your system disk.

    Note Typically this is Local Disk (C:).
  7. Locate the Windows\System32 folder.
  8. Locate the Mscoree.dll file.

    If the Mscoree.dll file exists, go to step 8a to rename the Mscoree.dll file. Otherwise, go to step 9.
    1. Right-click Mscoree.dll, click Rename, type Mscoree.xxx, and then click OK.
  9. Right-click the Urttemp folder, and then click Delete.
  10. Click Start, click Run, type regedit, and then click OK.
  11. Right-click each of the following subkeys, click Delete, and then click OK.
    • HKEY_CLASSES_ROOT\Installer\Products\AA75334BD6A349D45BE6344CD4905E84
    • HKEY_LOCAL_MACHINE\Software\Microsoft\.Net Framework
    • HKEY_LOCAL_MACHINE\Software\Microsoft\Net Framework Setup
  12. Click Start, click Shut Down, and then click Restart in the drop-down list.
  13. Click Start, click Run, type Net Stop iisadmin, and then click OK.
  14. Click Start, double-click My Computer, and then double-click your system disk.
  15. Right-click each of the following folders if the folder exists, and then click Delete.
    • Windows\Assembly
    • Windows\Microsoft.NET
    • Windows\System32\Urttemp
    • Program Files\Microsoft Visual Studio .NET
  16. Reinstall Visual Studio .NET.
  17. Reinstall the .NET Framework.

    You may now open an .aspx page. You do not receive the error messages that are mentioned in the "Symptoms" section.

↑ Back to the top


Keywords: KB827492, kbprb, kbtshoot, kbvs2005swept, kbvs2005doesnotapply

↑ Back to the top

Article Info
Article ID : 827492
Revision : 5
Created on : 1/20/2006
Published on : 1/20/2006
Exists online : False
Views : 375