Error with migrating from website to web application: Could not load type ‘quirver_Application.Default’

Donald Symmons 941 Reputation points

I will try an debug this issue I am facing but I thought I should ask first if there be any help
It seems like there is a difference between web application and a website. A few hours I decided to try out something; created a new web application and created new web forms, then I copied the codes (html and C#) from my website to the web form in the web application but I get tons of errors. One of them is
Server Error in ‘/’ Application.
Parser Error
Parser Error Message: Could not load type ‘quirver_Application.Default’.
The error came from Line 1:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="quirver_Application.Default" %>

The error was also found in Global.asax file
and here is my Global file

I then searched online and found some solutions, so I changed the CodeBehind to CodeFile, then I started getting another error as shown below.

I also get an error in a payment response in a transaction verification Private void event.

The error says:
The type or namespace name ‘Payment Response’ could not be found (are you missing a using directive or an assembly reference)
But in website there is no error in the stated line

This is really confusing to me. Because when I created a new website project with new webforms, I did not get these errors.
In web application webform, there are 3 files (.aspx, .aspx.cs and .aspx.designer.cs) but in website there are 2 just files (.aspx and .aspx.cs). So, I don’t really know whet the designer is for?
There is a whole lot of things I’m supposed to learn on this web application, I guess.
Please what is the solution to all this?

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
413 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,036 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 9,356 Reputation points Microsoft Employee

    Hi @Donald Symmons , You have a lot of error messages, and many problems may arise after solving the current problem. You can check the documentation: Converting a Web Site Project to a Web Application Project. Or you can provide code for us to debug for you.

    > The type or namespace name ‘Payment Response’ could not be found (are you missing a using directive or an assembly reference)

    Have you defined Payment Response in your project? Best regards, Lan Huang

0 additional answers

Sort by: Most helpful