title: How to publish ASP.NET 3.5 on IIS 5.1?
body: <p>I am using visual studio 2008 fo rasp .net 3.5 web development. I published the website and added virtual directory in IIS 5.1 built in windows xp.</p>
  
  <p>When i run the page, the following error is displayed.</p>
  
  <pre><code>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/cdt/Dashboard.aspx'. Line 1, Pos...
  
  &lt;%@ page language="C#" MasterPageFile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_zy4yhpyn" ...
  </code></pre>
  
  <p>Do i have to install anything else?</p>
  
  <p>why is this happening?</p>
  
  <p>What is the solution?</p>
  
  <p>UPDATE: Chose .net 2.0 version. (there is no option such as 3.5 in IIS 5.1)(Should i install a higher version?)</p>
  
  <p>Ran it again and now get this error:
  <code>
  Failed to access IIS metabase. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p>Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. </p>
  
  <p></code></p>
  
  <p>EDIT:
  ok. I found the error.</p>
  
  <p>Solved it by reinstalling ASP at http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html</p>
  
  <p>great!</p>