Error in creating instance of class, declared in .vb(dll) file

G

Guest

I am using webmatrix tool for developing .aspx files. I have developed one aspx file named test.aspx and one .vb file named test.vb. In my .vb file I have one public class named test and in that class I have one function named testfun which returns string. When I compile my .vb file using command line compiler, it creates a .dll file with the same name of .vb file. I kept this .dll file in bin directory. Now in my test.aspx file I imports this test.dll and trying to create an object of class of .vb file, as followin

dim objtest as new test

Here test is a public class in test.vb file. At above line in my .aspx file I am getting following error
BC30002: Type 'test' is not defined

So anybody have any idea what to do in this

Plz guide me

Regards
Shail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top