Commit Graph
584 Commits
Author SHA1 Message Date
Marek Habersack f0d6c8fe78 2008-10-03 Marek Habersack <[email protected]>
* TemplateParser.cs: make sure the generated class name is a valid
	language independent identifier. Fixes bug #431622

2008-10-03  Marek Habersack  <[email protected]>

	* BuildManager.cs: if an assembly fails to build out of a batch of
	files, extract the virtual path that was requested by the client
	and attempt to compile it alone.

svn path=/trunk/mcs/; revision=114732
2008-10-03 07:53:06 +00:00
Marek Habersack 45c4d688ac 2008-09-29 Marek Habersack <[email protected]>
* OutputCacheModule.cs: invalidate cache entries when the
	corresponding source file (.as?x) is recompiled by hooking up to
	System.Web.Compilation.BuildManager's build cache entry removal
	event. Fixes bug #429926

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

	* BuildManagerRemoveEntryEventHandler.cs: added

	* BuildManager.cs: added a static event to notify interested
	parties when an entry is removed from the buildCache. Fixes bug
	#429926.

svn path=/trunk/mcs/; revision=114369
2008-09-29 06:53:14 +00:00
Marek Habersack 08f267f0ce 2008-09-26 Marek Habersack <[email protected]>
* BuildManager.cs: when creating a cache entry for a virtual path,
	make it depend on a list of files built recursively from all the
	virtual path's dependencies. Fixes bug #430114

svn path=/trunk/mcs/; revision=114205
2008-09-26 16:46:40 +00:00
Andreia Gaita d241e505a9 * AspParser.cs: When parsing text which contain xml tags that resemble
the end string, append the original text instead of the end string,
because the casing might not match between the two. Fixes #320445

2008-09-24  Andreia Gaita <[email protected]> 

svn path=/trunk/mcs/; revision=113972
2008-09-24 15:56:08 +00:00
Marek Habersack 3637dd84a4 2008-09-23 Marek Habersack <[email protected]>
* AspGenerator.cs: ignore whitespace only if it's between
	CodeRender blocks, not between DataBinding and
	CodeRenderExpression.

svn path=/trunk/mcs/; revision=113844
2008-09-23 15:28:49 +00:00
Marek Habersack 6c416d1a76 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs: CreatePropertyBuilder now correctly processes
	property names with prefixes (e.g. 'prefix:PropertyName'). 
	Original, parsed, tag name is stored to properly handle closing
	tags.

2008-09-01  Marek Habersack  <[email protected]>

	* AspGenerator.cs:
	CloseControl uses ControlBuilder's OriginalTagName property,
	should the property/tag name be prefixed with 'prefix:'

svn path=/trunk/mcs/; revision=112003
2008-09-01 01:33:27 +00:00
Marek Habersack d53ea4d4f6 2008-09-01 Marek Habersack <[email protected]>
* TemplateControl.cs: changed the way in which ParseControl is
	implemented for the 2.0+ profile. Still not quite there, but
	better and closer to .NET

2008-09-01  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: AssignAppRelativeVirtualPath works with
	null/empty parser.InputFile now.

	* AspGenerator.cs: AddTypeToCache works checks whether inputFile
	is null or empty and does not assume the dependencies ArrayList is
	present.

	* CachingCompiler.cs: expect the dependencies ArrayList to be null
	or empty.



svn path=/trunk/mcs/; revision=111998
2008-08-31 23:30:52 +00:00
Marek Habersack 90e612afe1 2008-08-31 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
	Templates are processed before anything else, so that children
	which may depend on parent's templates can get access to them.

2008-08-31  Marek Habersack  <[email protected]>

	* Control.cs: improved FillControlCache

	* ControlBuilder.cs:
	Added a cache for children of TemplateBuilder, used later in
	TemplateControlCompiler.

