“/WebApplication2”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误 
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 未能加载类型“WebApplication2.RmasUserLogin”。源错误: 
行 1:  <%@ Page language="c#" Codebehind="RmasUserLogin.aspx.cs" AutoEventWireup="false" Inherits="WebApplication2.RmasUserLogin" %>
行 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
行 3:  <html>
 源文件: d:\inetpub\wwwroot\WebApplication2\RmasUserLogin.aspx    行: 1 
请问这是哪出错了?

解决方案 »

  1.   

    你根本没有建立IIS的虚拟路径,你设一个就可以了
      

  2.   


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <html>
    <head>
    <title>樱花卫橱(华南)有限公司余料管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css"> .loginfont { FONT-SIZE: 12px; COLOR: #ffffff } </style>
    <LINK href="css/jtpsoft.css" type="text/css" rel="stylesheet">
    <script language="C#" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    //-->
    </script>
    </head>
    <body leftMargin="0" topMargin="0" onload="MM_preloadImages('images/login_bt2.gif')">
    <form name="form1" runat="server" action="" method="post">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td style="WIDTH: 211px" width="211" height="34">&nbsp;</td>
    <td width="23%">&nbsp;</td>
    <td id="TD5" width="57%" runat="server">&nbsp;</td>
    </tr>
    <tr>
    <td style="WIDTH: 211px; HEIGHT: 40px">&nbsp;</td>
    <td style="HEIGHT: 40px"><img id="Image1" height="42" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\l_01.gif"
    width="258" name="Image1"></td>
    <td style="HEIGHT: 40px">&nbsp;</td>
    </tr>
    <tr>
    <td style="WIDTH: 211px" height="57">
    <div align="left"><img id="IMG2" height="57" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\logo.gif"
    width="202" runat="server"></div>
    </td>
    <td>
    <div align="left"><img id="IMG1" height="57" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\name.gif"
    width="258" runat="server"></div>
    </td>
    <td id="TD4" runat="server">&nbsp;</td>
    </tr>
    <tr>
    <td style="WIDTH: 211px">
    <div align="left"><img height="34" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\l_01.gif"
    width="202"></div>
    </td>
    <td><img height="34" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\line_2.gif"
    width="258"></td>
    <td id="TD3" background="images/line_bg.gif" runat="server">&nbsp;</td>
    </tr>
    </table>
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td width="20%">
    <div align="left"><img id="IMG3" height="111" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\l_pic3.gif"
    width="202" runat="server"></div>
    </td>
    <td width="23%">
    <div align="left"><img id="IMG4" height="111" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\l_pic4.gif"
    width="258" runat="server"></div>
    </td>
    <td width="57%" background="images/bg.gif">
    <table cellSpacing="0" cellPadding="0" width="70%" border="0">
    <tr>
    <td width="7" height="28" style="WIDTH: 7px">&nbsp;</td>
    <td class="loginfont" id="TD1" style="WIDTH: 44px" align="center" width="66" runat="server">
    <div align="center" style="COLOR: blue">用户名</div>
    </td>
    <td colSpan="2" height="28"><input class="NormalString" id="Txt_User" style="WIDTH: 132px; HEIGHT: 21px" type="text"
    size="16" name="textfield" runat="server">
    </td>
    </tr>
    <tr>
    <td height="25" style="WIDTH: 7px">&nbsp;</td>
    <td class="loginfont" style="WIDTH: 44px">
    <div align="center" id="DIV1" style="COLOR: blue" runat="server">密 码</div>
    </td>
    <td colSpan="2" height="28"><input language="C#" class="NormalString" id="Txt_Password" style="WIDTH: 132px; HEIGHT: 21px"
    type="text" size="16" name="textfield2" runat="server">
    </td>
    </tr>
    <tr>
    <td colSpan="4" height="10"><A href="main.htm"></A></td>
    </tr>
    <tr>
    <td width="7" style="WIDTH: 7px">&nbsp;</td>
    <td style="WIDTH: 16px" width="16" bgColor="white">&nbsp;</td>
    <td id="TD2" width="65" bgColor="white" runat="server">
    <asp:Button id="Button1" runat="server" Text="登录" Width="86px" BackColor="SteelBlue" BorderColor="Magenta"
    BorderStyle="Ridge"></asp:Button></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>
    <div align="left"><img id="IMG5" height="52" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\line_2.gif"
    width="202" runat="server"></div>
    </td>
    <td>
    <div align="left"><img id="IMG6" height="52" src="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\l_pic5.gif"
    width="258" runat="server"></div>
    </td>
    <td background="file:///D:\Documents and Settings\Administrator\My Documents\My Pictures\bg2.gif">&nbsp;</td>
    </tr>
    </table>
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td bgColor="#e6e6e6" height="8"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
      

  3.   

    IIS,默认网站,新建虚拟目录
    指向程序所在