Tuesday, September 29, 2009

iis showCannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later

I am a new .Net developer.

i was given an existing DB, and modified it for my department.

I intalled Visual Studio on my PC, and I think I have IIS going correctly (I can create a virtual server). But when I go to launch my homepage I get:


The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.




A name was started with an invalid character. Error processing resource 'http://localhost/Publishtest/Home.aspx'. Line 1, ...

<%@ Reference Page="~/Search.aspx" %>

-^

I see this error all over these forums but i haven't been able to figure it out yet. Is there a bad path somewhere? Any help is appreciated, I'm so new.

Thanks!



try to run


%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i


or see


How to repair IIS mapping after you remove and reinstall IIS
http://support.microsoft.com/default.aspx?kbid=306005&product=aspnet

The solution is here

MORE INFORMATION

To fix IIS mappings for
ASP.NET, run the Aspnet_regiis.exe utility:
  1. Click Start, and then click
    Run.
  2. In the Open text box, type cmd, and then press ENTER.
  3. At the command prompt, type
    the following, and then press ENTER:
    "%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i
    In this path, version represents the version number of the .NET Framework that you
    installed on your server. You must replace this placeholder with the actual
    version number when you type the command.

No comments:

Counter