svn path=/trunk/mcs/; revision=111990
2008-08-31 17:05:28 +00:00
Marek Habersack 27ece7a9b2 2008-08-31 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for the LinePragmas directive
	attribute.

	* ControlBuilder.cs: if this instance is a TemplateBuilder do not
	call MyNamingContainer, so that our own ContainerType can be used
	as the binding container (if present).

2008-08-31  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: trust builder.BindingContainerType
	in the 2.0+ profile - do not use container properties to detect
	the type.
	Added a helper method, compiled only when DEBUG is defined, to
	generate Console.WriteLine CodeDOM calls.

	* BaseCompiler.cs: add line pragmas only if enabled for the
	current file.


svn path=/trunk/mcs/; revision=111983
2008-08-31 01:41:14 +00:00
Marek Habersack 0a9b769f2c 2008-08-29 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: properly handle profile base class
	specifications which refer to full type names.

svn path=/trunk/mcs/; revision=111916
2008-08-29 13:07:49 +00:00
Marek Habersack eec9b5377d 2008-08-26 Marek Habersack <[email protected]>
* BuildManager.cs: use VirtualPathUtility.Combine in
	GetAbsoluteVirtualPath for non-rooted paths.

svn path=/trunk/mcs/; revision=111587
2008-08-26 00:14:14 +00:00
Marek Habersack dd480503c8 2008-08-19 Marek Habersack <[email protected]>
* ThemeDirectoryBuildProvider.cs: theme directory dependencies
	should use only virtual paths for CSS files. Fixes bug #397187

svn path=/trunk/mcs/; revision=110941
2008-08-19 12:54:17 +00:00
Marek Habersack 77822cc6e3 2008-08-18 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: process expression when they are
	used used in values of attributes without associated
	properties. Fixes bug #417883

	* ResourceExpressionBuilder.cs: added two overloads of
	CreateGetLocalResourceObject to encompass cases when the generated
	expression is not assigned to a property but rather used as a
	parameter to the SetAttribute method. Fixes bug #417883

svn path=/trunk/mcs/; revision=110844
2008-08-18 19:49:08 +00:00
Marek Habersack 1a18b9b38b 2008-08-14 Marek Habersack <[email protected]>
* AspGenerator.cs: do not ignore directives inside HTML comments.

svn path=/trunk/mcs/; revision=110516
2008-08-14 18:42:15 +00:00
Marek Habersack 369115ab9c 2008-08-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: .NET allows for whitespace between
	the directive start (<%) and the directive type character. Added
	code which copes with such situations correctly.

svn path=/trunk/mcs/; revision=110441
2008-08-14 00:35:55 +00:00
Marek Habersack 9e61c2dbea 2008-08-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: rewrote the Bind regular expressions
	to allow for single quotes and an optional second parameter to the
	"call".
	Added an Eval regular expression.
	Both Bind and Eval calls in data expressions are now converted
	into a CodeDOM method invocations, to allow support for possible
	languages which use a different call format (previously code
	snippets were used)
	Added a method to construct the Eval invoke expression which
	simplifies code in other areas.

2008-08-13  Marek Habersack  <[email protected]>

	* TemplateBuilder.cs: use a generic List to store the bindings on
	2.0+

2008-08-13  Marek Habersack  <[email protected]>

	* HttpException.cs: do not use StringBuilder.AppendFormat when
	there is no need.

svn path=/trunk/mcs/; revision=110385
2008-08-13 17:50:53 +00:00
Marek Habersack 6e26f62000 2008-08-06 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: handle situation when a property of
	a control for which we're generating the code is of type
	'Type'. In such case, variable.GetType() will return
	System.MonoType, which must not be output to the generated
	source. Thanks to Robert Jordan for giving the idea for the hack!

