691 Commits
Author SHA1 Message Date
Marek Habersack aac871a351 2010-05-16 Marek Habersack <[email protected]>
* BuildManager.cs: do not cache referenced assemblies until it's
	safe.

2010-05-16  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: let BuildManager know when it's safe
	to cache referenced assemblies.

svn path=/trunk/mcs/; revision=157391
2010-05-16 01:55:10 +00:00
Marek Habersack fbbf51a5e4 2010-05-14 Marek Habersack <[email protected]>
* AssemblyInfo.cs: this assembly should be signed with winfx.pub

2010-05-15  Marek Habersack  <[email protected]>

	* HttpResponse.cs: added internal Context property

	* HttpRequest.cs: added a setter to the internal Context property

	* HttpContext.cs: set request and response Context properties to
	'this' in the constructor.

2010-05-15  Marek Habersack  <[email protected]>

	* Control.cs: implemented 4.0 GetRouteUrl overloads and
	GetUniqueIDRelativeTo

2010-05-15  Marek Habersack  <[email protected]>

	* RouteValueExpressionBuilder.cs: added

	* RouteUrlExpressionBuilder.cs: implemented

svn path=/trunk/mcs/; revision=157378
2010-05-15 02:29:09 +00:00
Marek Habersack f70f49d3c3 Fixlet
svn path=/trunk/mcs/; revision=157284
2010-05-13 01:18:36 +00:00
Marek Habersack 20d0038bd1 commit e25cece56ee428a8ace8979e31ab2c0c077be4f5
Author: Marek Habersack <[email protected]>
Date:   Wed May 12 23:27:21 2010 +0200

    2010-05-12  Marek Habersack  <[email protected]>

    	* HttpApplicationFactory.cs: when initializing new application
    	type, make sure to call pre-application start methods.

    2010-05-12  Marek Habersack  <[email protected]>

    	* BuildManager.cs: implemented a 4.0 feature - pre-application
    	start methods.

svn path=/trunk/mcs/; revision=157266
2010-05-12 21:28:40 +00:00
Marek Habersack 71f8b16af6 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 methods GetObjectFactory, GetCachedBuildDependencySet and properties
	BatchCompilationEnabled, TargetFramework

svn path=/trunk/mcs/; revision=156945
2010-05-07 23:04:51 +00:00
Marek Habersack fc9dca9970 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 method AddReferencedAssembly.

svn path=/trunk/mcs/; revision=156944
2010-05-07 23:04:40 +00:00
Marek Habersack d6a7ab5426 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 method GetGlobalAsaxType.

svn path=/trunk/mcs/; revision=156942
2010-05-07 23:04:20 +00:00
Marek Habersack 2d0ca9037e 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs: implemented 4.0 methods {Create,Read}CacheFile.
	Fixed signature of the GetVirtualPathDependencies method.

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

	* BuildManagerCacheFiles.cs: added - tests for
	BuildManager.{Create,Read}CacheFile

svn path=/trunk/mcs/; revision=156941
2010-05-07 23:04:10 +00:00
Marek Habersack 3c944e50eb 2010-04-29 Marek Habersack <[email protected]>
* AppResourcesAssemblyBuilder.cs: when running on windows,
	SetAlPath must return al.exe path with a trailing space, or
	otherwise the process won't start. Fixes bug #600691

svn path=/trunk/mcs/; revision=156382
2010-04-29 00:33:44 +00:00
Marek Habersack 3f81315ae9 2010-04-12 Marek Habersack <[email protected]>
* PageCompiler.cs: if EnableViewStateMac is set in the page
	source, generate relevant code.

2010-04-12  Marek Habersack  <[email protected]>

	* PageParser.cs: if EnableViewStateMac option is present in the
	directive, remember it for later use by the compiler.

	* Page.cs: initialize EnableViewStateMac with the default read
	from the config.

svn path=/trunk/mcs/; revision=155262
2010-04-12 19:37:54 +00:00
Gonzalo Paniagua Javier c4b08a1fc0 undo
svn path=/trunk/mcs/; revision=154498
2010-03-30 21:22:16 +00:00
Gonzalo Paniagua Javier 4ac0c2f561 2010-03-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/PageParser.cs:
	* System.Web.UI/Page.cs:
	* System.Web.Compilation/PageCompiler.cs: default for
	EnableViewStateMac is true. Allow setting it from a @Page
	directive.


