ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 23rd, 2003, 01:13 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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!!

Reply With Quote
  #2  
Old July 23rd, 2003, 02:06 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
You do have to register the .dll for asp.net to use it.

Reply With Quote
  #3  
Old July 23rd, 2003, 02:07 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
Thanks for the reply.
How do I do that?
Is including the dll in the ASP.NET application's bin folder enough?

Reply With Quote
  #4  
Old July 23rd, 2003, 02:19 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76

Reply With Quote
  #5  
Old July 23rd, 2003, 04:35 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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!!

Reply With Quote
  #6  
Old July 23rd, 2003, 08:27 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
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.

Reply With Quote
  #7  
Old July 23rd, 2003, 11:08 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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 !!

Reply With Quote
  #8  
Old August 28th, 2003, 09:59 PM
coding.NET2003 coding.NET2003 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: NJ
Posts: 1 coding.NET2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to coding.NET2003 Send a message via Yahoo to coding.NET2003
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > HELP : Compiler Error Message: BC30002: Type is not defined.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway