locked
Server Error in '/' Application. RRS feed

  • Question

  • User1979860870 posted

    Hi

    Server Error in '/' Application.
    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
    
    Parser Error Message: 'MyApp.Login' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    
    Source Error:
    
    
    Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MyApp.Login" %>
    Line 2:  
    Line 3:  <!DOCTYPE html>
    
    Source File: /Login.aspx    Line: 1
    
    ************************************************************
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MyApp.Login" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="frmLogin" runat="server">
            <div class="container">  
               <div class="row">  
                   <div class="col-lg-5 col-md-6 col-sm-8 col-xl-12 " style="margin: auto; float: initial; padding-top: 12%">  
                       <div class="row userInfo">  
      
                           <div class="panel panel-default ">  
                               <div class="panel-heading">  
                                   <h3 class="panel-title" style="text-align: center; font-weight: bold">  
                                       <a class="collapseWill">Login to your Account</a>  
                                   </h3>  
                               </div>  
                               <div id="collapse1" class="panel-collapse collapse in">  
                                   <div class="panel-body">  
                                       <fieldset>  
                                           <div class="form-group">  
                                               <div class="col-md-"></div>  
                                               <label class="col-md-12 control-label" for="prependedcheckbox">  
                                                   User ID  
                                               </label>  
                                               <div class="col-md-12">  
                                                   <div class="input-group">  
                                                       <span class="input-group-addon">  
                                                           <i class="fa fa-user"></i>  
                                                       </span>  
                                                       <asp:TextBox ID="txtUserName" CssClass="form-control" placeholder="Enter User ID" runat="server"></asp:TextBox>  
                                                   </div>  
                                                   <asp:Label ID="lblErrUserName" CssClass="help-block" runat="server" Text="" ForeColor="White"></asp:Label>  
                                               </div>  
      
                                               <label class="col-md-12 control-label" for="prependedcheckbox">  
                                                   Password  
                                               </label>  
                                               <div class="col-md-12">  
                                                   <div class="input-group">  
                                                       <span class="input-group-addon">  
                                                           <i class="fa fa-lock"></i>  
                                                       </span>  
                                                       <asp:TextBox ID="txtPassword" CssClass="form-control" placeholder="Enter Your Password" runat="server" TextMode="Password"></asp:TextBox>  
                                                   </div>  
                                                   <asp:Label ID="lblErrPassword" CssClass="help-block" runat="server" Text="" ForeColor="White"></asp:Label>  
                                               </div>  
      
                                               <div class="col-md-12">  
                                                   <div class="col-lg-6">  
                                                       <asp:CheckBox ID="chbRemember" Visible="false" runat="server" Text="Remember" />  
                                                   </div>  
                                                   <div class="col-lg-6">  
                                                       <div class="input-group" style="width: 100%">  
                                                           <asp:Button ID="btnLogin" CssClass="btn btn-success" Text="Login" OnClientClick="return FunForLoginValidation()" runat="server" Style="width: 100%" />  
                                                       </div>  
                                                   </div>  
                                               </div>  
                                           </div>  
                                       </fieldset>  
      
                                   </div>  
                               </div>  
      
                               <div class="panel-heading">  
                                   <div class="panel-title" style="text-align: right">  
                                       <a class="collapseWill" href="SellerForgetPassword.aspx" style="font-size: x-small">Forgot Username or Password?  
                                       </a>  
                                   </div>  
                               </div>  
                           </div>  
                       </div>  
                   </div>  
               </div>  
           </div>  
        </form>
    </body>
    </html>

    Thanks

    Saturday, May 22, 2021 12:05 PM

Answers

  • User475983607 posted

    You must have changed the project namespace, code behind class, or page directive.  Try creating a new page.  Otherwise, try undoing the changes.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 22, 2021 2:01 PM