3
Answers

MVC Application running Error

Bineesh  VP

Bineesh VP

11y
882
1

make Sir, I am working with an MVC Application.

When I run the application, I am getting an error:-

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1     

Here the asp code I did:-

<body>
<form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label>
        <asp:TextBox ID="txtName" style="margin-left:15px" runat="server"></asp:TextBox>
        <br />
        <br />
      
        <asp:Label ID="Label2" runat="server" Text="Age"></asp:Label>
        <asp:TextBox ID="txtAge" style="margin-left:25px" runat="server"></asp:TextBox>
        <asp:GridView ID="GridView1" runat="server">
        </asp:GridView>

    </div>
    </form>
</body>    

But when I add default1    to the query string section, the program is running perfectly.

Why is this error?

Please give a solution for this.
Answers (3)