473,700 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<probing> element in Web.config

This has been asked many times before but it seems there haven't been clear
answers.

I have an application root at

http://localhost

and subdirectories

http://localhost/app1

which is not a virtual directory. So normally all assemblies will be
searched for in http://localhost/bin directory. I want to change this so
that for app1, the runtime searches in http://localhost/app1/bin and for
app2, in http://localhost/app2/bin, etc...

I've set up <probing> element in my web.config and found some issues and was
wondering whether some of these are bugs, *features*, etc.

1. <probing> element specified in web.config under app1 folder seems to have
no effect. Thus <probing> element must be specified once in the app root's
web.config for all app1..N.

2. Regardless of the existence of <probing> element, the assembly that
contains your Page derived class(your typical presentation layer) must still
be located in app root's bin folder. All other business, DAL, utilities can
be located in app1/bin folder.

3. Q: Can <codeBase> be utilized in my situation? Note that these are all
private assemblies.

Thanks for any information you can provide. Please feel free to share your
experiences with <probing> and general assembly location issues.
Jiho Han
Nov 18 '05 #1
2 6798
1) there is only 1 web.config per asp.net application. because your /app1
and /app2 are not vdirs (asp.net applications) they use the base web.config

2) asp.net doesn't actually use the bin directory, it shadow copies it to
another directory (tempDirectory= ) that it creates to run the application.

3) to compile a page, asp.net needs a reference to the base page dll, to
pass to the compiler. probe is only used by assembly loader, not the
compiler. try adding path references to the <compiler> section of your web
config (you will need to add the <compilation> section).
-- bruce (sqlwork.com)
"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:O8******** ******@tk2msftn gp13.phx.gbl...
This has been asked many times before but it seems there haven't been clear answers.

I have an application root at

http://localhost

and subdirectories

http://localhost/app1

which is not a virtual directory. So normally all assemblies will be
searched for in http://localhost/bin directory. I want to change this so
that for app1, the runtime searches in http://localhost/app1/bin and for
app2, in http://localhost/app2/bin, etc...

I've set up <probing> element in my web.config and found some issues and was wondering whether some of these are bugs, *features*, etc.

1. <probing> element specified in web.config under app1 folder seems to have no effect. Thus <probing> element must be specified once in the app root's web.config for all app1..N.

2. Regardless of the existence of <probing> element, the assembly that
contains your Page derived class(your typical presentation layer) must still be located in app root's bin folder. All other business, DAL, utilities can be located in app1/bin folder.

3. Q: Can <codeBase> be utilized in my situation? Note that these are all
private assemblies.

Thanks for any information you can provide. Please feel free to share your experiences with <probing> and general assembly location issues.
Jiho Han

Nov 18 '05 #2
A couple of notes...

1) This is not true. There is one *root* web.config per vdir. However,
each subdirs underneath the vdirs can have web.config as well with some
limitations.

2) I know this but do only the page page dlls get copied over to the temp
folder or do all referenced assemblies?

3) Unfortunately, <compiler> section doesn't seem like it would help.
<assemblies> section seemed like it would but depending on what the
following statement from the doc means:

"You can optionally specify the wildcard character * (an asterisk) to add
every assembly within an application's private assembly cache" and the doc
states to refer to Assembly.Load, which may indicate assembly loader at
work. However, it still only insists on searching inside approot/bin folder
only.

"bruce barker" <no***********@ safeco.com> wrote in message
news:Ov******** ******@TK2MSFTN GP11.phx.gbl...
1) there is only 1 web.config per asp.net application. because your /app1
and /app2 are not vdirs (asp.net applications) they use the base web.config
2) asp.net doesn't actually use the bin directory, it shadow copies it to
another directory (tempDirectory= ) that it creates to run the application.

3) to compile a page, asp.net needs a reference to the base page dll, to
pass to the compiler. probe is only used by assembly loader, not the
compiler. try adding path references to the <compiler> section of your web
config (you will need to add the <compilation> section).
-- bruce (sqlwork.com)
"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:O8******** ******@tk2msftn gp13.phx.gbl...
This has been asked many times before but it seems there haven't been

clear
answers.

I have an application root at

http://localhost

and subdirectories

http://localhost/app1

which is not a virtual directory. So normally all assemblies will be
searched for in http://localhost/bin directory. I want to change this so that for app1, the runtime searches in http://localhost/app1/bin and for
app2, in http://localhost/app2/bin, etc...

I've set up <probing> element in my web.config and found some issues and

was
wondering whether some of these are bugs, *features*, etc.

1. <probing> element specified in web.config under app1 folder seems to

have
no effect. Thus <probing> element must be specified once in the app

root's
web.config for all app1..N.

2. Regardless of the existence of <probing> element, the assembly that
contains your Page derived class(your typical presentation layer) must

still
be located in app root's bin folder. All other business, DAL, utilities

can
be located in app1/bin folder.

3. Q: Can <codeBase> be utilized in my situation? Note that these are all private assemblies.

Thanks for any information you can provide. Please feel free to share

your
experiences with <probing> and general assembly location issues.
Jiho Han


Nov 18 '05 #3

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

Similar topics

3
20893
by: Peter Blum | last post by:
I have built an assembly (dll) from which I expect third parties to subclass. As a result, when my assembly has a version change, it will cause any third party assembly based on it to break unless I establish a Publisher Policy file. So I have that. I have built a Windows app for the same product. This app prompts the user for a path to a third party assembly that depends on my assembly. It opens the third party assembly (Assembly.Load)...
8
34642
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by web apps? Any help is greatly appreciated. Thanks,
13
3554
by: Water Cooler v2 | last post by:
What do you mean by a cookieless session state? When you set the sessionState section's cookieless attribute to true in the web.config file, what does that mean? I read this (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfSessionstateSection.asp) and it does not explain the meaning of cookieless.
2
1987
by: akshaycjoshi | last post by:
While probing for an external private assembly in App.config file we can specift the <codebase> and <privatepath>. What is the difference between the two ? Suppose the application is in c:\applications\myapplication Thank u
0
8731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9081
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7819
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2032
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.