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(str ing name)
or
System.Reflection.Assembly.GetAssembly(System.Type type)
will work better for you that GetExecutingAssembly()
--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog:
http://www.lennybacon.com/
"e_zverev" <ez*****@discussions.microsoft.com> wrote in message
news:F2**********************************@microsof t.com...
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.