ASP.net server error in '/' Application Inherits

Dr.Prog

When I add a webform to my page, I keep getting the error below: 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: Could not load type 'WebApplication9.WebForm11'.

If I remove the Inherits portion it will run. It will also run if I add the inherits portion on one particular reference: Inherits="WebApplication9.GaugePro"

But if I do Inherits on anything else it will error out. Any idea what I did wrong. This just started happening....

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm11.aspx.cs" Inherits="WebApplication9.WebForm11" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>
AT-2017

Just try changing the CodeBehind to CodeFile as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebForm11.aspx.cs" Inherits="WebApplication9.WebForm11" %>

It may occurs in another case also, when you create web application project, then the directive should be:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm11.aspx.cs" Inherits="WebApplication9.WebForm11" %>

For the website project, the first one should work fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ASP.NET : Error - Server Error in '/' Application

From Dev

Configuration error in ASP.NET application when deploying to new server

From Dev

ASP.NET Server Error in '/' Application in Visual Studio 2012

From Dev

ASP.NET Random error: Server Error in '/' Application. Object reference not set to an instance of an object

From Dev

Migrated ASP.NET application to new server

From Dev

ASP.NET MVC application gives Internal Server Error only when viewed in Firefox

From Dev

Server error in '/' application ASP.NET when enter directly into URL browser

From Dev

Learning ASP.Net MVC and building a user manager Server Error in '/' Application

From Dev

Trying to insert data into SQL Server database using asp.net web application, getting an error

From Dev

ASP.net Server Error/Parser Error

From Dev

timeout error in ASP.Net application

From Dev

SMTP server Error in ASP.NET project

From Dev

Migrate a ASP.Net application from one server to another server

From Dev

ASP.NET 5 (RC1) Bad Gateway: The specified CGI application encountered an error and the server terminated the process

From Dev

Internal Server Error (500) when creating a document in DocumentDB from data passed on from Console Application to ASP.NET WebAPI

From Dev

Debugging an ASP.NET application on Local IIS Server

From Java

Remove "Server" header from ASP.NET Core 2.1 application

From Dev

How to deploy asp.net application to docker container on Linux server?

From Dev

Deploying a ASP.NET MVC 5 Application in Windows Server 2012

From Dev

Run ASP.NET5 web application with Kestrel server on Windows

From Dev

Is it support Application cache in multiple server in asp.net(C#)?

From Dev

Using SignalR as a standalone server application, and not an Asp.Net one

From Dev

Android application using asp.net in server side

From Dev

ASP.NET MVC 2.0 application not working on server

From Dev

Deploy an ASP.net application in windows server 2008

From Dev

Tracing for an ASP.NET application does not work in production server

From Dev

ASP application causing Error 500 and causing server to stop frequently

From Dev

ASP application causing Error 500 and causing server to stop frequently

From Dev

MySQLRoleProvider error on Asp.NET MVC Application but using SQLServer only

Related Related

  1. 1

    ASP.NET : Error - Server Error in '/' Application

  2. 2

    Configuration error in ASP.NET application when deploying to new server

  3. 3

    ASP.NET Server Error in '/' Application in Visual Studio 2012

  4. 4

    ASP.NET Random error: Server Error in '/' Application. Object reference not set to an instance of an object

  5. 5

    Migrated ASP.NET application to new server

  6. 6

    ASP.NET MVC application gives Internal Server Error only when viewed in Firefox

  7. 7

    Server error in '/' application ASP.NET when enter directly into URL browser

  8. 8

    Learning ASP.Net MVC and building a user manager Server Error in '/' Application

  9. 9

    Trying to insert data into SQL Server database using asp.net web application, getting an error

  10. 10

    ASP.net Server Error/Parser Error

  11. 11

    timeout error in ASP.Net application

  12. 12

    SMTP server Error in ASP.NET project

  13. 13

    Migrate a ASP.Net application from one server to another server

  14. 14

    ASP.NET 5 (RC1) Bad Gateway: The specified CGI application encountered an error and the server terminated the process

  15. 15

    Internal Server Error (500) when creating a document in DocumentDB from data passed on from Console Application to ASP.NET WebAPI

  16. 16

    Debugging an ASP.NET application on Local IIS Server

  17. 17

    Remove "Server" header from ASP.NET Core 2.1 application

  18. 18

    How to deploy asp.net application to docker container on Linux server?

  19. 19

    Deploying a ASP.NET MVC 5 Application in Windows Server 2012

  20. 20

    Run ASP.NET5 web application with Kestrel server on Windows

  21. 21

    Is it support Application cache in multiple server in asp.net(C#)?

  22. 22

    Using SignalR as a standalone server application, and not an Asp.Net one

  23. 23

    Android application using asp.net in server side

  24. 24

    ASP.NET MVC 2.0 application not working on server

  25. 25

    Deploy an ASP.net application in windows server 2008

  26. 26

    Tracing for an ASP.NET application does not work in production server

  27. 27

    ASP application causing Error 500 and causing server to stop frequently

  28. 28

    ASP application causing Error 500 and causing server to stop frequently

  29. 29

    MySQLRoleProvider error on Asp.NET MVC Application but using SQLServer only

HotTag

Archive