Namespace Reference

Results 1 to 2 of 2

Thread: Namespace Reference

  1. #1
    Join Date
    Dec 1969

    Default Namespace Reference

    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 &#039;Sample.Home&#039;<BR><BR>&#060;%@ Page Language="vb" AutoEventWireup="false" Codebehind="Home.aspx.vb" Inherits="Sample.Home" %&#062;<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 advance

  2. #2
    Join Date
    Dec 1969

    Default RE:Namespace Reference

    Look 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&#039;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&#039;s class/namespace names match up) is simple enough...<BR><BR>hth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts