* WebConfigurationManager.cs: A better version of the previous
GetSection fix. Right now the method searches for directories
containing web.config and uses them, if found, to open the web
configuration. If no web.config is found, web configuration is
opened for the root application directory.
* WebConfigurationHost.cs: made GetWebConfigFileName internal
static, so that code can be reused from WebConfigurationManager.
svn path=/trunk/mcs/; revision=122124
* WebConfigurationHost.cs: changed CreateDeprecatedConfigContext
to return a new HttpContext object. This is part of a fix for bug
#325128. Patch contributed by James Fitzsimons <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=104332
* ApplicationHost.cs: introduce an application domain data item to
allow checks for whether System.Web code runs inside a hosted
application or in a stand-alone one.
Made the array of web.config name variations an internal one, to
be used from within configuration code.
2007-10-17 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: if running outside hosted environment,
read only the assemblyname.config configuration file instead of
web.config. Fixes bug #332425
svn path=/trunk/mcs/; revision=87621
* WebConfigurationManager.cs:
make configurations hashtable case-insensitive.
* WebConfigurationHost.cs: for TARGET_J2EE only:
GetStreamName returns file path in right case, that make it works
on case-sensitive file system.
* ConfigurationLocationCollection.cs: for TARGET_JVM only:
location path is case-insensitive.
* PageMapper.cs: reverted r77353, 77321
make it case-insensitive
svn path=/trunk/mcs/; revision=77415
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
actually look up types.
* ControlBuilder.cs: as above
2007-05-15 Marek Habersack <[email protected]>
* BuildProviderCollection.cs: refactoring - use
HttpApplication.LoadType to actually look up the type.
* HttpHandlerAction.cs: as above
* WebConfigurationHost.cs: refactoring - moved the LoadType to
HttpApplication to share the code between 1.1 and 2.0 profiles.
2007-05-15 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: refactoring - use
HttpApplication.LoadType to look up types.
2007-05-15 Marek Habersack <[email protected]>
* HttpApplication.cs: refactoring - moved LoadType from
WebConfigurationHost here and made it internal static, in order to
make the code avaliable from all the places where extended type
loading is required.
svn path=/trunk/mcs/; revision=77396
* HttpRequest.cs: MS.NET throws HttpException for invalid paths,
not ArgumentNullException.
* HttpException.cs: wrap GetHtmlErrorMessage internals in
try/catch to capture possible exceptions in HttpContext.
* HttpContext.cs: IsCustomErrorEnabled is used from within
HttpException, make sure it gets the section in a safe way and
resorts to the default settings.
* HttpResponse.cs: HeaderEncoding is used in the same context as
above. Take the same precautions.
2007-04-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: wrap MapPath calls in try/catch,
because bad URLs can cause it to throw exceptions. If such
exception is caught, throw a HttpException for Bad Request (400).
* WebConfigurationManager.cs: added two internal methods for safe
retrieval of config sections.
svn path=/trunk/mcs/; revision=76162
* WebConfigurationManagerTest.cs: the tests don't work because of
the way the test suite is set up. In a normal application, the
three test would work just fine.
2007-03-24 Marek Habersack <[email protected]>
* HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
opening the machine.config file and getting its path.
* CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory
instead of opening the machine config file and getting its path.
2007-03-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: allow MachineToApplication definition
for config paths that equal the domain virtual app directory.
svn path=/trunk/mcs/; revision=74927
* Rationalize the user of MonoTODOs.
- Removed all the TODOs that were only overwritten methods
and had no further information.
- Methods that threw exceptions now have the message "Not
implemnted".
- Methods that return some constant are declared like
that.
- Removed a bunch of stale MonoTODOs that had not been
removed.
svn path=/trunk/mcs/; revision=68620
* WebConfigurationHost.cs (InitForConfiguration): i know this is
going to bite me in the ass, but guard against configPath being ==
to "/", since this will result in an infinite loop.
(MapPath): fix a NRE.
svn path=/trunk/mcs/; revision=61574
[ Fixes bug #78256 ]
* WebConfigurationHost.cs (GetConfigType): add a MonoTODO about
how we should use the build provider machinery to get types.
(MapPath): add rudimentary mapping in the case where we don't have
a request, basically handle the case where the url begins with (or
is) HttpRuntime.AppDomainAppVirtualPath.
* WebConfigurationManager.cs (GetSection): if we don't have a
valid request, open the web configuration corresponding to
HttpRuntime.AppDomainAppVirtualPath.
(GetBasePath): comment this a little, and make it work in the case
where we don't have an HttpRequest.
svn path=/trunk/mcs/; revision=60275
HttpRuntime.AppDomainAppVirtualPath on gonzalo's recommendation.
It's never null, and its use cleans things up a bit.
2006-04-25 Chris Toshok <[email protected]>
svn path=/trunk/mcs/; revision=59878
* WebConfigurationHost.cs (InitForConfiguration): stop going up
the virtual hierarchy once we reach the application's base virtual
path.
svn path=/trunk/mcs/; revision=59876
* WebConfigurationHost.cs: fix bug where OpenWebConfiguration
("/") would result in 2 configurations for that toplevel path to
be opened.
svn path=/trunk/mcs/; revision=58491
* WebConfigurationManager.cs: lots of little changes. hopefully
this doesn't break anyone. it fixes all the nunit problems
gonzalo was having.
* WebConfigurationHost.cs (GetStreamName): in the MachineWebPath
case, handle the case where we have a WebConfigurationFileMap.
(MapPath): this is likely wrong, but in the case where we don't
have a file map or current HttpContext, just return the path.
svn path=/trunk/mcs/; revision=56311
* HttpConfigurationSystem.cs: new class that gets sections from
web.config files.
* WebConfigurationManager.cs: change a lot of the
NotImplementedExceptions to NotSupportedExceptions.
(AppSettings): implement by just returning
ConfigurationManager.AppSettings (note this is broken because
ConfigurationManager.AppSettings are read-only, but it works for
reading.)
(ConnectionStrings): same (and probably broken in the same way..)
(Init): replace the 2.0 IInternalConfigSystem with our
HttpConfigurationSystem.
* WebConfigurationHost.cs: add a comment about how things are
likely to work in the face of IRemoteWebConfigurationHostServer.
(CreateConfigurationContext): return a WebContext instance.
svn path=/trunk/mcs/; revision=56137
* WebConfigurationManager.cs: implement a IConfigurationSystem for
use with WebConfigurationManager.
(GetSection): try to load the section
using GetWebApplicationSection before calling into
ConfigurationManager.GetSection.
(GetWebApplicationConfiguration): move common code to here.
(GetWebApplicationSection): use GetWebApplicationConfiguration.
(AppSettings): implement.
* WebConfigurationHost.cs (GetWebConfigFileName): add
"Web.Config", and move to an array/loop implementation. maybe we
should scan the directory and check ToLower() instead of
explicitly enumerating?
svn path=/trunk/mcs/; revision=55650