473,748 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get visual studio to reconize a compiled component

thanks much!!!i'm working through an example that creates a component called
component.dll. This compiled ok w/o problem. I copied it to the bin directory
of my project (vs.net asp.net vb project) when i attempt to reference it in
my source it is not found. and when i compile it same thing. how do i get my
program to reconize this class.
using code behind.
here is my source:

Imports component <--- is not found how do i add it?
Imports System.Data
Imports System.Data.Sql Client
Public Class WebForm1
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents dgrdDatagrid1 As System.Web.UI.W ebControls.Data Grid

'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
Dim simplecomponent As New Simple
Dim dataset As New DataSet
dataset = simplecomponent .loadDataSet()
dgrdDatagrid1.D ataSource = dataset
dgrdDatagrid1.D ataBind()

End Sub

Private Sub dgrdDatagrid1_S electedIndexCha nged(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
dgrdDatagrid1.S electedIndexCha nged

End Sub
End Class

Nov 19 '05 #1
2 1309
i think i figured it out, but don't know for sure. I added a reference in
project/reference. Do ireally need to do this ? i thought it wouold pickup
automaticly.
if this is necessary here how about on the production server? do i need to
add a reference there also?
thanks
kes

"Kurt Schroeder" wrote:
thanks much!!!i'm working through an example that creates a component called
component.dll. This compiled ok w/o problem. I copied it to the bin directory
of my project (vs.net asp.net vb project) when i attempt to reference it in
my source it is not found. and when i compile it same thing. how do i get my
program to reconize this class.
using code behind.
here is my source:

Imports component <--- is not found how do i add it?
Imports System.Data
Imports System.Data.Sql Client
Public Class WebForm1
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents dgrdDatagrid1 As System.Web.UI.W ebControls.Data Grid

'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
Dim simplecomponent As New Simple
Dim dataset As New DataSet
dataset = simplecomponent .loadDataSet()
dgrdDatagrid1.D ataSource = dataset
dgrdDatagrid1.D ataBind()

End Sub

Private Sub dgrdDatagrid1_S electedIndexCha nged(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
dgrdDatagrid1.S electedIndexCha nged

End Sub
End Class

Nov 19 '05 #2
It must be added to the reference, either explicitly in the ASP.NET page or
in the Web.config file or in the list of references for that project.

The most easy way to do this, in your case, is first to add the
component.dll project to the same solution as your asp.net vb project.
Then, from the References node for the asp.net vb project, you choose from
the contextual menu (right click of the mouse) Add Reference --> Projects
(third tab) --> Double click on your component.dll project --> choose
component.dll at the bottom of the window.

The component.dll library will be added to the list of references for your
vb.project, with the property Copy Local set to True and will also be marked
as a dependency to be compiled first in the list of dependencies for asp.net
vb project (menu Project --> Project Dependencies --> ...).

The "Imports component" will not be necessary; it is simply a shortcut for
importing the namespace "component" ; otherwise you have the obligation of
writing the namespace before your objects:

Dim simplecomponent As New component.Simpl e

instead of:
Dim simplecomponent As New Simple

but by itself, it doesn't add any reference to an external library or
module.

From there, all the rest will be done automatically by VS.NET; including
rebuilding/ relinking/ copying the component.dll library when necessary.

S. L.

"Kurt Schroeder" <Ku***********@ discussions.mic rosoft.com> wrote in message
news:2F******** *************** ***********@mic rosoft.com...
thanks much!!!i'm working through an example that creates a component
called
component.dll. This compiled ok w/o problem. I copied it to the bin
directory
of my project (vs.net asp.net vb project) when i attempt to reference it
in
my source it is not found. and when i compile it same thing. how do i get
my
program to reconize this class.
using code behind.
here is my source:

Imports component <--- is not found how do i add it?
Imports System.Data
Imports System.Data.Sql Client
Public Class WebForm1
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents dgrdDatagrid1 As
System.Web.UI.W ebControls.Data Grid

'NOTE: The following placeholder declaration is required by the Web
Form
Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
Dim simplecomponent As New Simple
Dim dataset As New DataSet
dataset = simplecomponent .loadDataSet()
dgrdDatagrid1.D ataSource = dataset
dgrdDatagrid1.D ataBind()

End Sub

Private Sub dgrdDatagrid1_S electedIndexCha nged(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
dgrdDatagrid1.S electedIndexCha nged

End Sub
End Class

Nov 19 '05 #3

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

Similar topics

1
2169
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the Microsoft .NET framework. SwiftReports provides complete code integration with the Visual Studio .NET 2003 environment. Developers can use Visual Studio .NET 2003 to write code in either C# or Visual Basic .NET for report control and event handling.
1
3917
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will make it easier for someone (i.e. a Microsoft person) to digest the information and respond to it. I am a C++ and Java developer with over 3 years of industry experience. I've written low level C++ code, in addition to web clients that use web...
19
3554
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours to find the _current_ reporting page... #include <vector> #include <iostream>
5
2511
by: Somesh | last post by:
#include<map> #include<iostream> #include<string> using namespace std; int main() { map <string,int> test;
4
1855
by: Bill Burris | last post by:
When compiling my solution which contains 15 projects (2 Window Apps, 2 Services, 11 class libraries, C#, MC++, & C++), I was receiving warnings about symbols defined in multiple places. Selecting Rebuild Solution did not make the problem go away. After selecting Clean Solution, followed by Rebuild Solution, the problem went away. I had always assumed that rebuild meant starting over, recompiling all code, and linking with the...
0
1870
by: Vagif Abilov | last post by:
Hello, We are setting up an envirnoment for daily builds, and there are a few things in VS.NET behaviour that makes it a bit complicated. One of them is post-build events. If you have a .NET component that should be registered with COM+ catalog, then Visual Studio includes a post-build event with a call to REGSVCS.EXE. The problem is that the command generated by VS.NET is quite ugly: it includes hard-coded path of .NET Framework where...
0
1819
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework. Document! X 5 automatically produces professional quality technical documentation and on-line help for Microsoft .NET Framework assemblies (.NET Framework 1.0, 1.1 and 2.0 are all supported), COM components and controls, Visual Basic source code,...
12
5913
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
2
3400
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd expect of the Express editions), but apparently there are NON Express versions of Visual Web Developer. Is Visual Web Developer only built-in to Visual Studio 2008 Professional? I see "Microsoft Visual Web Developer 2008" listed as an installed...
0
8991
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
8831
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,...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
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
6796
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
4607
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...
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.