|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
HELP : Compiler Error Message: BC30002: Type is not defined.
Hi,
I am developing a test web application in ASP.NET. I made a class library using VB.NET and build a dll, say myclass.dll . My Class library looks like : Imports System Imports Microsoft.VisualBasic Namespace Report Public Class RepGen Public Function Generate End Function End Class End Namespace The dll is successfully created. Now, I have a ASP.NET page as : <%@ Import Namespace="Report" %> <script language="vb" runat="server"> Dim GetRep As Object Dim RepOut As RepGen RepOut = New RepGen() GetRep = RepOut.Generate Set RepOut = Nothing Set GetRep = Nothing </script> <HTML> </HTML> I get the error when I run my aspx page: Compiler Error Message: BC30002: Type 'RepGen' is not defined. Is there a specific place I have to keep the dll or do i have to register it for the ASP.NET webpage to use the dll ? Please advice. Thanks!! |
|
#2
|
||||
|
||||
|
You do have to register the .dll for asp.net to use it.
|
|
#3
|
|||
|
|||
|
Thanks for the reply.
How do I do that? Is including the dll in the ASP.NET application's bin folder enough? |
|
#4
|
||||
|
||||
|
|
|
#5
|
|||
|
|||
|
That article aint valid for .NET .
In .Net, we dont need register a dll for use. I am still getting the same error. Whats the possible reason. Also, my VB.NET project and ASP.NET project reside on different boxes. Could that be a reason? So basically, I am working on VB.NEt project, I build it and copy the dll to the ASP.NET bin folder, which is on our web server. Thanks!! |
|
#6
|
||||
|
||||
|
I don't think the separate boxes are the problem, once the .dll is built it can move (how else would other components get on the server). I personally don't use .NET, so I'm not particularly helpful in this case.
|
|
#7
|
|||
|
|||
|
I tried a lot of things, but it still aint working..huh!!
Does anybody think I have to use the @register directive for this, OR Build the dll from the command line, using vbc..... ? Thanks !! |
|
#8
|
|||
|
|||
|
Same Problem - did you ever figure it out?
Ricky i am having the same issue as you...
did you ever figure out how to make .NET recognize the class? thanks VC |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > HELP : Compiler Error Message: BC30002: Type is not defined. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|