Microsoft KB Archive/827492

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

Article ID: 827492

Article Last Modified on 1/20/2006

-

APPLIES TO


 * Microsoft ASP.NET 1.0
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Academic Edition

-





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 Description of the Microsoft Windows Registry



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

Error message 1

Server Error in / 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.



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:  Click Start, click Control Panel, and then click Add or Remove Programs. In the Add or Remove Programs dialog box, click Microsoft Visual Studio .NET under Currently installed programs, and then click Change/Remove. 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. In the Add or Remove Programs dialog box, click Microsoft .NET Framework under Currently installed programs, and then click Change/Remove. 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. Click Start, double-click My Computer, and then double-click your system disk.

Note Typically this is Local Disk (C:).</li> Locate the Windows\System32 folder.</li> 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. <ol style="list-style-type: lower-alpha;"> Right-click Mscoree.dll, click Rename, type Mscoree.xxx, and then click OK.</li></ol> </li> Right-click the Urttemp folder, and then click Delete.</li> Click Start, click Run, type regedit, and then click OK.</li> Right-click each of the following subkeys, click Delete, and then click OK. <ul>  </li>  </li>  </li></ul> </li> Click Start, click Shut Down, and then click Restart in the drop-down list.</li> Click Start, click Run, type Net Stop iisadmin, and then click OK.</li> Click Start, double-click My Computer, and then double-click your system disk.</li> Right-click each of the following folders if the folder exists, and then click Delete. <ul> Windows\Assembly</li> Windows\Microsoft.NET</li> Windows\System32\Urttemp</li> <li>Program Files\Microsoft Visual Studio .NET</li></ul> </li> <li>Reinstall Visual Studio .NET.</li> <li>Reinstall the .NET Framework.

You may now open an .aspx page. You do not receive the error messages that are mentioned in the &quot;Symptoms&quot; section.</li></ol>

Keywords: kbtshoot kbprb kbvs2005swept kbvs2005doesnotapply KB827492

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.