Commit Graph
152 Commits
Author SHA1 Message Date
Gert Driesen d637e7a52b * HandlerFactoryConfiguration.cs: Allow handlers with non-public
.ctors. Fixes bug #463971 for 1.0 profile.

svn path=/trunk/mcs/; revision=122811
2009-01-08 19:06:55 +00:00
Gert Driesen 04871c3259 Fixed reference to bug number.
svn path=/trunk/mcs/; revision=115678
2008-10-13 18:23:10 +00:00
Marek Habersack 10ea40ece6 2008-10-13 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: do not store call-specific data
	in a class field.

svn path=/trunk/mcs/; revision=115645
2008-10-13 09:24:01 +00:00
Gert Driesen a8ad1768dc * HttpResponse.cs: Simplify code for outputting ASP.NET version, as
version header cannot be configured. MS corrected this documenation
error in .NET 2.0 SDK.
* HttpRuntimeConfig.cs: Added support for several undocumented options,
and removed support for options that are not supported or 2.0 only.
* HttpRuntimeConfigurationHandler.cs: Added support for several
undocumented options, and removed support for options that are not
support or 2.0 only.

svn path=/trunk/mcs/; revision=115553
2008-10-12 07:56:44 +00:00
Marek Habersack 34e57b7e2d 2008-08-20 Marek Habersack <[email protected]>
* HttpResponseHeader.cs: encode header values if
	httpRuntime.enableHeaderChecking is true (default). Fixes bug
	#418620
2008-08-20  Marek Habersack  <[email protected]>

	* HttpRuntimeConfig.cs: implemented the undocumented (but
	supported in .NET 1.1) option EnableHeaderChecking to support fix
	for bug #416620

svn path=/trunk/mcs/; revision=111122
2008-08-20 14:06:58 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* HtmlForm.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* MachineKeyRegistryStorage.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: remove unused method

2008-06-30  Marek Habersack  <[email protected]>

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Juraj Skripsky 1d59cd8709 2008-06-18 Juraj Skripsky <[email protected]>
* HttpResponse.cs (AddHeadersNoCache): Add "X-AspNet-Version" header if
	enabled.
	
2008-06-18  Juraj Skripsky  <[email protected]>

	* HttpRuntimeConfig.cs: Correct name of property "RequireRootedSaveAsPath".
	* HttpRuntimeConfigurationHandler.cs (Create): Read
	"requireRootedSaveAsPath", "idleTimeout", "enable" and
	"enableVersionHeader" from XmlNode.


svn path=/trunk/mcs/; revision=106096
2008-06-18 10:56:55 +00:00
Marek Habersack bee5c455c0 2008-04-29 Marek Habersack <[email protected]>
* WebConfigurationSettings.cs: if path mapping fails in
	GetConfigFromFileName, fall back to the application's physical
	directory.

2008-04-29  Marek Habersack  <[email protected]>

	* HttpException.cs: safe guard against context being null in
	GetHtmlErrorMessage.

2008-04-29  Marek Habersack  <[email protected]>

	* WebServiceCompiler.cs: if compiling a body-less web service, try
	to load the class type from the loaded assemblies before
	attempting to find it in the assemblies on disk.

svn path=/trunk/mcs/; revision=102127
2008-04-29 14:48:26 +00:00
Dean Brettle b14ff24d34 ++ class/System.Web/Test/mainsoft/ChangeLog (working copy)
* NunitWebResources/adapters.browser, 
	NunitWebResources/TestCapability.browser: modified to work and
	support tests of browser defs in 
	etc/mono/2.0/Browsers/Compat.browser.