svn path=/trunk/mcs/; revision=154493
2010-03-30 21:00:21 +00:00
Marek Habersack 4828e79cbd 2010-03-17 Marek Habersack <[email protected]>
* AspGenerator.cs, AspParser.cs, TemplateControlCompiler.cs, TagType.cs, CodeRenderBuilder.cs: implemented the new <%: %> 4.0 html-encoded code render expression.

svn path=/trunk/mcs/; revision=153793
2010-03-17 22:35:23 +00:00
Marek Habersack ea68682bed oops
svn path=/trunk/mcs/; revision=153211
2010-03-06 22:47:44 +00:00
Marek Habersack 2e5d3c0fb4 2010-03-06 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: AssignPropertyForResources localizes
	a property even if the Localized attribute is absent. If the
	attribute is present, it checks its IsLocalizable property to
	decide if localization should be performed. Fixes bug #585933

svn path=/trunk/mcs/; revision=153164
2010-03-06 00:28:52 +00:00
Marek Habersack e105f08673 2010-03-04 Marek Habersack <[email protected]>
* BuildManager.cs: do less work in the static constructor

2010-03-04  Marek Habersack  <[email protected]>

	* RuntimeHelpers.cs: added. Contains methods moved here from
	HttpRuntime, so that initialization sequence of various objects is
	independent of HttpRuntime.

2010-03-04  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: do less work in the static constructor. Most of
	the code was moved to System.Web.Util.RuntimeHelpers. Properties
	which have been moved: MonoVersion, RunningOnWindows,
	CaseInsensitive, IsDebuggingEnabled

Also:
	- hushed some compiler warnings
	- various classes now use RuntimeHelpers instead of HttpRuntime

svn path=/trunk/mcs/; revision=153038
2010-03-04 19:04:13 +00:00
Marek Habersack 07adce6380 2010-02-27 Marek Habersack <[email protected]>
* HttpRuntime.cs: added internal property DomainUnloading.

	* HttpApplication.cs: when app domain is unloading, catch
	ThreadAbortExceptions and reset the abort.

2010-02-27  Marek Habersack  <[email protected]>

	* BuildManager.cs: count only builds of updated files before
	unloading the app domain. Fixes bug #581459

svn path=/trunk/mcs/; revision=152600
2010-02-27 02:57:44 +00:00
Marek Habersack 2cf5d1a507 2010-02-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember now completely
	relies on TypeDescriptor and description providers to retrieve
	converter for a property. Fixes bug #578586
	If UrlPropertyAttribute is found for a member,
	GetExpressionFromString uses the preconverted value, if any, as
	parameter to HandleUrlProperty.

svn path=/trunk/mcs/; revision=152040
2010-02-19 01:51:06 +00:00
Marek Habersack c4a76e1dd9 2010-02-11 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: explicitly dispose all the streams and
	readers+writers in CompileResource.

2010-02-11  Marek Habersack  <[email protected]>

	* Web.config, Web.mono.config: added test role manager
	definition.

2010-02-11  Marek Habersack  <[email protected]>

	* RolesTest.cs: added a test for IsUserInRole. Patch from Tiaan
	Geldenhuys <[email protected]>, thanks!

2010-02-11  Marek Habersack  <[email protected]>

	* Roles.cs: IsUserInRole checks if username is null or empty
	before attempting to use it. Patch from Tiaan Geldenhuys
	<[email protected]>. thanks!

2010-02-11  Marek Habersack  <[email protected]>

	* System.Web_test.dll.sources: added
	mainsoft/NunitWeb/NunitWeb/TestRoleProvider.cs

2010-02-11  Marek Habersack  <[email protected]>

	* WebTest.cs: test environment setup enhancements. Contributed by
	Tiaan Geldenhuys <[email protected]>, thanks!

	* TestRoleProvider.cs: added. Contributed by Tiaan Geldenhuys
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151519
2010-02-11 14:15:55 +00:00
Marek Habersack f8064df3a7 2010-02-04 Marek Habersack <[email protected]>
* PreservationFile.cs: updated the BuildResulTypeCode enum

	* BuildManager.cs: LoadCompiled now adds all the assemblies built
	from the App_Code directory to the BuildManager.CodeAssemblies
	collection. Fixes bug #576810

svn path=/trunk/mcs/; revision=150802
2010-02-04 01:01:18 +00:00
Marek Habersack d08769539a 2010-01-19 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/App_GlobalResources/Resource1.resx
	and
	Test/mainsoft/NunitWebResources/TagWithExpressionWithinAttribute.aspx

