Commit Graph
34 Commits
Author SHA1 Message Date
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 ce2061c8ef 2008-02-06 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: GetGeneratedType may return a type even
	though the results are null.

	* AssemblyBuilder.cs: if there are no units and no source files,
	do not attempt to compile the assembly.

	* AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
	BuildAssembly may return null results.

	* BuildManager.cs: If AssemblyBuilder returns no results from BuildAssembly, it might
	mean we're dealing with a compilation of empty .as[hm]x files,
	with no code and only code-behind in bin/. Do not report an error
	in that case, only add the compiled types to the cache. Fixes bug
	#357624.

svn path=/trunk/mcs/; revision=95028
2008-02-06 15:04:00 +00:00
Marek Habersack de1ad2116e 2007-12-15 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: Default value for Debug is taken from
	the compilation config section.

	* TemplateParser.cs: Added LoadConfigDefaults here, loads default
	value for Debug from the compilation section.
	Cache CompilationConfig in methods where it is accessed more than
	once.
	Default value for Debug in ProcessMainAttributes is taken from the
	compilation config.

	* PageParser.cs, TemplateControlParser.cs: LoadPagesConfigDefaults
	renamed to LoadConfigDefaults.
2007-12-15  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.

	* BaseCompiler.cs: do not use CreateCompiler () in the 2.0
	profile, it's obsoleted. CachingCompiler will use the
	CodeDomProvider methods directly in that case.

	* WebServiceCompiler.cs: Updated GetCompiledType to acquire
	compiler information for the 2.0 profile from system.codeDom.

	* CachingCompiler.cs: the Compile overloads do not use the
	compiler instance, but call appropriate methods on the
	CodeDomProvider instance directly.
	Updated some Compile overloads to acquire compiler information for
	the 2.0 profile from system.codeDom.


svn path=/trunk/mcs/; revision=91343
2007-12-15 03:42:00 +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 dd5ce5833e 2007-08-23 Marek Habersack <[email protected]>
* ProvidersHelper.cs: HttpApplication.LoadTypeFromPrivateBin
            renamed to LoadTypeFromBin.

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

            * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
            and HttpApplication.LoadTypeFromBin.

            * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
            AddAssembliesInBin.

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

            * ApplicationHost.cs: set AppDomainSetup.PrivateBinPath to "bin"
            if running on Windows or with MONO_IOMAP in effect, and to
            "Bin:bin" otherwise.

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

            * SimpleWebHandlerParser.cs: use
            HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin and
            LoadAssemblyFromBin.
            Restore the old logic in GetTypeFromBin, also use
            HttpApplication.BinDirectoryAssemblies there.

            * TemplateParser.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.
            Use HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin.

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

            * HttpApplication.cs: added a static array BinDirs which contains
            the common bin directory names we can encounter.
            Added internal static property IsRunningOnWindows.
            Added internal enumerable property BinDirectories to iterate over
            the full paths of the available binary directories.
            Added internal enumerable property BinDirectoryAssemblies to
            iterate over .dll files in the bin directories.
            LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
            LoadTypeFromBin uses BinDirectoryAssemblies.
            
            * HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.



svn path=/trunk/mcs/; revision=84684
2007-08-23 10:30:37 +00:00
Marek Habersack fcc675453f 2007-08-21 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

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

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

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

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

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

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

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

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

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

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

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

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

svn path=/trunk/mcs/; revision=84589
2007-08-21 21:13:54 +00:00
Marek Habersack de3974edad 2007-08-14 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: remove unused field.

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

	* Control.cs: include the actual exception when reporting control
	id clash.

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

	* Roles.cs: remove unused field.

	* SqlMembershipProvider.cs: remove unused variable.

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

	* ObjectDataSourceView.cs: remove unused variable.

	* ChangePassword.cs: remove unused variable.

	* RoleGroupCollection.cs: OnValidate shouldn't be overridden.

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

	* SqlProfileProvider.cs: remove unused variable.

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

	* XmlSiteMapProvider.cs: do not hide this_lock.



svn path=/trunk/mcs/; revision=84041
2007-08-14 10:52:59 +00:00
Marek Habersack b770ab6596 2007-04-30 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: support for cases when there exists a custom
	profile class but there is no App_Code directory or it's
	empty. Fixes bug #81489. 

svn path=/trunk/mcs/; revision=76483
2007-04-30 08:49:43 +00:00
Marek Habersack 4a9ce7622a 2007-04-27 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: Resolve assembly names from the global web.config to their
	locations before passing them to the compiler provider.

