* 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
* SimpleWebHandlerParser.cs: expect GetTypeFromBin to be called
with a fully qualified type name and act accordingly. Fixes bug
#341456.
svn path=/trunk/mcs/; revision=89600
* SimpleWebHandlerParser.cs: don't NRE on a null assembly passed
to AddAssembly.
AddAssemblyByName must check the return value of
Assembly.LoadWithPartialName, as the method doesn't throw on
missing assembly, it returns null instead.
svn path=/trunk/mcs/; revision=88761
* 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
* 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
* SimpleWebHandlerParser.cs: improve directive
pre-parsing. Directives can span multiple lines, they don't have
to start at the beginning of the line and any content can follow
them after the directive end. Also, do not trim the input since
that might affect program content. Fixes bug #81993.
svn path=/trunk/mcs/; revision=81234
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs:
* System.Web.UI/UserControlParser.cs:
* System.Web.UI/PageParser.cs: added new ctor that uses a TextReader
as input.
* System.Web.UI/TemplateControlParser.cs: new Reader property.
* System.Web.UI/SimpleWebHandlerParser.cs: new Reader property and
ctor.
* System.Web.dll.sources: added new files.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/TemplateControlCompiler.cs: CreateMethods is
now internal.
* System.Web.Compilation/WebServiceBuildProvider.cs:
* System.Web.Compilation/PageBuildProvider.cs:
* System.Web.Compilation/UserControlBuildProvider.cs:
* System.Web.Compilation/WebHandlerBuildProvider.cs: new build
providers.
* System.Web.Compilation/BuildProvider.cs: add assemblies.
* System.Web.Compilation/BaseCompiler.cs: expose the provider and the
compile unit through properties.
svn path=/trunk/mcs/; revision=56878
* SimpleWebHandlerParser.cs: Remove the declaration of
compilationConfig in the CONFIGURATION_2_0 case. it's
unnecessary.
(.ctor): ifdef out the AddAssembliesInBin call in the
CONFIGURATION_2_0 case. need to revisit this.
(CompilationConfig): add a CONFIGURATION_2_0 version.
* BaseParser.cs: Remove the declaration of compilationConfig in
the CONFIGURATION_2_0 case. it's unnecessary.
svn path=/trunk/mcs/; revision=55045
* ParseChildrenAttribute.cs: Added LinkDemand for
AspNetHostingPermission with Minimal level. Simplified Equals to avoid
casting. Added new ctor and public fields (2.0). Changed
ChildControlType setter visibility to internal.
* PartialCachingAttribute.cs: Added LinkDemand for
AspNetHostingPermission with Minimal level. Added new ctor and
SqlDependency property (2.0).
* PartialCachingControl.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level.
* PersistenceModeAttribute.cs: Added LinkDemand for
AspNetHostingPermission with Minimal level. Simplified Equals to avoid
casting.
* PersistChildrenAttribute.cs: Added LinkDemand for
AspNetHostingPermission with Minimal level. Simplified Equals to avoid
casting.
* PropertyConverter.cs: Added LinkDemand for AspNetHostingPermission
with Minimal level. Class is static in 2.0.
* RootBuilder.cs: Added LinkDemand and, for 2.0, InheritanceDemand for
AspNetHostingPermission with Minimal level. Class is no more sealed in
2.0. Added new (2.0) BuiltObjects property.
* SimpleWebHandlerParser.cs: Added LinkDemand and InheritanceDemand
for AspNetHostingPermission with Minimal level.
* StateItem.cs: Added LinkDemand for AspNetHostingPermission with
Minimal level.
* StateBag.cs: Added LinkDemand for AspNetHostingPermission with
Minimal level. Removed SetDirty() which was called (2.0) but did
nothing.
* StaticPartialCachingControl.cs: Added LinkDemand and
InheritanceDemand for AspNetHostingPermission with Minimal level.
svn path=/trunk/mcs/; revision=50115
* System.Web.Configuration/CompilationConfigurationHandler.cs: ensure
TempDirectory is not empty before assigning it. Don't mangle the
assembly names provided.
* System.Web.Configuration/CompilationConfiguration.cs: use DynamicBase
as the temp directory instead of Path.GetTempPath.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.UI/TemplateParser.cs: always get the location (full path)
for assemblies, even the ones from the GAC.
* System.Web.Compilation/BaseCompiler.cs: check that DynamicBase
directory exists before creating the TempFileCollection.
The changes related to assembly names fix bug number #74500.
svn path=/trunk/mcs/; revision=43462
* System.Web.Compilation/BaseCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs:
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
of the assembly for ashx/asmx. Otherwise we need to open the file and
check for the class name in there. Thanks to Ben for pointing this out.
svn path=/trunk/mcs/; revision=33382
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from
the cache before doing the real work. Remove temporary files right after
successful compilation.
* System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache.
* System.Web.Compilation/UserControlCompiler.cs: nothing interesting.
* System.Web.Compilation/WebServiceCompiler.cs: try getting the Type
from the cache before doing anything else. Remove temp files on
sucessful compilation.
* System.Web.UI/SimpleWebHandlerParser.cs: implemented
GetCompiledTypeFromCache. When we read the default directive, check the
cache for the Type and if present, don't keep reading and store the
type found.
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache
before actually compiling.
svn path=/trunk/mcs/; revision=29652
* System.Web.dll.sources: removed CSCompiler.cs
* System.Web.Compilation/CSCompiler.cs: removed.
* System.Web.Compilation/CachingCompiler.cs: language independent
compilation for single files.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.UI/TemplateParser.cs: pass the language when compiling from
a file.
svn path=/trunk/mcs/; revision=29017
* SimpleWebHandlerParser.cs: if we have a global.asax, move its
reference to the end to help mcs loading the assemblies. Fixes bug
#58768.
* TemplateParser.cs: same as above. Removed some kludges to workaround
loading assemblies from bin path that are now in the runtime. Don't
load the assemblies in bin if not needed, but still reference them
when compiling.
svn path=/trunk/mcs/; revision=29010
* SimpleWebHandlerParser.cs:
* TemplateParser.cs: for the assembly names given in the 'assembly'
attribute, use LoadWithPartialName instead of Load.
svn path=/trunk/mcs/; revision=26649
* System.Web/HttpApplication.cs: added AssemblyLocation property.
* System.Web.UI/DesignTimeTemplateParser.cs: added FIXME related to
PageParser.
* System.Web.UI/PageParser.cs: initialize the parser in the constructor,
not just before compiling and reference the application assembly.
* System.Web.UI/SimpleWebHandlerParser.cs: reference the assembly that
contains the application Type.
* System.Web.UI/TemplateControl.cs:
* System.Web.UI/TemplateControlParser.cs: fix BenM #1 bug. Now we pass
correct virtual path and physical path when compiling a user control.
* System.Web.UI/TemplateParser.cs: new AddApplicationAssembly ().
* System.Web.UI/UserControlParser.cs: now we get valid values in the
ctor.
Referencing the application assembly fixes bug #49652.
svn path=/trunk/mcs/; revision=19299
* System.Web.dll.sources: new files in System.Web.Configuration.
* System.Web.Configuration/CompilationConfiguration.cs:
* System.Web.Configuration/CompilationConfigurationHandler.cs:
* System.Web.Configuration/CompilerCollection.cs:
* System.Web.Configuration/WebCompiler.cs: new files that process and
store system.web/compilation info (compilers + assemblies).
* System.Web.Configuration/HttpHandlersSectionHandler.cs: added option
for an attribute to be empty.
* System.Web.UI/BaseParser.cs: added CompilationConfig property.
* System.Web.UI/TemplateParser.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: added CompilationConfig
property. Don't hardcode assembly names any more, assemblies in bin
are added depending on the configuration. The default language is
also taken from the configuration.
* System.Web.Compilation/BaseCompiler.cs: now gets the CodeCompiler
from configuration files.
In short, this changes make our ASP.NET support any language
that has CodeDom CodeCompiler and CodeGenerator.
VB.NET currently fails because of its buggy handling of options.
svn path=/trunk/mcs/; revision=19035
* System.Web/HttpRequest.cs: small fix needed when reading big POST
data.
* System.Web.Compilation/CachingCompiler.cs: nothing interesting.
* System.Web.UI/SimpleWebHandlerParser.cs: add the ashx/asmx file
itself to the dependencies so that it's recompiled when changed.
svn path=/trunk/mcs/; revision=18237
* System.Web.Compilation/BaseCompiler.cs: made Compiler property
virtual.
* System.Web.Compilation/CachingCompiler.cs: added support for compiling
web services.
* System.Web.Compilation/WebServiceCompiler.cs: implemented.
* System.Web.UI/SimpleWebHandlerParser.cs: updated to new compilation
interface.
* System.Web.UI/TemplateParser.cs: use the new parameter when compiling.
svn path=/trunk/mcs/; revision=15892
* ApplicationFileParser.cs: it works now. Prior to these changes, we
were using the compiler directly.
* BaseParser.cs: added some useful properties and methods.
* CodeBuilder.cs: use ILocation.
* CodeRenderBuilder.cs: use ILocation.
* CollectionBuilder.cs: use the RootBuilder to map tag names into Types.
* ControlBuilder.cs: made it useful.
* DataBindingBuilder.cs: the control type for data bound text is
DataBoundLiteralControl now.
* ObjectTagBuilder.cs: store some object tag attributes.
* PageParser.cs: handle page-only directives.
* RootBuilder.cs: bah.
* SimpleWebHandlerParser.cs: made it dummy.
* TemplateControl.cs: Modified file.
* TemplateControlParser.cs: handle directives that are common to pages
and user controls.
* TemplateParser.cs: utility methods and handling of directives that
are common to app, page and user controls.
* UserControl.cs: added ControlBuilderAttribute.
* UserControlControlBuilder.cs: builder for user controls.
* UserControlParser.cs: use the new interfaces.
svn path=/trunk/mcs/; revision=14142
* System.Web.Compilation/AspParser.cs: the parser fires events when it
parses an element.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs:
* System.Web.Compilation/AspElements.cs: modified to use the new parser
interface.
* System.Web.Compilation/AspGenerator.cs: modified to use the new
parser. Merge multiple text strings into one single LiteralControl.
* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.
svn path=/trunk/mcs/; revision=11146