473,322 Members | 1,431 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,322 software developers and data experts.

DEVPATH assembly detection

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.
Nov 19 '05 #1
2 1791
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.

Nov 19 '05 #2
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?

"Daniel Fisher(lennybacon)" wrote:
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.


Nov 19 '05 #3

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

Similar topics

60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
6
by: Gustav Medler | last post by:
Hello, there is a known problem with Opera and the execution of content shown in <NOSCRIPT> tag. Everythings works fine, if there is only one simple script like:...
0
by: High and dRy | last post by:
I have a DEVPATH set on my computer. What I want to achieve is if I run an application through the IDE I want try to find the dlls in the path that DEVPATH states first. And if I run my application...
8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
7
by: mosaic | last post by:
Hi, all I really interested in how to check the memory leak of a program. Your smart guys, do you have excellent ideas that could share with me? Thank you. The following is my idea: In C...
0
by: dan.c.roth | last post by:
Hi Has anyone got DEVPATH to work in a Web app? I have no problem for a Win app. I added <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" />
0
by: darrenhello | last post by:
hi there, I am doing my last year's project and I have a 'little' problem. I have to do an edge detection filter. for now, some normal edge detection filters that I used worked fine but there a...
0
by: origami.takarana | last post by:
Intrusion Detection Strategies ----------------------------------- Until now, we’ve primarily discussed monitoring in how it relates to intrusion detection, but there’s more to an overall...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.