Namespace Reference

H3llz

New Member
Hi<BR>I have a .aspx file, which has the following code for accessing the .aspx.vb file. The namespace and the Class in .vb file, i had refered does exists but error message says, <BR>Parser Error Message: Could not load type 'Sample.Home'<BR><BR><%@ Page Language="vb" AutoEventWireup="false" Codebehind="Home.aspx.vb" Inherits="Sample.Home" %><BR><BR>I could solve this problem, by recreating a new project, import all the files from this folder to the newly created Project, then it works file. But very soon, i get the same problem, if i add some more files, which i do it as part of integration from other modules.<BR>Any of you could give me a solution .... <BR>Thanx in advanceLook in your code behind file at the name of the class being created. Make sure it is named Home and is in the namespace Sample.<BR><BR>This is a VS.NET thing. Not owning a copy of VS.NET, I don't know what setting you can tweak to get this from crapping out like this, but fixing it after the fact (by ensuring your code behind page's class/namespace names match up) is simple enough...<BR><BR>hth
 
Back
Top