Jim Heavey
Oct 1st, 2003, 09:24 AM
I am trying to figure out why when I export my source code
to a web server, my web page is unable to find a particular
class.
My set up is as follows:
My web page is in a directory studentweb/myname/project4
My web page is called webpage1.aspx with the codebehind
page being webpage1.aspx.vb.
all the code is source code, not compiled code. I have
@Page directive "src="Webpage1.aspx.vb",
The class which is called from "Webpage1.aspx.vb" is called
"MyClass.vb", and this is in the same directory as
"Webpage1.aspx". Again, this is source code.
Documenation states that unless overridden, anything you place in the "bin" folder will automatically be linked, but that is not ture in my case, so either the machine config has overridden the default, or I am doing something wrong. I now have the source code in the "studentweb/myname/project4/Bin" folder as well as the studentweb/myname/project4 folder, but it is never found.
I place the <%@ Assembly src="MyClass.vb" %> in the
"webpage1.aspx". (does not appear to validate information
contained in this statement as I could enter any name for
the program is it would not complain).
MyClass.VB has an import statement "Imports MyClass" which
fails with class not found each time it is run. I have run
it without the import statement, but then it fails when the
class is instatiate -- "Dim theClass as new MyClass()".
I have tried several versions of the "Imports" statement,
such as "imports Studentweb.myName.Project4.MyClass" but
nothing works.
How in the world do I get the webpage to find MyClass?
Thanks in advance for your assitance!!!!!!!
to a web server, my web page is unable to find a particular
class.
My set up is as follows:
My web page is in a directory studentweb/myname/project4
My web page is called webpage1.aspx with the codebehind
page being webpage1.aspx.vb.
all the code is source code, not compiled code. I have
@Page directive "src="Webpage1.aspx.vb",
The class which is called from "Webpage1.aspx.vb" is called
"MyClass.vb", and this is in the same directory as
"Webpage1.aspx". Again, this is source code.
Documenation states that unless overridden, anything you place in the "bin" folder will automatically be linked, but that is not ture in my case, so either the machine config has overridden the default, or I am doing something wrong. I now have the source code in the "studentweb/myname/project4/Bin" folder as well as the studentweb/myname/project4 folder, but it is never found.
I place the <%@ Assembly src="MyClass.vb" %> in the
"webpage1.aspx". (does not appear to validate information
contained in this statement as I could enter any name for
the program is it would not complain).
MyClass.VB has an import statement "Imports MyClass" which
fails with class not found each time it is run. I have run
it without the import statement, but then it fails when the
class is instatiate -- "Dim theClass as new MyClass()".
I have tried several versions of the "Imports" statement,
such as "imports Studentweb.myName.Project4.MyClass" but
nothing works.
How in the world do I get the webpage to find MyClass?
Thanks in advance for your assitance!!!!!!!