473,804 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.dll file not recognized in bin folder.

I'm new to asp.net so bare with me. I'm reading through the asp.net
unleashed book and am to the section on creating classes. After creating a
..vb file which I can successfully compile and placing the .dll file in the
bin directory I get the following error message: BC30002: Type 'Quote' is not
defined. Adder is in the new namespace I created in the .dll file. I know
that the coding is error free. I've check it over numerous times and even
tried all the relavent examples in the book and get the same type error
message.

One other .dll problem I have had so far is reconizing the .dll file
associated with Adp.net for Oracle but I solved this problem by copying the
..dll file directly to the bin folder.

Any help would be greatly apprcieated!

The code is as follows:

Imports System

Namespace myComponents

Public Class Quote

Dim myRand As New Random

Public Function ShowQuote() As String
Select myRand.Next( 3 )
Case 0
Return "Look before you leap"
Case 1
Return "Necessity is the mother of invention"
Case 2
Return "Life is full of risks"
End Select
End Function

End Class

End Namespace

<%@ Import Namespace="myCo mponents" %>

<Script Runat="Server">

Sub Page_Load
Dim myQuote As New Quote

lblOutput.Text = myQuote.ShowQuo te()
End Sub

</Script>

<html>
<head><title>Sh owQuote.aspx</title></head>
<body>

And the quote is...
<br>
<asp:Label
id="lblOutput"
Runat="Server" />

</body>
</html>

Nov 19 '05 #1
5 2666
Either compile the ASP.NET application files or register the DLL in your
web.config file. Adding the namespace helps reduce the amount of typing by
adding a pointer to the namespace. It does not register the DLL with your
app. This changes a bit under 2.0, but for 1.x, you have to tell it where the
DLL resides if you "precompile " external assemblies and place them in the
/bin folder.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************

"jasonburrw c84" wrote:
I'm new to asp.net so bare with me. I'm reading through the asp.net
unleashed book and am to the section on creating classes. After creating a
.vb file which I can successfully compile and placing the .dll file in the
bin directory I get the following error message: BC30002: Type 'Quote' is not
defined. Adder is in the new namespace I created in the .dll file. I know
that the coding is error free. I've check it over numerous times and even
tried all the relavent examples in the book and get the same type error
message.

One other .dll problem I have had so far is reconizing the .dll file
associated with Adp.net for Oracle but I solved this problem by copying the
.dll file directly to the bin folder.

Any help would be greatly apprcieated!

The code is as follows:

Imports System

Namespace myComponents

Public Class Quote

Dim myRand As New Random

Public Function ShowQuote() As String
Select myRand.Next( 3 )
Case 0
Return "Look before you leap"
Case 1
Return "Necessity is the mother of invention"
Case 2
Return "Life is full of risks"
End Select
End Function

End Class

End Namespace

<%@ Import Namespace="myCo mponents" %>

<Script Runat="Server">

Sub Page_Load
Dim myQuote As New Quote

lblOutput.Text = myQuote.ShowQuo te()
End Sub

</Script>

<html>
<head><title>Sh owQuote.aspx</title></head>
<body>

And the quote is...
<br>
<asp:Label
id="lblOutput"
Runat="Server" />

</body>
</html>


Nov 19 '05 #2
Cowboy,

Thanks for the help. The folder that I have the files located in doesn't
have a web.config file and I did not build the file in Visual Studio so I'm
not sure how to reconfigure. I do have some other folders that contain
web.config files. What do I type to add the .dll to a web.config file? And
should I create a web.config file in the folder that the .aspx file is
located? Thanks again for you help!

"Cowboy (Gregory A. Beamer) - MVP" wrote:
Either compile the ASP.NET application files or register the DLL in your
web.config file. Adding the namespace helps reduce the amount of typing by
adding a pointer to the namespace. It does not register the DLL with your
app. This changes a bit under 2.0, but for 1.x, you have to tell it where the
DLL resides if you "precompile " external assemblies and place them in the
/bin folder.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************

"jasonburrw c84" wrote:
I'm new to asp.net so bare with me. I'm reading through the asp.net
unleashed book and am to the section on creating classes. After creating a
.vb file which I can successfully compile and placing the .dll file in the
bin directory I get the following error message: BC30002: Type 'Quote' is not
defined. Adder is in the new namespace I created in the .dll file. I know
that the coding is error free. I've check it over numerous times and even
tried all the relavent examples in the book and get the same type error
message.

One other .dll problem I have had so far is reconizing the .dll file
associated with Adp.net for Oracle but I solved this problem by copying the
.dll file directly to the bin folder.

Any help would be greatly apprcieated!

The code is as follows:

Imports System

Namespace myComponents

Public Class Quote

Dim myRand As New Random

Public Function ShowQuote() As String
Select myRand.Next( 3 )
Case 0
Return "Look before you leap"
Case 1
Return "Necessity is the mother of invention"
Case 2
Return "Life is full of risks"
End Select
End Function

