Parser Error: Could not load type 'TP.RDLCReports' after converting WSP to WAP

Deep Vegada 0 Reputation points
2025-05-21T06:49:59.6033333+00:00

Hello everyone,

I recently converted an ASP.NET Web Site Project (WSP) to a Web Application Project (WAP) using Visual Studio. Most pages are working correctly after the conversion, but I’m having an issue with one specific page: RDLCReports.aspx, which hosts some RDLC report functionality.

When I try to run the page, I get the following error:

Parser Error Message: Could not load type 'TP.RDLCReports'.

This is the top of the .aspx file:

<%@ Page Language="VB" AutoEventWireup="false" Inherits="TP.RDLCReports" Codebehind="RDLCReports.aspx.vb" %>

What I’ve Tried:

Made sure that RDLCReports.aspx.vb is present and contains a class named TP.RDLCReports.

Confirmed that the file's Build Action is set to Compile (not Content).

Right-clicked the .aspx file and selected Convert to Web Application to regenerate the .designer.vb file.

Cleaned and rebuilt the entire solution.

Verified that the Inherits directive matches the class name and namespace in the code-behind.

Developer technologies .NET .NET Runtime
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.