473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Calling assemblies

Hi!

How can I call to the assemblies locate in the GAC from asp.net? and if the
assemblies is locate at another folder?

Thanks, regards!
Nov 19 '05 #1
3 952
Hi,

Expand Your solution explorer>> Your Project...

You will see a node "References" Right click on it and select "Add Reference"

You will get a box with title "Add Reference" and three tabs ".NET", "COM",
"Projects".
By default all the assemblies loaded in the GAC will be available in the
list shown there. If you want a non-listed assembly and stored somewhere
other than GAC then you can browse to the location with the "Browse" button
available in the top right corner of the displayed box.

Cheers,

Jerome. M

"Tarllem" wrote:
Hi!

How can I call to the assemblies locate in the GAC from asp.net? and if the
assemblies is locate at another folder?

Thanks, regards!

Nov 19 '05 #2
Perfect!

Now, I see the reference, but what's the syntax for call it? <% @Import
NameSpace... %>?

"DotNetJerome" <reachjerome@_yahoo.com-remove-the-underscore-after@>
escribió en el mensaje
news:82**********************************@microsof t.com...
Hi,

Expand Your solution explorer>> Your Project...

You will see a node "References" Right click on it and select "Add
Reference"

You will get a box with title "Add Reference" and three tabs ".NET",
"COM",
"Projects".
By default all the assemblies loaded in the GAC will be available in the
list shown there. If you want a non-listed assembly and stored somewhere
other than GAC then you can browse to the location with the "Browse"
button
available in the top right corner of the displayed box.

Cheers,

Jerome. M

"Tarllem" wrote:
Hi!

How can I call to the assemblies locate in the GAC from asp.net? and if
the
assemblies is locate at another folder?

Thanks, regards!

Nov 19 '05 #3
Tarllem,

I answered your question, listing all the ways which
the runtime uses to locate assemblies in code,
in the spanish-language newsgroup you posted it to,
as a reply to your same-named post in :

microsoft.public.es.dotnet.aspnet

Essentially, if the assemblies are in the GAC or the /bin :
<%@ Import Namespace="NamespaceName" %>

You can also use <codeBase... /> to point to an online location.

And, you can also add the assembly's path to the DEVPATH
environment variable, if you add
<developmentMode developerInstallation="true"/> to the
</runtime> section of web.config.

There's a couple of caveats regarding
version-checking if you use this method.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Tarllem" <no@no.no> wrote in message
news:O5*************@TK2MSFTNGP15.phx.gbl...
Hi!

How can I call to the assemblies locate in the GAC from asp.net? and if
the assemblies is locate at another folder?

Thanks, regards!

Nov 19 '05 #4

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

Similar topics

12
by: guy lateur | last post by:
Hi all, I am trying to write some code (macro's, if you like) to glue together our Office applications (mainly Word, Excel and Outlook). We have a lot of different projects going on...
5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
4
by: Richard | last post by:
I have a service which is used to call differenct versions of an application depending on the database version that is being used. The service has been compiled in framework 1.1 and it needs to...
1
by: dwp | last post by:
hResult = pDefaultDomain->CreateInstanceFrom( pAppDomain- >m_bstrLoadAssemblyName, pAppDomain->m_bstrManagedClass, &pObjectHandle ) This call gives the E_ACCESSDENIED return value. I have...
12
by: scottt | last post by:
hi, I am having a little problem passing in reference of my calling class (in my ..exe)into a DLL. Both programs are C# and what I am trying to do is pass a reference to my one class into a DLL...
9
by: Terry | last post by:
I am trying to test out the ability of VB6 (VBA access) to instanciate a VB.net Object and call its methods. I came accross the following article in my vs2005 help search:...
7
by: Andreas Reiff | last post by:
Hey! I have a managed c++ app (actually, the app is mixed managed/unmanaged, but this happens in the managed part) that dynamically generates some program in c# (with CSharpCodeProvider). The...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.