End Class

End Namespace

<%@ Import Namespace="myCo mponents" %>

<Script Runat="Server">

Sub Page_Load
Dim myQuote As New Quote

lblOutput.Text = myQuote.ShowQuo te()
End Sub

</Script>

<html>
<head><title>Sh owQuote.aspx</title></head>
<body>

And the quote is...
<br>
<asp:Label
id="lblOutput"
Runat="Server" />

</body>
</html>


Nov 19 '05 #3
jasonburrwc84,
What are u using to build ur applications..?
Beco is ur not using VS.NET u can import the .DLL by adding the
Namespace on the top of the page..
Then copy the .DLL to the bin folder of the WWWROOT..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4
Thanks,

I had the .dll file in a bin folder located in a sub directory under the
wwwroot folder. When I created a Bin folder under the wwwroot and added the
..dll to it it worked.

Thanks,

Jason

"Patrick Olurotimi Ige" wrote:
jasonburrwc84,
What are u using to build ur applications..?
Beco is ur not using VS.NET u can import the .DLL by adding the
Namespace on the top of the page..
Then copy the .DLL to the bin folder of the WWWROOT..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #5
That happened because the subdirectory
under the wwroot folder was not marked as
an application in the IIS Manager.

If that subdirectory had beem marked as an application,
or as a virtual directory, the bin directory under
that subdirectory would have worked.


Juan T. Llibre
===========
"jasonburrw c84" <ja***********@ discussions.mic rosoft.com> wrote in message
news:59******** *************** ***********@mic rosoft.com...
Thanks,

I had the .dll file in a bin folder located in a sub directory under the
wwwroot folder. When I created a Bin folder under the wwwroot and added
the
.dll to it it worked.

Thanks,

Jason

"Patrick Olurotimi Ige" wrote:
jasonburrwc84,
What are u using to build ur applications..?
Beco is ur not using VS.NET u can import the .DLL by adding the
Namespace on the top of the page..
Then copy the .DLL to the bin folder of the WWWROOT..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3402
by: Rocket Hawk | last post by:
Hello All, I am using windows 2000 server IIS 5.0 i was trying to run bat file from asp page and getting: Access Denied but when i run the bat file from the command prompt on the local server, it's running good the bat file copying files from target computer in the LAN to the local computer, o.k
3
4579
by: Dave Y | last post by:
Hello, I am new to ASP as well as IIS. I am trying to learn how to create a web application using asp.NET. I have followed the instructions for configuring the IIS settings but when I click on the .sln file to open the project in VS I get the following error: "Unable to open the Web Project 'projectname', the file path C:\InetPub\wwwroot\projectname does not correspond to the URL 'http://localhost/projectname. The two need to map to the...
5
2328
by: Arnab Nandi | last post by:
We are using the Sun Workshop 6 C++ compiler to compile some CPP files. The command line looks like follows: - CC -g -xsb -c -o output/x.o x.cpp We get the following error: - CC: language sb not recognized CC: x.cpp: linker input file unused because linking not done
4
12727
by: news | last post by:
Our production database in an exported textfil runs about 60 MB. Compressed that's about 9 MB. I'm trying to import the export into another machine running FC3 and mySQL 11.18, and it appears as though the file may be too big! When I try to do it via command line: mysql -u root --host=localhost printing < ./printing.txt It eventually errors out with a "syntax error on line X" and only about
6
1753
by: JD | last post by:
Hi all, Can anyone tell me is there a way to get a list of file types either supported on the server or clients computer and bind it to a drop down list in C# Thanks Jonathan Dixon
1
1610
by: CodeMonkey | last post by:
Hi all, I have an ASP .NET 2.0 project with the following path on my dev machine: D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects \abcWebSite2007\abcWebSite2007\Somefile.aspx I have a Downloads foler in the above parent folder like this: D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects
5
1648
by: Eddie Sand | last post by:
I'm attempting to get a commercial adaptation of a rail traffic-control simulation model to interact with a home-brewed program duplicating the dispatcher's thinking, previously written (without any I/O interface) in BASIC a few years ago, now being redeveloped in C++. I've been learning C++ for a couple of months; have no problem with commonly-used programming functions, what little I've scraped off the 'Net makes a reference to "high-level...
4
1387
by: Tony B | last post by:
My hosting company has a default 2M limit on file uploads. I tried to override this using .htaccess containing line php_value upload_max_filesize 8388608 But placing this in the upload script folder causes apache errors when serving scripts in that folder. The error states something like "php_value not recognized as valid" In the end I created a php.ini file containing line upload_max_filesize = 8M which I placed in the folder containing...
0
1086
by: tshad | last post by:
I have the following class in my VS 2008 Web Site project that has a namespace of MyFunctions. ********************************* Imports System Imports System.Text.RegularExpressions Namespace MyFunctions
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.