G
Guest
I have an aspx page that does not have a separate source for the VB - it is
on top in between the <script> tags. I use the following statement
Dim oComLib as New ComLib
To reference a class called ComLib in a source member called ComLib.vb that
is found in the /Code folder of my project. It all works fine in the VWD2005
environment as when I run the aspx page, it processes the above statment and
"sees" the class reference in the code.
When I upload the /Code folder (and its contents) to a remote web server
running the 1.1 environment and then upload the .aspx page (which isn't in
the /Code folder) when the page comes across the above statement, I get the
error below. My questions are:
1) How do I get the .aspx page to "see" the ComLib class source file that is
in the /Code folder (which is where VWD2005 dictates it should be put if you
want it to be "generally consumable")
2) I don't want to /bin dll any of this, I want it all to interpret and
compile on the fly
3) Do I need to register the /Code/ComLib.vb on the 1.1 server in some way?
4) If I need to do a /bin dll using VWD2005, how do I do it as when I do a
build, nothing is put into a /bin folder
5) When I ran another .aspx page built in VWD2005 and uploaded to the same
remote web server that didn't reference anything like the /Code/ComLib.vb, it
ran fine without creating a dll and just having all the vb/html source within
one .aspx
Finally, the source member for class /Code/ComLib.vb has as it's first
statement
Public Class ComLib
so that should make it be referenced anywhere.
If someone could help that would be great - I searched and could not find
anything on this subject.
---------------------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'ComLib' is not defined.
Source Error:
Line 2: <script runat="server">
Line 3:
Line 4: Dim oComlib As New ComLib
Line 5:
Line 6: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
---------------------------------------------------------------------------------------------
on top in between the <script> tags. I use the following statement
Dim oComLib as New ComLib
To reference a class called ComLib in a source member called ComLib.vb that
is found in the /Code folder of my project. It all works fine in the VWD2005
environment as when I run the aspx page, it processes the above statment and
"sees" the class reference in the code.
When I upload the /Code folder (and its contents) to a remote web server
running the 1.1 environment and then upload the .aspx page (which isn't in
the /Code folder) when the page comes across the above statement, I get the
error below. My questions are:
1) How do I get the .aspx page to "see" the ComLib class source file that is
in the /Code folder (which is where VWD2005 dictates it should be put if you
want it to be "generally consumable")
2) I don't want to /bin dll any of this, I want it all to interpret and
compile on the fly
3) Do I need to register the /Code/ComLib.vb on the 1.1 server in some way?
4) If I need to do a /bin dll using VWD2005, how do I do it as when I do a
build, nothing is put into a /bin folder
5) When I ran another .aspx page built in VWD2005 and uploaded to the same
remote web server that didn't reference anything like the /Code/ComLib.vb, it
ran fine without creating a dll and just having all the vb/html source within
one .aspx
Finally, the source member for class /Code/ComLib.vb has as it's first
statement
Public Class ComLib
so that should make it be referenced anywhere.
If someone could help that would be great - I searched and could not find
anything on this subject.
---------------------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'ComLib' is not defined.
Source Error:
Line 2: <script runat="server">
Line 3:
Line 4: Dim oComlib As New ComLib
Line 5:
Line 6: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
---------------------------------------------------------------------------------------------