* 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
* HierarchicalDataBoundControl.cs: Modified GetData method to check if
DataSource implements IHierarchicalEnumerable and if so constructs and
returns a new instance of ReadOnlyDataSourceView. This provides functional
compatibility with the Microsoft.NET framework. Fixes bug
#395209. Patch contributed by James Fitzsimons
<[email protected]>, thanks!
2008-05-18 Marek Habersack <[email protected]>
* HierarchicalDataBoundControlTest.cs: Added
TestIHierarchicalEnumerableDataSource to test change made to
GetData method to make functionally compatibile with Microsoft.NET
framework. Patch contributed by James Fitzsimons
<[email protected]>, thanks!
2008-05-28 Marek Habersack <[email protected]>
* ReadOnlyDataSourceView.cs: added. Patch contributed by James
Fitzsimons <[email protected]>, thanks!
svn path=/trunk/mcs/; revision=104329
* 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
* 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
* HiddenFieldPageStatePersister.cs: add TARGET_J2EE def
* Page.cs: remove TARGET_J2EE def
* Page.jvm.cs: add new internal api such PageState and FacesContext.
all those changes make PageAdapter works with JSF under TARGET_J2EE.
svn path=/trunk/mcs/; revision=102513
* 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
* TemplateParser.cs: constructs the VirtualPath using the current
parser's BaseVirtualDirectory. Fixes bug #381715
2008-04-23 Marek Habersack <[email protected]>
* VirtualPath.cs: introduced the CurrentRequestDirectory property,
which returns the virtual directory for the current request. The
information is taken from either current request's
CurrentExecutionFilePath property (if not null) or from the path
set externally (by setting the property or using the appropriate
VirtualPath constructor). The new property is used to construct
the correct absolute virtual path in the MakeRooted method. Fixes
bug #381715.
svn path=/trunk/mcs/; revision=101557
* 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
* ObjectStateFormatter.cs: ObjectFormatter.WriteObject should not
use a converter if it can't convert _from_ the type of the object
being written to the stream. Fixes issues with serializing, e.g.,
a DataSet.
svn path=/trunk/mcs/; revision=101150
* SimpleWebHandlerParser.cs, TemplateParser.cs, AspGenerator.cs:
make sure streams are disposed the way they should be.
svn path=/trunk/mcs/; revision=100685
* Control.cs: refactoring - IdSeparator property is internally
present also in 1.1.
2008-04-10 Marek Habersack <[email protected]>
* RadioButton.cs: adjust 'name' and 'value' attribute values to
match MS.NET. Fixes bug #378024
svn path=/trunk/mcs/; revision=100302
* NunitWebResources/adapters.browser,
NunitWebResources/TestCapability.browser: modified to work and
support tests of browser defs in
etc/mono/2.0/Browsers/Compat.browser.
++ class/System.Web/Test/System.Web/ChangeLog (working copy)
* AppBrowsersTest.cs: added tests to ensure browscap.ini
etc/mono/2.0/Browsers/Compat.browser are being used when there
are App_Browser/*.browser files.
++ class/System.Web/Test/System.Web.UI/ChangeLog (working copy)
* PageTest.cs: added tests to ensure that using a
ControlAdapter that is not of the type corresponding to the
control doesn't cause a cast error.
++ class/System.Web/Test/System.Web.UI.WebControls/ChangeLog (working copy)
* DataBoundControlTest.cs, HierarchicalDataBoundControlTest.cs,
WebControlTest.cs: added tests to ensure that using a
ControlAdapter that is not of the type corresponding to the
control doesn't cause a cast error.
++ class/System.Web/System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
use etc/mono/2.0/Browser/*.browser files in addition to
~/App_Browsers/*.browser files.
++ class/System.Web/System.Web.UI/ChangeLog (working copy)
* Page.cs (PageAdapter): fixed cast error when a ControlAdapter that
wasn't a PageAdapter was used.
++ class/System.Web/System.Web.Configuration_2.0/ChangeLog (working copy)
* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
nBrowser/Build.cs (Process): Added initialCapabilities argument to
facilitate using browscap.ini capabilities.
* CapabilitiesResult.cs (ctor), nBrowserResult.cs (ctor): Change
items arg to IDictionary to facilitate using browscap.ini capabilities.
* nBrowser/Node.cs (Reset): Removed code which checked prohibited
non-alphanumerics in id attributes because .NET is not that strict.
* nBrowser/Node.cs (MergeFrom): Fixed NullReferenceExceptions that
occurred when the source or destination node did not have any
capabilities or adapters.
* nBrowser/Result.cs (AddAdapter): Fixed to allow types in other
assemblies.
++ class/System.Web/System.Web.UI.WebControls/ChangeLog (working copy)
* DataBoundControl.cs (InternalPerformDataBinding),
HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
WebControl.cs (Render): fixed cast errors when a ControlAdapter
that wasn't of the type corresponding to the control was used.
++ class/System.Web/System.Web.Configuration/ChangeLog (working copy)
* HttpCapabilitiesBase.cs (GetConfigCapabilities): changed to use
browscap.ini for default capabilities when *.browser files are
present, so we don't need to maintain browser capabilities in two
places.
svn path=/trunk/mcs/; revision=100150
* 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
* TemplateControl.cs: ParseControl implemented for the 2.0
profile.
* UserControlParser.cs: added support for compiling controls
without input file (e.g. from TemplateControl.ParseControl).
* TemplateParser.cs: implemented VirtualPathProvider support for
registering UserControls.
If there is no input file path provided, auto-generate the class
name in the ClassName property getter.
svn path=/trunk/mcs/; revision=99570
* 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
* ApplicationHostTest.cs: adjust test for the PrivateBinPath
change in ApplicationHost.
2008-03-13 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: use HttpApplication.BinDirs to
create watchers for binary application directories.
* HttpApplication.cs:
Remove the BinDirectories enumerator property, replaced with a
BinDirectory one returning a string with path to the binary
directory.
2008-03-13 Marek Habersack <[email protected]>
* ApplicationHost.cs: use HttpRuntime.CaseInsensitive when
checking whether we're running in a case-insensitive environment.
Revert to the single-bin-dir behavior when setting the
PrivateBinPath - the directories are sought for in the order given
by HttpApplication.BinDirs and the first existing directory is set
as the value of PrivateBinPath. If none of those are found,
PrivateBinPath defaults to "bin" (and "/app/full/path/bin" in the
2.0 profile)
2008-03-13 Marek Habersack <[email protected]>
* TemplateParser.cs: HttpApplication.BinaryDirectories property no longer
exists, use HttpApplication.BinDirectory instead.
svn path=/trunk/mcs/; revision=98211
* add new resources:
PageWithAdapter.aspx for PageTest and PageAdapterTest.
TestCapability.browser for AppBrowsersTest.
* NunitWebResources/adapters.browser,
NunitWebResources/AppBrowsersTest.browser: modified to support
testing reference nodes with captures, and adapters.
* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
unload, no new requests are sent to the app host and any
pending requests are completed before the the unload occurs.
Also added WebTest.AppUnloaded event that tests can use to wait
for the app to unload (e.g. after touching Global.asax), and
WebTest.CleanApp() which can be called to restart the app with
the a skeleton directory structure. Tests which add files that
could effect other tests (e.g. App_Browsers/*.browser files) should
call WebTest.CleanApp() during TearDown to return the app to a
pristine environment.
++ Test/mainsoft/MainsoftWebTest/ChangeLog (working copy)
* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that
tests can access System.Web internals now that System.Web is
InternalsVisibleTo this assembly.
++ Test/System.Web/ChangeLog (working copy)
* AppBrowsersTest.cs: added. Includes tests for Control.Adapter,
Control.ResolveAdapter, Control.TagWriter, and
Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
AppBrowsersTest is currently tagged [Ignore], pending a fix for
bug #351878.
* HttpRuntimeTest.cs: added. Includes test for
HttpRuntime.UnloadAppDomain(). Marked [Ignore], pending a fix for
bug #351878.
++ Test/System.Web.UI.Adapters/ChangeLog (revision 0)
* PageAdapterTest.cs: added tests for PageAdapter.
* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
during normal page processing if no files are in App_Browsers.
* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog (working copy)
* PageTest.cs: add tests for using a PageAdapter.
* ControlTest.cs: moved commented out ResolveAdapter_1 test to
../System.Web/AppBrowsersTest.cs. Fixed typo in test name.
Added Customcontroladapter.Adapter property for use by AppBrowsersTest.
++ Test/System.Web.UI.WebControls.Adapters/ChangeLog (revision 0)
* MenuAdapterTest.cs: added
* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog (working copy)
* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
result was the same when using the base MenuAdapter as when using
no adapter.
* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
to ensure that MenuAdapter.RenderItem() is called.
* HierarchicalDataBoundControlTest.cs, WebControlTest.cs,
DataBoundControlTest.cs: added test for use of ControlAdapters
when present.
* WebControl.cs: added test for IsEnabled.
++ System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs: Added support for detecting
App_Browsers/*.browser files and using them to determine capabilities.
Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
directories are created.
* BrowserCapabilities.cs (TagWriter): get value via internal virtual
GetTagWriter() method, which is overridden in nBrowser.Result.
* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
internal properties added to allow Page and Control methods to avoid
accessing Request.Browser to get browser-specific HtmlTextWriters or
ControlAdapters. Those things only exist when there are App_Browsers
files.
++ System.Web.UI.Adapters/ChangeLog (working copy)
* ControlAdapter.cs: made control field internal so
derived internal classes can access it without using base.Control
which can involved several typecasts.
* PageAdapter.cs: implemented all members.
* ControlAdapter.cs: implemented all members.
* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog (working copy)
* Page.cs (SavePageControlState, LoadPageControlState): save/load
adapter state in 2.0 profile.
* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
in 2.0 profile.
* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
in 2.0 profile.
* Page.cs (DeterminePostBackMode, InitOutputCache,
RenderClientScriptFormDeclaration, InternalProcessRequest,
PageStatePersister): added support for PageAdapters.
* Control.cs (Adapter, ResolveAdapter): implemented. Adapter calls
ResolveAdapter and remembers result. ResolveAdapter checks for adapters
of the Type hierarchy until it finds one.
* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
adapter state in 2.0 profile.
* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
required by 2.0 profile. These are called by corresponding methods of
System.Web.UI.Adapters.ControlAdapter.
* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
any adapters/writers because there are no files in App_Browsers/.
++ Assembly/ChangeLog (working copy)
* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
to support ControlAdapterTest.ConfigCapabilitiesNotCalled().
++ ChangeLog (working copy)
* System.Web_test.dll.sources: added
System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
System.Web.UI.Adapters/PageAdapterTest.cs
System.Web.UI.Adapters/ControlAdapterTest.cs
* Makefile (RESOURCE_FILES_2): added
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PageWithAdapter.aspx
* System.Web.dll.sources: added
System.Web.Configuration_2.0/CapabilitiesBuild.cs
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
System.Web.Configuration_2.0/CapabilitiesResult.cs
System.Web.Configuration_2.0/ICapabilitiesProcess.cs
System.Web.Configuration_2.0/nBrowser/Result.cs
System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
System.Web.Configuration_2.0/nBrowser/Identification.cs
System.Web.Configuration_2.0/nBrowser/File.cs
System.Web.Configuration_2.0/nBrowser/Build.cs
System.Web.Configuration_2.0/nBrowser/Node.cs
System.Web.Configuration_2.0/nBrowser/Exception.cs
++ System.Web.UI.WebControls.Adapters/ChangeLog (working copy)
* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs: changed to use ControlAdapter.control
instead of using base.Control or using a new control field.
* MenuAdapter.cs: added internal constructor that takes a Menu
parameter. The constructor is used when writing unit tests.
* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag,
RenderContents, RenderEndTag): delegate to base instead of
Control.
* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
RaisePostBackEvent, RenderItem): implemented.
* WebControlAdapter.cs (RenderContents): changed to call
control.RenderContents() instead of control.Render().
* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
internal constructor that takes a parameter of the corresponding
Control type. The construct is used when writing unit tests.
++ System.Web.Configuration_2.0/ChangeLog (working copy)
* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs,
nBrowser/Exception.cs: added. The code under nBrowser handles *.browser
files. It is based on Owen "Ocean" Brady's code, with the following
changes and improvements. Replaced Result.Adapter
property with AdapterTypeMap property which maps control Type to adapter
Type. Added Result.MarkupTextWriter property. Added overrides for
Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
and AdapterTypeMap, resp. Changed tree building algorithm to not
depend on nodes with id="Default" and to inject defaultBrowser nodes
as parents of regular nodes with the same ids. Changed Node.cs to use
Item instead of Add when adding a capability or sample header, so that
values get replaced instead of appended. Added support for reference
nodes (ie. nodes with refID="someID").
* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
using the correct name.
* RandomRoboBotKeywords.txt: added
* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
support for *.browsers. Adapters property calls internal virtual
GetAdapters() method which is overrided in nBrowser.Result
returned by nBrowser code. CreateHtmlWriter uses type specified
by TagWriter property.
++ System.Web.UI.WebControls/ChangeLog (working copy)
* DetailsView.cs, ListControl.cs, DataBoundControl.cs,
FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs:
added support for using ControlAdapters when present.
* WebControl.cs: fixed implementation of IsEnabled to match
documentation.
* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of
RenderMenuItem() if an adapter is present. MenuAdapter.RenderItem()
calls back to new Menu.RenderItem() internal method which calls
RenderMenuItem() with the appropriate parameters.
++ System.Web.Configuration/ChangeLog (working copy)
* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser
support. Also added internal GetConfigCapabilities_called
flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to
test that GetConfigCapabilities() is not called during normal page
processing when there are no files in App_Browsers/.
svn path=/trunk/mcs/; revision=97824
* TemplateControlParser.cs: 2.0 allows controls with extensions
different than .ascx, as long as they derive from
System.Web.UI.UserControl and a build provider is available for
them.
* TemplateParser.cs: user controls must derive from
System.Web.UI.UserControl.
svn path=/trunk/mcs/; revision=97816
* HttpUtility.cs: HTML-decode the query string prior to parsing
it.
2008-03-09 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: if the input file doesn't contain the
correct directive string (tag name is empty for the <%@ %> tag),
use the default directive.
svn path=/trunk/mcs/; revision=97804
* HandlerFactoryConfiguration.cs: ignore case when matching
handler paths.
2008-02-28 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: ignore case when matching handler
paths. Fixes bug #364995
2008-02-28 Marek Habersack <[email protected]>
* TemplateControlParser.cs: when registering a control, check for
the .ascx extension case-insensitively. Fixes bug #364995
svn path=/trunk/mcs/; revision=96870
* TemplateParser.cs: a better error message.
* ControlBuilder.cs: if one of the parent builders is a
TemplateBuilder, use it as the naming container and use its
ContainerType property as the value of the BindingContainerType
property.
2008-02-26 Marek Habersack <[email protected]>
* BuildProviderCollection.cs: be case-insensitive when looking for
the extension match.
2008-02-26 Marek Habersack <[email protected]>
* BuildManager.cs: known file types extensions are now matched
case-insensitively.
svn path=/trunk/mcs/; revision=96644
* ControlBuilder.cs: correctly chain up to the parent builder when
looking for the naming container.
2008-02-25 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetContainerType now checks whether
the binding container returned from the builder implements
IDataItemContainer (for 2.0+ profiles) and looks for one more
property, Rows, if no Items property is found.
svn path=/trunk/mcs/; revision=96536
* ControlBuilder.cs: introduced a new internal property -
MyNamingContainer used by the public properties
NamingContainerType and BindingContainerType. This simplifies the
code in the latter property, as the binding container type must
almost always be the same as the naming container type. The only
exception is when we're inside a content builder, in which case we
return the parent's BindingContainerType. Fixes bug #363665
svn path=/trunk/mcs/; revision=96395
* BuildManager.cs: check for virtualPath existence before
attempting to compile the assemblies. Fixes bug #359465
2008-02-07 Marek Habersack <[email protected]>
* HttpException.cs: moved several strings to constants, for easier
maintenance.
Added 3 new constructors which let the caller to set the exception
description.
The Description property is now settable.
The stack trace at the bottom of the file is written after the
terminating </html>, inside a HTML comment. Format changed to
match MS.NET.
Error 404 is handled in a special way, to match the output with
MS.NET.
* HttpContext.cs, StaticFileHandler.cs, HttpApplication.cs: use
the new HttpException constructor for 404.
2008-02-07 Marek Habersack <[email protected]>
* PageHandlerFactory.cs: call PageParser.GetCompiledPageInstance
only - that method calls the appropriate APIs for 1.1 and 2.0
profiles.
svn path=/trunk/mcs/; revision=95135
* SimpleWebHandlerParser.cs: use WebEncoding.FileEncoding when
reading the source file.
2008-02-04 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
generating source code files. Fixes bug #357053.
* AspGenerator.cs: set isApplication before parsing. Fixes bug
#357036.
svn path=/trunk/mcs/; revision=94774
* ObjectStateFormatter.cs:
ensure ReaderContext.GetCache called with positive arg to prevent from
ArgumentOutOfRange being thrown.
svn path=/trunk/mcs/; revision=94366
* WebHandlerBuildProvider.cs: derive from the new
SimpleBuildProvider class.
* BuildManager.cs: full implementation of the batch compilation
for the 2.0 profile. The implementation is most probably different
to MS.NET's but the effects are the same (or nearly the same -
there are some minor differences). There are missing bits and
pieces, but minor ones - to be added later.
* SimpleBuildProvider.cs: new build provider abstract class
deriving from the GenericBuildProvider that implements common code
for building web handlers and web services.
* GenericBuildProvider.cs: new generic abstract class used to
implement base builder code for all the build provider types and
maximize code reuse.
* PageBuildProvider.cs: derive from the new TemplateBuildProvider
class and implement all the necessary abstract members.
Handle "fake" virtual paths, to properly support generating of the
WSDL helper code.
* BuildProvider.cs: SetVirtualPath now converts the passed path to
absolute URL.
Added internal virtual method GenerateCode, used by derived
classes.
SetCommonParameters no longer sets the referenced assemblies, this
is done in BuildManager now.
Added an internal virtual property CodeUnit which returns the
build provider's compilation unit.
* PageCompiler.cs: fix assignment of base types for asynchronous
pages, to match MS.NET.
For asynchronous pages, add the necessary methods generation.
* BaseCompiler.cs: default namespace is now set using a constant.
Renamed the Init method into ConstructType, to better reflect its
purpose and made the method internal - it is used by the build
providers.
Added several CreateProvider overloads for easier and more unified
compilation provider creation.
Added an internal MainClassType property to enable class type name
retrieval from other parts of the class hierarchy.
* ApplicationFileBuildProvider.cs: new build provider deriving
from the TemplateBuildProvider class to compile the global.asax
file.
* AspGenerator.cs: properly handle parsers which have no input
file path given, but use TextReader instead.
Dependencies are virtual paths now, convert them to physical ones
before creating cache dependency.
* CachingCompiler.cs: parser dependencies are virtual paths now,
convert them to physical ones before creating cache dependency.
* AssemblyBuilder.cs: full implementation of the documented
functionality as well as a lot of internal build code
added. Produces assemblies using the same style what MS.NET for
temporary and target file naming. Handles partial type squashing
if the same partial type is used by several code compile units
added to the same builder instance.
* MasterPageBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.
* ThemeDirectoryBuildProvider.cs: new build provider to compile
theme directories. Replaces the old ThemeDirectoryCompiler class.
* UserControlBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.
* TemplateBuildProvider.cs: new internal abstract class which
implements the common tasks for all the template control build
providers.
* WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
type to implement building.
2008-01-24 Marek Habersack <[email protected]>
* PageThemeFileParser.cs: the DefaultBaseType property removed.
* ApplicationFileParser.cs: added constructor which takes a
TextReader.
Removed the DefaultBaseType property.
Added the Reader property.
* MasterPage.cs: use BuildManager to create page instance.
* WebHandlerParser.cs: added a compatibility constructor.
* TemplateControl.cs: GetTypeFromControlPath uses
BuildManager.GetCompiledType for the 2.0+ profile.
* WebServiceParser.cs: added a compatibility internal
constructor.
* SimpleWebHandlerParser.cs: properly treat context and
physicalPath parameters to the constructor, especially for the
2.0+ profile where they are obsolete.
Dependencies are added using virtual paths.
* PageThemeParser.cs: DefaultBaseType property removed.
* Page.cs: Style sheets and themes are compiled using
BuildManager.
Previous page instance is compiled using BuildManager for the 2.0+
profile.
* MasterPageParser.cs: Use BuildManager to create instance and
compile types.
Dependencies are added using virtual paths.
* SimpleHandlerFactory.cs: Use
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.
* UserControlParser.cs: if the parser is created using a
TextReader, take the input file path from the virtual path.
Added a new internal constructor which takes both a TextReader and
an inputFile parameters.
Set base type to the default in the constructors.
Use virtual path when setting master page dependency.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.
* TemplateControlParser.cs: Dependency on a control/page mentioned
in the Reference directive is registered using the virtual path.
TextReader property is an override now.
* TemplateParser.cs: RegisterCustomControl adds a dependency on
the virtual path, not the physical path. The custom control is
compiled using BuildManager.GetCompiledType for the 2.0+ profile.
RegisterNamespace does not add a dependency on the assembly.
LoadType does not add a dependency on the assembly.
Legacy Src attribute is handled properly now.
Dependency on code-behind (Src and CodeFile directive attributes)
is added using the code-behind file's virtual path.
GetAssemblyFromSource adds a dependency using the virtual path.
DefaultBaseType implemented here, using DefaultBaseTypeName which
is implemented in the descendant classes.
Added internal CodeBehindSource property, used by build
providers.
ClassName property works correctly if inputFile is missing
(e.g. when the parser has been created using a TextReader)
Added a virtual internal property TextReader to return the readed
which has been used to create the parser instance.
* PageHandlerFactory.cs: GetHandler uses
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.
* PageParser.cs: set the default base type in the constructors.
If the input file is not passed to a constructor, take the input
file path from the virtual path.
GetCompiledPageInstance uses BuildManager.CreateInstanceFromVirtualPath
for the 2.0+ profile.
MasterPage dependency is set using the virtual path of the master
page.
MasterPage is compiled into a type using BuildManager.GetCompiledType.
GetCompiledPageType uses BuildManager.GetCompiledType for the 2.0
profile.
DefaultBaseType override removed, it is implemented in the
TemplateParser class.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.
2008-01-24 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
build the application (global.asax) file.
svn path=/trunk/mcs/; revision=93848
* CachingCompiler.cs: added an overload to the Compile method
which accepts a flag whether or not to include debug information
in the generated assembly.
2008-01-07 Marek Habersack <[email protected]>
* TemplateParser.cs: handle legacy 'src' attribute in the 2.0
profile in the correct way. Fixes bug #319016
BaseType is global by default.
svn path=/trunk/mcs/; revision=92380
* TemplateParser.cs: added a wrapper class for server-side script
snippets, to keep track of locations.
Store main directive location for later use in DirectiveLocation
internal property.
2008-01-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: add line pragma wherever necessary.
* PageCompiler.cs: reorder the statements to match MS.NET output.
Output line pragma information for directive attributes.
* BaseCompiler.cs: add a set of AddLinePragma methods for various
CodeDOM elements.
Output line pragmas when adding server-side scripts to the CodeDOM
tree.
* AspGenerator.cs: use ServerSideScript to store script location
in the original file.
* UserControlCompiler.cs: output line pragmas for the init
method.
svn path=/trunk/mcs/; revision=92125