ASP.NET 3.5 BasicsIf you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I am having this following error when I try to build and publish the web application:
Error 120 Could not load type 'HIV.EnrollmentPage1'. C:\inetpub\wwwroot\hiv\EnrollmentPage1.aspx 1
Make sure that the class name defined in the .aspx part of the pages matches with the one defined in the Code Behind. You need to take both the class name and the namespace into account. E.g. the following class in Code Behind:
namepace Test
{
class SomeClass : Page {}
}
should end up as Test.SomeClass in the page directive...