svn path=/trunk/mcs/; revision=109773
2008-08-06 18:16:42 +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
Marek Habersack 34a5f961ca Revert r106068 and reopen bug #400807. The revision broke more than it fixed and there exists a workaround for the bug metioned before
svn path=/trunk/mcs/; revision=106297
2008-06-20 10:23:44 +00:00
Marek Habersack 324596317d 2008-06-18 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added

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

	* System.Web.dll.sources: added
	System.Web.Caching/SqlCacheDependency.cs

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

	* BasePartialCachingControl.cs: implemented the CachePolicy
	property.

	* UserControl.cs: implemented the CachePolicy property.

	* ControlCachePolicy.cs: implemented missing properties and
	methods.

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

	* TemplateControlCompiler.cs: AddChildCall properly processes the
	PartialCachingAttribute now.

svn path=/trunk/mcs/; revision=106078
2008-06-18 01:09:53 +00:00
Marek Habersack 9221743e53 2008-06-17 Marek Habersack <[email protected]>
* AspTokenizer.cs: Added FIRST_TOKEN and LAST_TOKEN symbols to the
	internal Token class.

	* AspParser.cs: GetServerTag must use parsed identifiers when
	gathering verbatim code strings.
	GetVerbatim must not add to the text tokens which aren't
	characters. Fixes bug #400807

svn path=/trunk/mcs/; revision=106068
2008-06-17 21:31:32 +00:00
Marek Habersack 5a8002bc51 2008-06-11 Marek Habersack <[email protected]>
* BuildManager.cs: if an error occurs while assigning the
	requested path to an assembly builder inside BuildAssembly, throw
	an exception.

svn path=/trunk/mcs/; revision=105637
2008-06-11 19:38:13 +00:00
Marek Habersack cba27ffb42 2008-06-11 Marek Habersack <[email protected]>
* BaseCompiler.cs: do not generate #line pragma for code which
	exists only in memory.

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

	* TemplateControl.cs: make sure 'type' isn't null in LoadControl
	before attempting to use it.

svn path=/trunk/mcs/; revision=105510
2008-06-10 22:43:10 +00:00
Marek Habersack 0907975508 2008-05-30 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
	DataControlFieldCollection.cs, DataControlField.cs,
	PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
	event accessors (to avoid locks).

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

	* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
	DefaultAuthenticationModule.cs, MembershipProvider.cs,
	WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
	RoleManagerModule.cs: do not use synthetized event accessors (to
	avoid locks).

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

	* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
	TraceContext.cs: do not use synthetized event accessors (to avoid
	locks).

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

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* ProfileModule.cs: do not use synthetized event accessors (to
	avoid locks).

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

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
	use synthetized event accessors (to avoid locks).

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

	* ClientBuildManager.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* CacheDependency.cs: do not use synthetized event accessors (to
	avoid locks).


svn path=/trunk/mcs/; revision=104569
2008-05-30 22:20:14 +00:00
Marek Habersack f0d27ade04 2008-05-28 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for #pragma checksum

2008-05-28  Marek Habersack  <[email protected]>

	* AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
	for #pragma checksum

svn path=/trunk/mcs/; revision=104321
2008-05-28 19:42:06 +00:00
Marek Habersack 2bdd5b5f38 Do not parse code render directives inside comments.
svn path=/trunk/mcs/; revision=103543
2008-05-20 02:20:29 +00:00
Marek Habersack d807258f66 2008-05-19 Marek Habersack <[email protected]>
* AspGenerator.cs: if the last tag parsed was a code directive,
	ignore any accumulated text if it's 100% whitespace.

svn path=/trunk/mcs/; revision=103541
2008-05-20 01:43:28 +00:00
Marek Habersack a366e3b759 2008-05-15 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: treat AssemblyFoundry in a special way
	when adding a foundry to the array list. AssemblyFoundry instances
	are stacked at the end of the array list in a LIFO manner. That
	way TagNameFoundry takes precedence over AssemblyFoundry should
	the two contain the same type.

2008-05-14  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: do not add the same entry to a
	hashtable twice



