Parser Error: Could not load type 'TP.RDLCReports' after converting WSP to WAP
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.