|
 |
aspx thread: Accessing a VB.net component from an asp.net page.
Message #1 by "Frank Trainer" <ftrainer@u...> on Wed, 18 Jul 2001 20:34:15
|
|
I have a vb.net component dll located at 'C:\Documents and
Settings\ftrainer\My Documents\Visual Studio Projects\ClassLibrary3\bin'.
It is called 'GetPlants.dll'.
Inside an asp.net page I have the following line:
<%@ Import Namespace="GetPlants" %>
When I try to run the asp page I get the following error:
CS0246: The type or namespace name 'GetPlants' could not be found (are
you missing a using directive or an assembly reference?)
Any help is greatly appreciated.
Thanks,
Frank
Message #2 by "Yackson mata" <yackson.mata@v...> on Wed, 18 Jul 2001 21:59:22 +0200
|
|
Hi Franks,
If you have vb.net component dll, you can make references in your
application.
Is in Solution Explorer.
Till other message.
Yackson mata
Message #3 by "Mohit Navare (CTS)" <MohitN@p...> on Thu, 19 Jul 2001 10:20:30 +0530
|
|
hi Frank,
Try this out.
Add the reference of the DLL in your ASP project.
Then in the project give namespace as :
<%@ Import Namespace="PROJECTNAME.GetPlants" %> where
"PROJECTNAME" is the name of your ASP project in which you want to call
the DLL.
Thanks And Regards
Mohit Navare
Cognizant Tech Solns
Pune
P.S: Try this out and let me know.
-----Original Message-----
From: Frank Trainer [mailto:ftrainer@u...]
Sent: Thursday, July 19, 2001 2:04 AM
To: ASP+
Subject: [aspx] Accessing a VB.net component from an asp.net page.
I have a vb.net component dll located at 'C:\Documents and
Settings\ftrainer\My Documents\Visual Studio Projects\ClassLibrary3\bin'.
It is called 'GetPlants.dll'.
Inside an asp.net page I have the following line:
<%@ Import Namespace="GetPlants" %>
When I try to run the asp page I get the following error:
CS0246: The type or namespace name 'GetPlants' could not be found (are
you missing a using directive or an assembly reference?)
Any help is greatly appreciated.
Thanks,
Frank
Message #4 by "Wim Verdeyen" <Wim.Verdeyen@e...> on Thu, 19 Jul 2001 21:59:13 +0200
|
|
Normally Assemblies are imported automatically when you put them in the
bin directory of your application.
You can explicitly import them with the Assembly directive.
-----Original Message-----
From: Frank Trainer [mailto:ftrainer@u...]
Sent: woensdag 18 juli 2001 22:34
To: ASP+
Subject: [aspx] Accessing a VB.net component from an asp.net page.
I have a vb.net component dll located at 'C:\Documents and
Settings\ftrainer\My Documents\Visual Studio
Projects\ClassLibrary3\bin'.
It is called 'GetPlants.dll'.
Inside an asp.net page I have the following line:
<%@ Import Namespace=3D"GetPlants" %>
When I try to run the asp page I get the following error:
CS0246: The type or namespace name 'GetPlants' could not be found (are
you missing a using directive or an assembly reference?)
Any help is greatly appreciated.
Thanks,
Frank
Message #5 by Wim Hollebrandse <Wim.Hollebrandse@c...> on Thu, 19 Jul 2001 23:54:56 +0100
|
|
You might have to embed the class definition(s) in the Namespace
keyword(s),
like this:
Namespace GetPlants
Public Class Plants
...
...
End Class
End Namespace
-----Original Message-----
From: Wim Verdeyen [mailto:Wim.Verdeyen@e...]
Sent: 19 July 2001 20:59
To: ASP+
Subject: [aspx] RE: Accessing a VB.net component from an asp.net page.
Normally Assemblies are imported automatically when you put them in the
bin directory of your application.
You can explicitly import them with the Assembly directive.
-----Original Message-----
From: Frank Trainer [mailto:ftrainer@u...]
Sent: woensdag 18 juli 2001 22:34
To: ASP+
Subject: [aspx] Accessing a VB.net component from an asp.net page.
I have a vb.net component dll located at 'C:\Documents and=3D20
Settings\ftrainer\My Documents\Visual Studio
Projects\ClassLibrary3\bin'.
It is called 'GetPlants.dll'.
Inside an asp.net page I have the following line:
<%@ Import Namespace=3D3D"GetPlants" %>
When I try to run the asp page I get the following error:
CS0246: The type or namespace name 'GetPlants' could not be found
(are=3D20
you missing a using directive or an assembly reference?)
Any help is greatly appreciated.
Thanks,
Frank
|
|
 |