svn path=/trunk/mcs/; revision=103243
2008-05-15 01:32:36 +00:00
Marek Habersack 480a1be6f7 2008-05-07 Marek Habersack <[email protected]>
* TemplateParser.cs: added a stack of include directories, to
	properly resolve file relative paths when the #include file=""
	directive is used. Fixes bug #324536

2008-05-07  Marek Habersack  <[email protected]>

	* AspGenerator.cs: push the include file directory to the parser
	include directory stack and pop it after parsing the include, so
	that the relative file paths are resolved correctly. Fixes bug
	#324536

svn path=/trunk/mcs/; revision=102729
2008-05-07 14:48:46 +00:00
Marek Habersack 001579d033 2008-05-06 Marek Habersack <[email protected]>
* Calendar.cs: do not create dateInfo in the constructor - culture
	might be not set yet at this point. Fixes bug #323566
	Added a private property, DateInfo, which creates the dateInfo
	when requested.

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

	* TemplateControlCompiler.cs: compatibility - added the
	__stringResource static field to the generated class and a call to
	SetStringResourcePointer to the FrameworkInitialize method.

	* PageCompiler.cs: __fileDependencies should also be defined in
	the 1.x profile.
	Page properties assigned in the page directive should be set
	inside BuildControlTree in the 2.0 profile.


svn path=/trunk/mcs/; revision=102573
2008-05-05 23:38:47 +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
Marek Habersack 3a0d0f25ee 2008-04-28 Marek Habersack <[email protected]>
* BuildManager.cs: ignore bad assemblies in the bin/
	directory. Fixes bug #315816

svn path=/trunk/mcs/; revision=102035
2008-04-28 13:46:04 +00:00
Marek Habersack cf7acfe771 2008-04-26 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: the Parse () method should reuse the
        previously opened TextReader when calling generator.Parse (), to
        avoid opening the input file multiple times. Fixes bug #383881

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

        * VirtualPath.cs: added a new property, PhysicalPath.


svn path=/trunk/mcs/; revision=101897
2008-04-26 00:37:41 +00:00
Marek Habersack 4f33f6242d 2008-04-25 Marek Habersack <[email protected]>
* AspGenerator.cs: put some safeguards in, to make sure streams
	are closed in any case.

svn path=/trunk/mcs/; revision=101888
2008-04-25 22:01:59 +00:00
Marek Habersack bf6db8d3c5 2008-04-24 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: added a new GetComponentType overload
	which returns component source and a boolean flag whether the
	control was registered from web.config (2.0).

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

	* RootBuilder.cs: when registering a custom control, add its path
	to the parser dependencies. Fixes bug #377915
	In the 2.0 profile, if the custom control being used was
	registered from web.config and is found in the same directory what
	the file being parsed, throw an exception. This behavior matches
	MS.NET.

	* TemplateParser.cs: added new VirtualPath property, which stores
	the virtual path to the file being parsed.

	* PageParser.cs: set the VirtualPath property in the 2.0 profile
	when constructing the parser.

svn path=/trunk/mcs/; revision=101623
2008-04-23 23:26:04 +00:00
Marek Habersack acb15b6aa4 2008-04-22 Marek Habersack <[email protected]>
* BuildManager.cs: ignore also arbitrary exceptions when
	batch-building an assembly. Fixes bug #323556

svn path=/trunk/mcs/; revision=101493
2008-04-22 21:33:34 +00:00
Marek Habersack 4b7f0e3b79 2008-04-19 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: refactoring - move code between
	constructors, reader should be set before initializing the rest of
	the object. Fixes bug #381364

	* TemplateParser.cs: RegisterCustomControl must use absolute
	virtual path when querying the virtual path provider for
	file. Fixes bug #381364