2010-01-19  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #568631

2010-01-19  Marek Habersack  <[email protected]>

	* AspGenerator.cs: modified the runatServer regex to correctly
	match embedded server tags which end in a sequence like: "%>"/>
	Fixes bug #568631

svn path=/trunk/mcs/; revision=149855
2010-01-19 22:36:10 +00:00
Marek Habersack 25f343266c 2010-01-06 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: AddVirtualDir properly caches
	processed directories to prevent endless loops. Fixes bug #568366
	Patch from Hubert FONGARNAND <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=149116
2010-01-06 09:29:40 +00:00
Marek Habersack f8db965300 2010-01-05 Marek Habersack <[email protected]>
* PageCompiler.cs: improved CreatePropertyAssign, it doesn't
	always use CodePrimitiveExpression now.

svn path=/trunk/mcs/; revision=149089
2010-01-05 23:13:06 +00:00
Marek Habersack 4bbf4a541c 2010-01-05 Marek Habersack <[email protected]>
* BuildManager.cs: in GenerateAssembly, if compilation fails for
	the requested path and exception thrown is of type
	CompilationException, do not wrap it in HttpException, just
	rethrow.

	* AppResourcesCompiler.cs: the culture files dictionary is
	case-insensitive now. Otherwise culture files with culture name
	cased differently will cause overlapped i/o on response files
	while building satellite assemblies and, in effect, compilation
	will fail.

svn path=/trunk/mcs/; revision=149077
2010-01-05 12:13:22 +00:00
Marek Habersack 957ef23330 2009-12-14 Marek Habersack <[email protected]>
* BuildManager.cs: RemoveFailedAssemblies ignores warnings to
	avoid throwing exceptions when the requested virtual path
	compilation produces warnings and no errors. Fixes bug #561723

svn path=/trunk/mcs/; revision=148388
2009-12-14 14:14:53 +00:00
Marek Habersack 3190bde9ae 2009-12-14 Marek Habersack <[email protected]>
* AspParser.cs: PlainText should calculate the boundaries of
	text using character offset, not line offset. Fixes bug #562286
	InternalLineOffset and Internal properties need not exist.

	* AspGenerator.cs: AspParser inner parser constructor takes 5
	parameters now - accepts character offset of the current outer
	parser's position.

2009-12-14  Marek Habersack  <[email protected]>

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

svn path=/trunk/mcs/; revision=148378
2009-12-14 13:05:01 +00:00
Marek Habersack 93a5d53b63 2009-12-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember looks up
	member type converters using type description providers in
	addition to custom attributes.
	Result of GenerateInstance isn't cast to the target type if the
	type isn't public.

2009-12-08  Marek Habersack  <[email protected]>

	* TypeDescriptor.cs: AddProvider overloads must refresh the
	instance and type when called.
	If GetProvider (object) fails to look up provider for the passed
	instance, it attempts to look up provider for the instance's
	type.
	GetProvider (Type) looks for providers using all the parent types
	of the passed type if no provider for it is found.
	WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
	wrapped type, if present.

	* TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
	the value obtained from parent in GetTypeDescriptor.

2009-12-08  Marek Habersack  <[email protected]>

	* Type.cs: added overloads for the == and != operators (4.0).

svn path=/trunk/mcs/; revision=147889
2009-12-08 22:33:32 +00:00
Marek Habersack 9fdb0a4cb0 2009-11-13 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: if directive has empty string as a
	value and it represents a path, do not create a VirtualPath.

svn path=/trunk/mcs/; revision=146148
2009-11-13 15:42:25 +00:00
Marek Habersack 8b4e17d0d2 2009-11-10 Marek Habersack <[email protected]>
* TemplateParser.cs: AddImports is called from LoadConfigDefaults
	so that it reads configuration from the correct .config file (it
	needs to be called after this.VirtualPath has been
	initialized). Fixes an issue with MVC apps which put configuration
	in Views/web.config etc. Fixes bug #552457

	* ControlBuilder.cs, Page.cs: system.web/pages section is not
	confined to the top-level web.config

2009-11-10  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: path passed to OpenWebConfiguration
	from GetSection does not come from FindWebConfig.

2009-11-10  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: parser.Imports is a Dictionary <>/Hashtable
	now.

	* AspComponentFoundry.cs: system.web/pages section is not confined
	to the top-level web.config

