DEVPATH assembly detection

G

Guest

Hi

The question concerns the ways ASP.NET loads required assemblies into it's
app domain.

I know of a deprecated feature of clr assembly detection in which the use of
environment variable DEVPATH is involved. My problem is that this way doesnot
seem to work when I need to locate an assembly in my ASP.NET application.

Does the DEVPATH feature have to work in ASP.NET?

Thanks in advance.
 
D

Daniel Fisher\(lennybacon\)

Dim path As String
path = System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)

or

string path;
path = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );


maybe

System.Reflection.Assembly.LoadWithPartialName(string name)
or
System.Reflection.Assembly.GetAssembly(System.Type type)

will work better for you that GetExecutingAssembly()
 
G

Guest

Thanks for your reference but how does it concern the DEVPATH feature?

I am not interested in the question of locating assemblies, I am
particularly interested in the question I asked: does the DEVPATH feature
have to work in ASP.NET?
 

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

Forum statistics

Threads
474,123
Messages
2,570,739
Members
47,294
Latest member
HenryDonog

Latest Threads

Top