2008-04-19  Marek Habersack  <[email protected]>

	* BuildManager.cs: use absolute virtual path to query the
	VirtualPathProvider for path existence.
	When ASP.NET is self-hosted, force
        non-batch compilation. Fixes bug #380985

	* ILocation.cs: added a new property, FileText.
	
	* Location.cs: added implementation of the ILocation.FileText
	property.

	* ParseException.cs: use the new ILocation.FileText, if defined,
	to get the file source.
	
	* AspGenerator.cs: when TextReader is present, use it to read with
	the VirtualPathProvider to read the file source. Fixes bug #381364

	* AspParser.cs: added a new property FileText to provide the file
	contents which was read in the constructor.


svn path=/trunk/mcs/; revision=101177
2008-04-18 22:35:47 +00:00
Marek Habersack e743ab6055 2008-04-18 Marek Habersack <[email protected]>
* BuildManager.cs: when any parsing error occurs during batch
	building, ignore the file which caused it. If the file with
	parsing error is the one requested by user, throw the parsing
	exception. Fixes bug #323742

svn path=/trunk/mcs/; revision=101115
2008-04-18 12:59:55 +00:00
Marek Habersack 58a3b00cd8 2008-04-15 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: dispose of streams the way it should
        be done.

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

        * MailDefinition.cs: dispose of streams the way it should
        be done.

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

        * HttpRequest.cs: dispose of streams the way it should
        be done.

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

        * CachingCompiler.cs: dispose of streams the way it should
        be done.


svn path=/trunk/mcs/; revision=100690
2008-04-14 22:45:44 +00:00
Marek Habersack 59871a0155 2008-04-09 Marek Habersack <[email protected]>
* BuildManager.cs: HttpException, let the CompilationException pass through. Fixes
	bug #377904

svn path=/trunk/mcs/; revision=100277
2008-04-09 20:58:43 +00:00
Marek Habersack a409c4f567 2008-04-09 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web.Compilation/AppWebReferencesCompiler.cs

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

	* HttpApplicationFactory.cs: compile web references. Fixes bug
	#377934

	* VirtualPath.cs: added a method to convert a physical path into a
	virtual one, if the physical path is under the application root.

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

	* BuildManager.cs: refactoring - the SetCommonParameters and
	GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
	and made internal static.

	* AppWebReferencesCompiler.cs: added - support for compiling of
	wsdl files found in the App_WebResources directory. Fixes bug
	#377934

	* BuildProvider.cs: refactoring - moved the SetCommonParameters
	and GetDefaultCompilerTypeForLanguage to BuildManager

	* WsdlBuildProvider.cs: added the CodeCompilerType property
	override.
	Namespace for the generated code is taken from the wsdl path,
	relative to App_Code or App_WebReferences, if the wsdl in question
	is under on of those directories.
	GenerateCode uses OpenReader () so that VirtualPathProvider works
	for wsdl files.

	* AssemblyBuilder.cs: Cope with virtualPath being null in BuildAssembly.
	Reference assemblies specified in web.config when linking.



svn path=/trunk/mcs/; revision=100266
2008-04-09 20:10:08 +00:00
Marek Habersack 1f30cb6369 2008-04-09 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
	when generating source from code unit and use
	WebEncoding.FileEncoding when adding code files to the unit. Fixes
	bug #377938

svn path=/trunk/mcs/; revision=100223
2008-04-09 12:17:25 +00:00
Marek Habersack 4c10acbdfe 2008-04-08 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: add loaded assembly to the
	BuildManager's list of referenced assemblies instead to
	WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915

	* BuildManager.cs: Added an internal method AddToReferencedAssemblies.
	Remove invalidated entry from
	WebConfigurationManager.ExtraAssemblies.

