Calling assemblies

  • Thread starter Thread starter Tarllem
  • Start date Start date
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!
 
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
 
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
 
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...
======================
 
Back
Top