svn path=/trunk/mcs/; revision=145831
2009-11-10 13:49:01 +00:00
Marek Habersack b40844116b More 1.1 code and NET_2_0 ifdefs removed
svn path=/trunk/mcs/; revision=145319
2009-11-03 20:19:37 +00:00
Marek Habersack ec7cd3f1c9 2009-11-03 Marek Habersack <[email protected]>
* Assembly.cs: GetSatelliteAssembly must catch
	AppDomain.LoadSatellite FileNotFoundException and attempt to load
	satellites from subdirectories of current assembly's
	directory. Fixes bug #548768

2009-11-03  Marek Habersack  <[email protected]>

	* AppResourcesCompiler.cs: put default culture resources in a
	separate collection, exposed by the DefaultCultureFiles property.

	* AppResourcesAssemblyBuilder.cs: compile the default assembly
	before the satellite ones. Use the default assembly as template
	for generation of the satellite ones.

svn path=/trunk/mcs/; revision=145280
2009-11-03 12:13:08 +00:00
Marek Habersack 60a179c054 2009-10-22 Marek Habersack <[email protected]>
* WsdlBuildProvider.cs: a different way to generate code from
	wsdl. Code is generated in the top-level namespace to match .NET

svn path=/trunk/mcs/; revision=144662
2009-10-22 18:32:35 +00:00
Marek Habersack 1e532930f2 2009-10-12 Marek Habersack <[email protected]>
* BuildManager.cs: make sure to construct correct physical path
	for every precompiled key in FixVirtualPaths. Fixes bug #546053

svn path=/trunk/mcs/; revision=143950
2009-10-12 10:49:39 +00:00
Marek Habersack 5c59801fff Performance improvements:
- made sure invariant culture is used with String.ToLower, String.ToUpper and String.Compare
- replaced all calls to CultureInfo.InvariantCulture with a reference to a static field System.Web.Util.Helpers.InvariantCulture

svn path=/trunk/mcs/; revision=143587
2009-10-07 00:10:03 +00:00
Gonzalo Paniagua Javier a6f0666908 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* BuildManager.cs: load/set the global resources assembly for
	precompiled and merged sites correctly.


svn path=/trunk/mcs/; revision=143093
2009-10-01 01:22:01 +00:00
Marek Habersack 64f7759495 2009-09-30 Marek Habersack <[email protected]>
* BuildManager.cs: if precompilation file contains virtual path
	with trailing slash (e.g. for themes), remove the slash. Fixes bug
	#541271

svn path=/trunk/mcs/; revision=142943
2009-09-29 23:24:48 +00:00
Marek Habersack d28ffb1680 2009-09-28 Marek Habersack <[email protected]>
* HttpContext.cs: GetResourceProvider - renamed the 'key' argument
	to 'virtualPath' in order to reflects its purpose better. Local
	resource providers are created for the passed virtualPath and not
	for the current request's path. Fixes bug #542484

2009-09-28  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: ResourceProviderHasObject calls
	HttpContext.GetResourceProvider with the current file's path, not
	current request's. Fixes situations when localized control lives
	in a master page or user control. Fixes bug #542484

	* BaseCompiler.cs: introduced a helper property InputVirtualPath
	which returns a VirtualPath object for the current control's
	virtual path.

svn path=/trunk/mcs/; revision=142773
2009-09-28 18:07:53 +00:00
Marek Habersack 8302308418 2009-09-22 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: ResourceProviderHasObject needs to
	close ResourceReader instance obtained from resource provider.

	* DefaultResourceProvider.cs: implemented the ResourceReader
	property. Fixes bug #520397

svn path=/trunk/mcs/; revision=142433
2009-09-22 19:28:04 +00:00
Marek Habersack 88561032dc 2009-09-08 Marek Habersack <[email protected]>
* ProfileParser.cs: GetProfileGroupType creates type name with
	"ProfileGroup" prefix instead of "ProfileCommon". Fixes bug
	#535655

	* ProfileBase.cs: typo fix - renamed CreateSettingsPropery to
	CreateSettingsProperty

2009-09-08  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: HaveCustomProfile returns true for profiles
	which don't contain top-level properties. Fixes bug #535655

svn path=/trunk/mcs/; revision=141504
2009-09-08 11:25:09 +00:00
Marek Habersack fe05e952a4 2009-09-08 Marek Habersack <[email protected]>
* BuildManager.cs: added IsPrecompiled internal property.

	* AppResourcesCompiler.cs: load precompiled site local and global
	resource assemblies from static constructor. Fixes bugs #536138
	and #536143

