Commit Graph
29 Commits
Author SHA1 Message Date
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 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 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 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 b82b595555 2009-02-05 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: implemented a type resolver for
	ResXResourceReader so that it can correctly resolve
	System.Resources types which are normally found in
	System.Windows.Forms but are included by System.Web
	directly. Without the type resolver, code comparing types inside
	ResXResourceReader when file references are used in side the .resx
	file will not work correctly. The reason for that is that .resx
	files will name "System.Resources.ResXFileRef,
	System.Windows.Forms" as the file reference handler, while inside
	System.Web ResXFileRef will be of type
	"System.Resources.ResXFileRef, System.Web". Fixes bug #466059

svn path=/trunk/mcs/; revision=125945
2009-02-05 22:08:33 +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 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 28be7561f9 2007-10-01 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: resources are no longer compiled into a
	single assembly. Instead, the common assembly construction code
	has been moved to AppResourcesAssemblyBuilder to use satellite
	assemblies.

	* AppResourcesAssemblyBuilder.cs: new resource assembly
	construction code which takes care of outputting satellite
	assemblies.

svn path=/trunk/mcs/; revision=86697
2007-10-01 12:30:36 +00:00
Marek Habersack 38e93cef25 2007-09-14 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: use _culture and _resourceManager
            instead of culture and resourceManger in the generated code, to
            avoid case problems for languages that are case-insensitive.

svn path=/trunk/mcs/; revision=85800
2007-09-14 12:58:12 +00:00
Marek Habersack 0b80ac0b50 2007-06-20 Marek Habersack <[email protected]>
* OutputCacheModule.cs: use Context.InternalCache.

	* Cache.cs: 2.0 profile uses generic containers to keep the cache
	entries.
	Gotten rid of the InsertPrivate and InsertInternal methods. The
	latter was moved to one of the Insert overloads.
	Private entries are no longer handled specifically, because the
	internal cache is now kept in a separate object.

2007-06-20  Marek Habersack  <[email protected]>

	* AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
	private entries.
	* CachingCompiler.cs: as above
	* AspGenerator.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* DataSourceCacheManager.cs: use HttpContext.Current.InternalCache
	to keep private entries.
	* XmlDataSource.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	the internal entries.

2007-06-20  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: use HttpRuntime.InternalCache to
	keep the private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: added new internal property, InternalCache, to
	keep all the internal cache entries instead of mixing them with
	the public cache ones.
	Do not invoke Cache.InvokePrivateCallbacks - this method no longer
	exists.

	* HttpResponse.cs: private entries are now kept in
	Context.InternalCache.

	* HttpContext.cs: added new internal property, InternalCache,
	which returns the HttpRuntime.InternalCache value.

Fixes bug #81690


svn path=/trunk/mcs/; revision=80321
2007-06-20 15:42:36 +00:00
Marek Habersack dcbab13899 2007-04-27 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: do not look at the number of errors, check
	the compiler return code instead.
	
	* AssemblyBuilder.cs: as above

	* AppResourcesCompiler.cs: as above


svn path=/trunk/mcs/; revision=76375
2007-04-27 08:44:00 +00:00
Marek Habersack a0bef8a979 2007-04-03 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: global resources are put in the
	"Resources." namespace while local ones are not. Fixes bug #81174
	which was reopened after r75261.


svn path=/trunk/mcs/; revision=75356
2007-04-03 18:56:09 +00:00
Marek Habersack 37c1af47ac 2007-03-15 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: handle global resource keys with dots
	the way MS.NET does. All the dots are replaced with underscores
	when generating the stronly-typed property.

svn path=/trunk/mcs/; revision=74351
2007-03-15 12:19:12 +00:00
Marek Habersack a3d6e98441 2007-03-14 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: Fix a bug with global resources file
	grouping where no translated resources were processed due to base
	name mismatch.

svn path=/trunk/mcs/; revision=74255
2007-03-14 13:57:18 +00:00
Marek Habersack 095b2a7004 2007-03-13 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

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

        * AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

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

        * TemplateControl.cs: implement AppRelativeVirtualPath. Closes bug
        #80634.


svn path=/trunk/mcs/; revision=74159
2007-03-13 09:56:36 +00:00
Marek Habersack bd3a15661d Handle empty .resources files gracefully
svn path=/trunk/mcs/; revision=74022
2007-03-09 18:30:55 +00:00
Marek Habersack 30833a4b21 Support for preservation assembly mapping files (.compiled)
svn path=/trunk/mcs/; revision=72656
2007-02-12 13:44:36 +00:00
Marek Habersack e66d8ac4b2 Use Resources. as the prefix for global resources embedded in App_GlobalResources.dll
svn path=/trunk/mcs/; revision=72471
2007-02-08 13:02:26 +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
Marek Habersack 9b0f610b57 Compilation fixes
svn path=/trunk/mcs/; revision=71229
2007-01-17 21:24:52 +00:00
Marek Habersack 58a60fff88 New app resources handling code
svn path=/trunk/mcs/; revision=70564
2007-01-05 22:42:56 +00:00
Marek Habersack 689a4b7450 Add support for centralized control registration (from web.config) as well as for the system.web/pages/namespaces collection
svn path=/trunk/mcs/; revision=68545
2006-11-28 00:17:26 +00:00
Marek Habersack ed80dacc09 minor optimizations
svn path=/trunk/mcs/; revision=68448
2006-11-25 01:15:03 +00:00
Marek Habersack 6e3965db61 A few changes related to App_*Resources and App_Code folders
svn path=/trunk/mcs/; revision=67517
2006-11-08 13:43:06 +00:00
Marek Habersack 23ca637aab Removed unnecessary WriteLines
svn path=/trunk/mcs/; revision=67516
2006-11-08 13:14:16 +00:00
Marek Habersack 01e5a48153 And the new files for the resources compiler
svn path=/trunk/mcs/; revision=66800
2006-10-18 20:31:35 +00:00