svn path=/trunk/mcs/; revision=76378
2007-04-27 09:41:49 +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 6a50b6441b 2007-04-20 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: fix App_Code build when the directory
	contains both known and unknown files.


svn path=/trunk/mcs/; revision=75999
2007-04-20 06:58:11 +00:00
Marek Habersack 95c61dae1b 2007-04-19 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: yet another method of detecting if we have a
	custom profile.

	* BaseCompiler.cs: as above
	
	* AspComponentFoundry.cs: implemented delayed loading of control
	assemblies. Fixes bug #81058.

svn path=/trunk/mcs/; revision=75910
2007-04-19 08:04:38 +00:00
Marek Habersack a8d18c9fd5 2007-04-19 Marek Habersack <[email protected]>
* BaseCompiler.cs: don't look at the number of profile properties
	when deciding if we have a custom profile. It is possible to have
	a profile that just inherits from a base class and does not list
	any custom properties. Fixes bug #81396.

	* AppCodeCompiler.cs: as above

svn path=/trunk/mcs/; revision=75908
2007-04-19 07:17:47 +00:00
Marek Habersack 114cd09856 2007-04-15 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: Make sure there's actually anything to compile.

svn path=/trunk/mcs/; revision=75722
2007-04-15 12:28:48 +00:00
Marek Habersack 431f90fc47 2007-04-15 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: converted to LF line endings and set the
	svn:eol-style property to 'native'

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

	* AppCodeCompiler.cs: properly convert physical file path to
	virtual path for build providers.


svn path=/trunk/mcs/; revision=75720
2007-04-15 12:15:27 +00:00
Marek Habersack 382c9d3c86 2007-04-11 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: move custom profile type check till after
	the App_Code compilation is done. That way we can have custom
	profile providers in there. Fixes bug #81307.


svn path=/trunk/mcs/; revision=75597
2007-04-11 07:51:40 +00:00
Marek Habersack 2d0b4476f2 2007-03-16 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: produce message that makes more sense.


svn path=/trunk/mcs/; revision=74447
2007-03-16 02:36:47 +00:00
Marek Habersack c0d510eb33 2007-03-12 Marek Habersack <[email protected]>
* BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
	of Assembly instances, not strings.

	* CachingCompiler.cs: make sure items in the CodeAssemblies and
	TopLevelAssemblies are really instances of the Assembly class
	before trying to use them.
	CodeAssemblies is a collection of Assembly instances, not
	strings.

	* AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
	assemblies, not paths to assemblies.

svn path=/trunk/mcs/; revision=74104
2007-03-12 09:26:55 +00:00
Marek Habersack 4d00d430ca Add a missing method to ProfileCommon
svn path=/trunk/mcs/; revision=74032
2007-03-09 21:36:43 +00:00
Marek Habersack 95b0b1d58e Write preservation files for App_Code assemblies
svn path=/trunk/mcs/; revision=73633
2007-03-02 10:17:56 +00:00
Marek Habersack 3f0de23c4f Fix for bug #80998
svn path=/trunk/mcs/; revision=73632
2007-03-02 10:12:02 +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
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 fe977baba8 Fix for bug #80096
svn path=/trunk/mcs/; revision=71373
2007-01-19 23:16:52 +00:00
Marek Habersack 9b0f610b57 Compilation fixes
svn path=/trunk/mcs/; revision=71229
2007-01-17 21:24:52 +00:00
Marek Habersack c56a42792c Implement support for ProfileCommon class generation
svn path=/trunk/mcs/; revision=69829
2006-12-20 18:41:52 +00:00
Marek Habersack dec216167c App_Code fix
svn path=/trunk/mcs/; revision=68522
2006-11-27 18:02:05 +00:00
Marek Habersack 73bab11621 Fix for App_Code compiler
svn path=/trunk/mcs/; revision=68220
2006-11-20 21:21:37 +00:00
Marek Habersack 963c504a71 AppCode compiler fix
svn path=/trunk/mcs/; revision=68188
2006-11-20 12:50:50 +00:00
Marek Habersack d536e0dde2 Changes to the App_Code compiler
svn path=/trunk/mcs/; revision=67968
2006-11-16 01:11:49 +00:00
Marek Habersack 1e7510b512 Modification of the App_Code compiler which adds support for BuildProviders
svn path=/trunk/mcs/; revision=67804
2006-11-13 22:59:05 +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 b309d37d40 Implementation of the App_Code folder compiler for ASP.NET 2.0
svn path=/trunk/mcs/; revision=67511
2006-11-08 12:08:05 +00:00