Calling assemblies

T

Tarllem

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!
 
G

Guest

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
 
T

Tarllem

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
 
J

Juan T. Llibre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top