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

Donald Symmons 2,856 Reputation points
2023-01-09T07:59:53.517+00:00

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" %>
277386-default-error.png

The error was also found in Global.asax file
277308-global-error.png
and here is my Global file
277392-global.png

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

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

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?
Thanks

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
C#
C#
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.
10,240 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
    2023-01-09T09:41:30.16+00:00

    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