Bruce,
This is an interesting topic.
It would seem that
http://msdn.microsoft.com/library/de...rfCodeBase.asp
implies that the codebase *can* be used by
web applications, since that page specifies that:
"If the assembly has a strong name, the codebase setting
can be anywhere on the local intranet or the Internet.
If the assembly is a private assembly, the codebase
setting must be a path relative to the application's directory."
and, it also specifies that :
"This element can be used in the application configuration file,
machine configuration file (machine.config), and the publisher
policy file."
I don't see any restrictions regarding usage only in Winforms.
Also, the info in
http://msdn.microsoft.com/library/de...plications.asp
states that:
"The administrator can use the <probing> element in the configuration
file to specify that the runtime should search for assemblies in
subdirectories of the application base.
Suppose that
www.adventure-works.com/webApp/StockCalc
maps to C:\Inetpub\Wwwroot\Webapps\StockCalc.
Putting <probing privatePath="bin"/> in the configuration file
causes the runtime to search for assemblies in
C:\Inetpub\Wwwroot\Webapps\StockCalc\Bin
as well as C:\Inetpub\Wwwroot\Webapps\StockCalc."
The path "C:\Inetpub\Wwwroot\Webapps\StockCalc\Bin"
strongly suggests that a web application is using the <probing>
element to locate an assembly.
I confess I'm not an expert in this field, but the implications
of the statements in that page are very strong in favor of
web applications being able to use the <runtime>
configuration section of web.config.
If I'm being misled by these documents,
I'm ready to hear otherwise, though.
Juan T. Llibre
ASP.NET MVP
===========
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
no its not.
this is probably because the dll's are needed for the page compile first.
the compiler references are specified in the <assemblies> section (which
asp.net passes to the compiler thru switches when it spawns it).
unfortunately you can only specify the name in the <assemblies> section,
not
the path, as this is specified with the compiler lib switch.
-- bruce (sqlwork.com)
"Subra Mallampalli" <su**********************@newsgroups.nospam> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
| 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,
|
| Subra
|
|