svn path=/trunk/mcs/; revision=100101
2008-04-08 13:40:05 +00:00
Marek Habersack 1e9e697cc9 2008-04-07 Marek Habersack <[email protected]>
* VirtualPath.cs: added

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

	* System.Web.dll.sources: added System.Web/VirtualPath.cs

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

	* DefaultVirtualDirectory.cs: fixed the constructor - derive
	virtual directory from the original path.
	AddDirectories and AddFiles combine the virtual paths properly
	now.

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

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

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

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

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

	* AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.

	* BuildManager.cs: switched to VirtualPath instead of a string
	path in several methods.
	Batch compilation is turned off if we have a custom
	VirtualPathProvider which implements only the VirtualFile and
	falls back to DefaultVirtualDirectory implementation for directory
	access.

	* GenericBuildProvider.cs: AddCodeFile accepts a virtual path.

	* BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.

	* AssemblyBuilder.cs: constructors use the new VirtualPath class
	now.
	AddCodeFile can use the VirtualPathProvider if necessary now.
	BuildAssembly overloads accept VirtualPath parameter instead of a
	string path now.

	* TemplateBuildProvider.cs: GetCodeBehindSource returns the
	virtual path now.

svn path=/trunk/mcs/; revision=100063
2008-04-07 23:00:16 +00:00
Marek Habersack 4bfa67104b 2008-03-31 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: implemented support for AppInitialize (a
	static method in any class defined in the App_Code source files),
	ran just after the App_Code assemblies are compiled in order to
	perform any application initialization actions.

svn path=/trunk/mcs/; revision=99404
2008-03-31 10:03:33 +00:00
Marek Habersack 3bcc352c6d 2008-03-27 Marek Habersack <[email protected]>
* BuildManager.cs: AssertVirtualPathExists now queries the
	VirtualPathProvider for path existence if physical path check
	fails, before throwing the 404 exception.

2008-03-27  Marek Habersack  <[email protected]>

	* DefaultVirtualPathProvider.cs: support relative virtual paths in
	all the methods.

	* VirtualPathProvider.cs: FileExists should chain to the previous
	handler, if present.

2008-03-27  Marek Habersack  <[email protected]>

	* Page.cs: added an implementation of the ClientQueryString
	property.

2008-03-27  Marek Habersack  <[email protected]>

	* HttpRequest.cs: make UrlComponents internal.

	* HttpContext.cs: added support for resource provider factories.

svn path=/trunk/mcs/; revision=99122
2008-03-27 13:50:26 +00:00
Marek Habersack 58254fd034 2008-03-13 Marek Habersack <[email protected]>
* HttpApplication.cs: use HttpRuntime.CaseInsensitive instead of
	own IsRunningOnWindows.

	* HttpRuntime.cs: introduce two static properties -
	CaseInsensitive (set to true whenever the environment is
	case-insensitive - i.e. MONO_IOMAP="all" or MONO_IOMAP="case", or
	running on Windows) and RunningOnWindows.
2008-03-13  Marek Habersack  <[email protected]>

	* BuildManager.cs: if we're running in a case-insensitive
	environment, use case-insensitive comparer for the build caches
2008-03-13  Marek Habersack  <[email protected]>

	* ApplicationHost.cs: use HttpRuntime.CaseInsensitive when
	checking whether we're running in a case-insensitive environment.

svn path=/trunk/mcs/; revision=98199
2008-03-13 19:45:52 +00:00
Marek Habersack da3e3681c9 2008-02-29 Marek Habersack <[email protected]>
* BuildManager.cs: implement a mechanism to ignore certain virtual
	paths when batch compiling. Helps applications which may have
	.as?x files which won't work on mono for various reasons (one such
	sample is mojoportal).

svn path=/trunk/mcs/; revision=96982
2008-02-29 16:17:58 +00:00
Marek Habersack dd084c5949 2008-02-28 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make sure that data-bound attribute
	assignments properly convert the Bind expression to the Eval
	one. Fixes bug #362039

svn path=/trunk/mcs/; revision=96861
2008-02-28 11:50:46 +00:00
Marek Habersack 562fa7ef3a 2008-02-28 Marek Habersack <[email protected]>
* AspGenerator.cs: in 2.0+, aspx files which contain the Content
	controls can contain only them, whitespace and directives. Fixes
	bug #339747

svn path=/trunk/mcs/; revision=96837
2008-02-28 00:08:23 +00:00