svn path=/trunk/mcs/; revision=141474
2009-09-08 00:13:00 +00:00
Marek Habersack a0c36b84a2 Compilation fix: typo
svn path=/trunk/mcs/; revision=141245
2009-09-03 13:13:38 +00:00
Marek Habersack d0c210841f 2009-09-03 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
	to attempt to create valid identifiers from resource
	names. Identifier is also escaped by the CodeDOM provider before
	returning. Possible fix for bug #536364

svn path=/trunk/mcs/; revision=141220
2009-09-03 09:57:31 +00:00
Marek Habersack e6ad1de337 2009-08-27 Marek Habersack <[email protected]>
* BuildManager.cs: when HttpRequest.FilePath is '/' in
	GetAbsoluteVirtualPath, don't try to use
	VirtualPathUtility.GetDirectory on it. Fixes bug #532679

svn path=/trunk/mcs/; revision=140786
2009-08-27 11:02:51 +00:00
Marek Habersack 5e89ae81f5 2009-08-26 Marek Habersack <[email protected]>
* AspTokenizer.cs: when there's put back record and we're in
	verbatim mode, get_token must be careful with what it returns - it
	can't return Token.* values, instead it should look at Value and
	retrieve the next token from it. Fixes bug #400807

2009-08-26  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #400807

2009-08-26  Marek Habersack  <[email protected]>

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

svn path=/trunk/mcs/; revision=140703
2009-08-26 11:02:17 +00:00
Marek Habersack 137e1a8bd2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs:
	Detect IE conditional comments when processing comment blocks in
	TextParsed. Fixes bug #367273

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs:
	Added test for bug #367273

2009-08-25  Marek Habersack  <[email protected]>

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

svn path=/trunk/mcs/; revision=140662
2009-08-25 21:04:51 +00:00
Marek Habersack dfabffa5b2 2009-08-25 Marek Habersack <[email protected]>
* AspGenerator.cs: correctly parse server-side tags nested in
	client-side ones. Fixes bug #323719

2009-08-25  Marek Habersack  <[email protected]>

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

2009-08-25  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #323719

svn path=/trunk/mcs/; revision=140611
2009-08-25 11:22:37 +00:00
Marek Habersack b6969f355f 2009-08-24 Marek Habersack <[email protected]>
* PageParser.cs: 2.0 profile takes advantage of the inputFile
	parameter to GetCompiledPageInstance. A check is made whether the
	file pointed to by this parameter is inside the application's
	virtual path and if not, the compilation request is assumed to
	refer to a fake location. Part of fix for bug #463813

2009-08-24  Marek Habersack  <[email protected]>

	* PageBuildProvider.cs: MapPath now takes a VirtualPath
	instance. Part of fix for bug #463813

	* BuildManager.cs: public APIs which take virtual path strings as
	their parameters got internal counterparts accepting a VirtualPath
	instance in place of string. Part of fix for bug #463813

	* GenericBuildProvider.cs:
	MapPath now takes a VirtualPath instance. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
	path hack when creating the helper page. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* VirtualPath.cs: Added new constructor which takes virtual and
	physical paths as well as a boolean marking the instance as
	referring to a fake location. Part of fix for bug #463813

svn path=/trunk/mcs/; revision=140548
2009-08-24 20:34:57 +00:00
Marek Habersack 7aa27e68e9 2009-08-24 Marek Habersack <[email protected]>
* TemplateBuildProvider.cs: ExtractDependencies checks if the
	input has already been parsed/compiled and, if yes, adds
	dependencies from the TemplateParser to the list of the ones
	extracted locally. Fixes bug #377915

	* GenericBuildProvider.cs: added Parsed property.

svn path=/trunk/mcs/; revision=140502
2009-08-24 12:34:56 +00:00
Marek Habersack 6935419d0e 2009-08-21 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: added internal property LanguageName
	override which calls GetParserLanguage to get language name
	instead of using the application default one.

	* BuildManagerDirectoryBuilder.cs: removed CodeDOM provider cache,
	provider types are retrieved from build providers while assigning
	them to groups. Fixes bug #533166

svn path=/trunk/mcs/; revision=140433
2009-08-21 19:52:11 +00:00
Marek Habersack 5c24f18f97 1.1 test fixes
svn path=/trunk/mcs/; revision=140213
2009-08-18 23:56:22 +00:00