++ class/System.Web/Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added tests to ensure browscap.ini
	etc/mono/2.0/Browsers/Compat.browser are being used when there
	are App_Browser/*.browser files.

++ class/System.Web/Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControlTest.cs, HierarchicalDataBoundControlTest.cs,
	WebControlTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
	use etc/mono/2.0/Browser/*.browser files in addition to 
	~/App_Browsers/*.browser files.

++ class/System.Web/System.Web.UI/ChangeLog	(working copy)

	* Page.cs (PageAdapter): fixed cast error when a ControlAdapter that
	wasn't a PageAdapter was used.

++ class/System.Web/System.Web.Configuration_2.0/ChangeLog	(working copy)

	* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
	nBrowser/Build.cs (Process): Added initialCapabilities argument to 
	facilitate using browscap.ini capabilities.
	
	* CapabilitiesResult.cs (ctor), nBrowserResult.cs (ctor): Change 
	items arg to IDictionary to	facilitate using browscap.ini capabilities.
	
	* nBrowser/Node.cs (Reset): Removed code which checked prohibited 
	non-alphanumerics in id attributes because .NET is not that strict.
	
	* nBrowser/Node.cs (MergeFrom): Fixed NullReferenceExceptions that
	occurred when the source or destination node did not have any
	capabilities or adapters.
	
	* nBrowser/Result.cs (AddAdapter): Fixed to allow types in other
	assemblies.

++ class/System.Web/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControl.cs (InternalPerformDataBinding), 
	HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
	WebControl.cs (Render): fixed cast errors when a ControlAdapter
	that wasn't of the type corresponding to the control was used.

++ class/System.Web/System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs (GetConfigCapabilities): changed to use
	browscap.ini for default capabilities when *.browser files are
	present, so we don't need to maintain browser capabilities in two
	places.


svn path=/trunk/mcs/; revision=100150
2008-04-08 21:16:00 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

	* Makefile (TEST_RESOURCE_FILES): added 
		Test/mainsoft/NunitWebResources/PageWithAdapter.aspx

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Marek Habersack a50b2872dd 2008-02-28 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: ignore case when matching
        handler paths.
2008-02-28  Marek Habersack  <[email protected]>

        * HttpHandlerAction.cs: ignore case when matching handler
        paths. Fixes bug #364995
2008-02-28  Marek Habersack  <[email protected]>

        * TemplateControlParser.cs: when registering a control, check for
        the .ascx extension case-insensitively. Fixes bug #364995


svn path=/trunk/mcs/; revision=96870
2008-02-28 13:14:20 +00:00
Marek Habersack 4ce3af2b1f 2007-12-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs, AspComponentFoundry.cs,
	AssemblyBuilder.cs, AppResourcesCompiler.cs,
	AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.
2007-12-13  Marek Habersack  <[email protected]>

	* MailAddress.cs, SmtpClient.cs, MailMessageWrapper.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HttpRequest.cs, HttpResponse.cs, SiteMapNode.cs, HttpRuntime.cs,
	HttpResponseStream.cs, HttpApplication.cs, HttpCachePolicy.cs:
	speed optimization - use String.Concat instead of String.Format in
	some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* FileMatchingInfo.cs. MachineKeyRegistryStorage.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.

svn path=/trunk/mcs/; revision=91234
2007-12-13 15:38:53 +00:00
Marek Habersack 1b6f06fa7e 2007-11-17 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: FileMatchingInfo array must be
	created anew on each request (before the result is cached). Fixes
	bug #335669.

svn path=/trunk/mcs/; revision=89812
2007-11-16 22:54:34 +00:00
Marek Habersack 577952176d 2007-11-14 Marek Habersack <[email protected]>
* FileMatchingInfo.cs: if Request is present, construct MatchExact
	using Request.BaseVirtualDir instead of
	HttpRuntime.AppDomainAppVirtualPath, falling back to the latter if
	the former is not available. Fixes bug #341703

svn path=/trunk/mcs/; revision=89631
2007-11-14 20:29:41 +00:00
Marek Habersack 669d0ef97f 2007-11-02 Marek Habersack <[email protected]>
* HttpApplication.cs: introduced HTTP handler cache to save time
	on repetitive handler collection traversals. On busy sites the
	traversal of the default 26 handlers may account for thousands of
	unnecessary calls to configsystem.LocateHandler method, which may
	also involve executing a regex. The cache is cleared whenever the
	HTTP handler collection is modified.
2007-11-02  Marek Habersack  <[email protected]>

	* HttpHandlerActionCollection.cs: clear http handler cache in
	HttpApplication if the collection is modified.
2007-11-02  Marek Habersack  <[email protected]>

	* HandlerFactoryConfiguration.cs: clear the HttpApplication HTTP
	handler cache whenever the collection is modified.

svn path=/trunk/mcs/; revision=88716
2007-11-02 11:12:29 +00:00
Marek Habersack 972045f257 2007-11-02 Marek Habersack <[email protected]>
* FileMatchingInfo.cs: MatchExact should be constructed using the
	current application virtual path, not literal "/".

svn path=/trunk/mcs/; revision=88714
2007-11-02 10:09:34 +00:00
Marek Habersack 511d26cdcc 2007-10-24 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: exact path matching must be done on the
	original string in PathMatches, not on the sliced one. Fixes bug
	#335669.
2007-10-24  Marek Habersack  <[email protected]>

	* HandlerFactoryConfiguration.cs: exact path matching must be done
	on the original string in PathMatches, not on the sliced one.

	* FileMatchingInfo.cs: refactoring - this code used to live in
	both 1.1 and 2.0 profiles. At the same time, fixe the way
	MatchExact is created - the slash is prepended only if the path
	doesn't begin with it.
2007-10-24  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Configuration/FileMatchingInfo.cs

svn path=/trunk/mcs/; revision=88121
2007-10-24 19:55:36 +00:00
Marek Habersack 9a63e69002 2007-10-15 Marek Habersack <[email protected]>
* HttpModulesSection.cs: use HttpApplication.LoadType when loading
	modules, to include both the bin/ directory and the top-level
	assemblies in search. Fixes bug #333686.
2007-10-15  Marek Habersack  <[email protected]>

	* ModulesConfiguration.cs: load modules using
	HttpApplication.LoadType to include the bin/ directory in search.

svn path=/trunk/mcs/; revision=87486
2007-10-15 08:57:38 +00:00
Marek Habersack b497743322 2007-08-30 Marek Habersack <[email protected]>
* System.Web.dll.sources: added MachineKeyRegistryStorage.cs

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeySection.cs: retrieve the keys from the registry before
            falling back to the old method. Fixes bug #76606

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeyRegistryStorage.cs: added


svn path=/trunk/mcs/; revision=85063
2007-08-30 17:32:52 +00:00
Robert Jordan cce1e43754 Fix bug id.
svn path=/trunk/mcs/; revision=84682
2007-08-23 06:52:06 +00:00
Robert Jordan cc8387ea6f In System.Web/System.Web.Configuration:
2007-08-23  Robert Jordan  <[email protected]>

	* WebConfigurationSettings.cs: Move RemotingConfiguration to
	System.Runtime.Remoting.Channels.Http/HttpRemotingHandlerFactory.cs.
	Fixes #19384.

In System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http:
2007-08-23  Robert Jordan  <[email protected]>

	* HttpRemotingHandlerFactory.cs: configure Remoting because
	System.Web doesn't anymore. Fixes #81831.


svn path=/trunk/mcs/; revision=84681
2007-08-23 06:47:58 +00:00
Gert Driesen b857f8cee5 * PagesConfigurationHandler.cs: Use enum for EnableSessionState.
* PagesConfiguration.cs: Use enum for EnableSessionState.
* PagesEnableSessionState.cs: Marked internal on 1.0 profile.
* PageParser.cs: Replace enableSessionState and readOnlySessionState
bools with enum backed field. Move 1.0 profile code for checking value
of EnableSessionState pages config to PagesConfigurationHandler.       
Fixes bug #82392 for 1.0 profile.

svn path=/trunk/mcs/; revision=83810
2007-08-10 12:43:23 +00:00
Marek Habersack 2416d13727 2007-08-08 Marek Habersack <[email protected]>
* SessionDictionary.cs: do not use lock (this), replace it
	with lock (this_object), where this_object is an instance
	variable. Prevents deadlocks in situation when external code locks
	on the class instance.
2007-08-08  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: do not use lock (this), replace it
	with lock (this_object), where this_object is an instance
	variable. Prevents deadlocks in situation when external code locks
	on the class instance.
2007-08-08  Marek Habersack  <[email protected]>

	* StaticSiteMapProvider.cs, HttpApplicationFactory.cs,
	HttpStaticObjectsCollection.cs, SiteMapProvider.cs,
	XmlSiteMapProvider.cs, HttpApplication.cs, CapabilitiesLoader.cs,
	TimeoutManager.cs: do not use lock (this), replace it with lock
	(this_object), where this_object is an instance	variable. Prevents
	deadlocks in situation when external code locks on the class
	instance.

svn path=/trunk/mcs/; revision=83648
2007-08-08 09:36:02 +00:00
Gert Driesen bd9f2b3075 Undo
svn path=/trunk/mcs/; revision=76849
2007-05-07 16:32:12 +00:00
Gert Driesen 912ba9c912 * PagesConfigurationHandler.cs: To match MS, silently ignore child
nodes.

svn path=/trunk/mcs/; revision=76847
2007-05-07 16:22:55 +00:00
Marek Habersack 8f217b10af 2007-05-01 Marek Habersack <[email protected]>
* HttpCapabilitiesBase.cs: move the User-Agent code to a separate
	internal method.

2007-05-01  Marek Habersack  <[email protected]>

	* HtmlForm.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

2007-05-01  Marek Habersack  <[email protected]>

	* BaseValidator.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

2007-05-01  Marek Habersack  <[email protected]>

	* PageParser.cs: clientTarget comparisons must be case-insensitive


svn path=/trunk/mcs/; revision=76522
2007-05-01 11:01:22 +00:00
Marek Habersack 6b2025f651 2007-04-10 Marek Habersack <[email protected]>
* CacheDependency.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

2007-04-10  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

	* HttpApplicationFactory.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.
	App_Code, App_Browsers and App_GlobalResources watchers must watch
	for events with the '*' mask so that they can notice events
	related to subdirectory creation/deletion.
	Watch for subdirectory events with the App_Code watcher.

2007-04-10  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: add NotifyFilter.Size to the
	watcher notification filter to enable file modification events
	with Linux inotify.

svn path=/trunk/mcs/; revision=75568
2007-04-10 10:42:02 +00:00
Adar Wesley fbb0619f01 2007-03-22 Adar Wesley <[email protected]>
* BrowserCapabilities.cs: Added implementation for all capabilities.
        changed implementation to throw when capability is not defined in browscaps.ini.

        * CapabilitiesLoader.cs: fixed parent resultion bug.  added internal support for
        browser and browsers capabilities.

2007-03-22  Adar Wesley <[email protected]>

        * HttpCapabilitiesBase.cs: implemented all capabilities.  Capabilities
        still throw if there is no value in browscaps.ini and the property is called.

2007-03-22  Adar Wesley <[email protected]>

        * HttpCapabilitiesBase.cs: support for implementation of new
        capabilities.


svn path=/trunk/mcs/; revision=74819
2007-03-22 16:49:15 +00:00
Marek Habersack f2f8823517 2007-03-19 Marek Habersack <[email protected]>
* WebConfigurationSettings.cs: another fix to the
	GetConfigFromFileName logic - the passed "filepath" must not end
	with a slash when called recursively, or it will lead to endless
	recursion.

svn path=/trunk/mcs/; revision=74578
2007-03-19 00:06:33 +00:00
Marek Habersack 988df7eff0 2007-03-18 Marek Habersack <[email protected]>
* UrlUtils.cs: GetDirectory always returns a path with trailing
	slash.

2007-03-18  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: fix the GetConfigFromFileName
	directory logic.

2007-03-18  Marek Habersack  <[email protected]>

	* BaseParser.cs: fix BaseVirtualDir to always return app-absolute
	paths.

svn path=/trunk/mcs/; revision=74574
2007-03-18 22:12:53 +00:00
Gert Driesen b4ebc89dd7 * PagesConfiguration.cs: Stop swallowing configuration exceptions.
* PagesConfigurationHandler.cs: Provide better exception message for
invalid 'enableSessionState' value.

svn path=/trunk/mcs/; revision=73056
2007-02-17 14:59:47 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Miguel de Icaza de8ec1f8d3 2007-01-18 Miguel de Icaza <[email protected]>
* HttpCapabilitiesBase.cs: Fix the build, I kept an old code path
	for 1.0

svn path=/trunk/mcs/; revision=71285
2007-01-18 16:00:28 +00:00
Konstantin Triger 8493d1366a consider Page's ClientTarget for BrowseCaps
svn path=/trunk/mcs/; revision=71266
2007-01-18 15:11:16 +00:00
Eyal Alalouf c694b23e35 Grasshopper now supports remoting.
svn path=/trunk/mcs/; revision=63760
2006-08-15 13:43:19 +00:00
Andrew Skiba ff2b4c3b93 ChangeLog for r:62307
svn path=/trunk/mcs/; revision=62308
2006-07-06 11:50:44 +00:00
Andrew Skiba 999b061aeb keep the inner exception
svn path=/trunk/mcs/; revision=62113
2006-06-28 15:18:22 +00:00
Gonzalo Paniagua Javier 985c7435d3 2006-03-19 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TempFileStream.cs: a FileStream that removes the file once
	it is disposed.
	* System.Web/HttpRequest.cs: support for writing request data to on-disk
	files if the request is longer than the threshold specified in the
	configuration files. In mono this will work for 1.x and 2.0, while with
	MS this only works for 2.0.
	* System.Web.dll.sources: add TempFileStream.cs
	* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: removed
	a bunch of useless stuff for 1.x.


svn path=/trunk/mcs/; revision=58170
2006-03-19 23:16:17 +00:00
Chris Toshok af89946383 In System.Web.Configuration.Internal:
2006-02-28  Chris Toshok  <[email protected]>

	* IInternalConfigWebHost.cs: corcompare work.

In System.Web.Configuration_2.0:
2006-02-28  Chris Toshok  <[email protected]>

	* BuildProviderAppliesTo.cs, PagesToCountAction.cs: nuke.

In System.Web.Profile:
2006-02-28  Chris Toshok  <[email protected]>

	* ProfileBase.cs: corcompare work.

	* SqlProfileProvider.cs: add stubbed out file.

In System.Web.SessionState:
2006-02-28  Chris Toshok  <[email protected]>

	* SessionStateActions.cs: rename SessionStateActionFlags to this.

	* ISessionIDManager.cs: rename ISessionIDModule to this.

	* IStateRuntime.cs: corcompare work.

In System.Web.Security:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthentication.cs: corcompare work.

	* MembershipCreateUserException.cs: same.

	* MembershipPasswordException.cs: same.

	* AnonymousIdentificationModule.cs: same.

In System.Web.Configuration:
2006-02-28  Chris Toshok  <[email protected]>

	* FormsAuthPasswordFormat.cs: ifdef out the [Serializable] in the
	2.0 case.

In System.Web.Hosting:
2006-02-28  Chris Toshok  <[email protected]>

	* IAppDomainFactory.cs: corcompare work.

	* IAppManagerAppDomainFactory.cs: same

	* IISAPIRuntime.cs: same.

In System.Web.Management:
2006-02-28  Chris Toshok  <[email protected]>

	* SqlFeatures.cs: corcompare work

	* IRegiisUtility.cs: same.

	* WebEventFormatter.cs: same.

	* RuleFiringRecord.cs: same.

	* SessionStateType.cs: same.

	* WebApplicationInformtion.cs: same.

	* EventNotificationType.cs: same.

	* WebBaseEvent.cs: same.

	* IRegisterCreateITypeLib.cs: nuke


svn path=/trunk/mcs/; revision=57413
2006-02-28 18:56:23 +00:00
Gonzalo Paniagua Javier 6be4ffb621 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration_2.0/Compiler.cs:
	* System.Web.Configuration_2.0/CompilerCollection.cs: removed
	compatibility code.

	* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
	GetProviderForExtension().

	* System.Web.UI/IThemeResolutionService.cs: this is now added to the
	sources file, but some other stuff does not compile yet as the
	interface changed after the beta.

	* System.Web.UI/ObjectConverter.cs: removed extra attribute.

	* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.

	* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
	commented the 'good' stuff out, since other files need to be fixed
	too.

	* System.Web.dll.sources: add new files.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs: only
	compile these for pre-2.0 assemblies.

	* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
	comments/TODO.
	* System.Web.Hosting/HostingEnvironment.cs: initialize the
	default value for VirtualPathProvider.

	* System.Web.Compilation/CompilerType.cs: implemented.

	* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.

	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
	instance creation code.

	* System.Web.Compilation/ClientBuildManager.cs: implemented some of
	its methods. Not yet ready.

	* System.Web.Compilation/BuildManager.cs: the more interesting methods
	are implemented now.

	* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
	in case of error.

	* System.Web.Compilation/BuildProvider.cs: implemented the
	Get*Compiler* protected methods.


svn path=/trunk/mcs/; revision=56781
2006-02-10 23:43:09 +00:00
Chris Toshok 0e8098088d 2006-02-01 Chris Toshok <[email protected]>
* CompilerCollection.cs: CONFIGURATION_2_0 => NET_2_0.

	* CompilationConfigurationHandler.cs: same.

	* Compiler.cs: same.

	* CompilationConfiguration.cs: same.


svn path=/trunk/mcs/; revision=56416
2006-02-01 20:13:24 +00:00
Konstantin Triger 0366dcd0ed TARGET_JVM changes to let the compilation pass with csc 1.1
svn path=/trunk/mcs/; revision=55205
2006-01-08 13:18:54 +00:00
Gonzalo Paniagua Javier 0bb5724e38 2005-12-22 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: patch by Cyrille Colin that sets the
	right application path even when MapPath fails. Closes bug #77044.


svn path=/trunk/mcs/; revision=54716
2005-12-22 03:26:28 +00:00
Gonzalo Paniagua Javier ba33dc2d20 2005-12-02 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: don't fail if <location> has more
	than one element. Fixes bug #76633.


svn path=/trunk/mcs/; revision=53841
2005-12-02 20:09:38 +00:00
Gonzalo Paniagua Javier 7510c8e3d4 2005-12-02 Gonzalo Paniagua Javier <[email protected]>
* HttpHandlersSectionHandler.cs:
	* HandlerFactoryConfiguration.cs: we need to use a copy of the parent
	mappings, otherwise we may remove mappings from the parent. Fix a typo
	when removing the item from the collection. Now LocateHandler searches
	first for this configuration mappings and then for the parent ones.
	Fixes (truly) bug #76842.


svn path=/trunk/mcs/; revision=53839
2005-12-02 19:01:47 +00:00
Gonzalo Paniagua Javier b581ac8cb0 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* HandlerFactoryConfiguration.cs: my previous patch broke the
	* order in which handlers are searched. This one fixes that,
	* while not breaking bug 76842 again.


svn path=/trunk/mcs/; revision=53743
2005-12-01 02:37:45 +00:00
Chris Toshok 3eb9cadf9d 2005-11-30 Chris Toshok <[email protected]>
* WebConfigurationSettings.cs (ReadSectionGroup): some
	CONFIGURATION_2_0 work.

	* CompilationConfigurationHandler.cs (ReadCompilers): change the
	NET_2_0 to CONFIGURATION_2_0.

	* CompilerCollection.cs: more ugly hacks for the
	2.0-without-config-2.0 case.  wrap this in #if !CONFIGURATION_2_0
	and make it public in the NET_2_0 case (so it can be used to keep
	the config 2.0 stuff building).

	* Compiler.cs: same.
	
	* CompilationConfiguration.cs (Init): change the #if NET_2_0 to
	#if CONFIGURATION_2_0.


svn path=/trunk/mcs/; revision=53737
2005-12-01 01:33:31 +00:00
Gonzalo Paniagua Javier eeb8e0142d 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* HandlerFactoryConfiguration.cs: copy the parents' mappings
	into the new one to allow for removing without affecting the
	parent configuration mappings. Fixes bug #76842.


svn path=/trunk/mcs/; revision=53610
2005-11-29 01:12:19 +00:00
Chris Toshok 5c7dfc3f92 2005-11-24 Chris Toshok <[email protected]>
* AssemblyInfo.cs: nuke this, it's in System.Web.Configuration_2.0
	now.


svn path=/trunk/mcs/; revision=53470
2005-11-24 23:59:05 +00:00
Chris Toshok 28faff3bd6 2005-11-19 Chris Toshok <[email protected]>
* CompilationConfigurationHandler.cs (ReadCompilers): call
	CompilerCollection.Add in the 2.0 case, as it doesn't expose a
	setter indexer.

	* CompilationConfiguration.cs: need this to keep things compiling,
	even though CompilationConfiguration doesn't need to be used in
	the 2.0 case.


svn path=/trunk/mcs/; revision=53268
2005-11-19 07:03:55 +00:00