IIS发布问题
在发布一个网站,在服务器上发布asp.net程序碰到了个问题,就是发布后浏览Login时报错,如下
Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> void Page_Load() { lblServerTime.Text = DateTime.Now.ToString(); } </script><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>First Page</title></head><body> <form id="form1" runat="server"> <div> Welcome to ASP.NET 3.5! The current date and time is: <asp:Label id="lblServerTime" Runat="server" /> </div> </form></body></html>
无法显示 XML 页。 无法查看使用 XSL 样式表的 XML 输入。请更正错误然后单击 刷新 按钮,或稍后重试。 --------------------------------------------名称以无效字符开头。处理资源 'file:///E:/Users/Administrator/Desktop/FirstPage.aspx' 时出错。第 1 行,位置: 2 <%@ Page Language="C#" %>-^