* 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
* 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
* 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
* 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
* 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
* 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
* BuildManager.cs: make sure to construct correct physical path
for every precompiled key in FixVirtualPaths. Fixes bug #546053
svn path=/trunk/mcs/; revision=143950
- 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx
2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-18 Marek Habersack <[email protected]>
* AspParser.cs: added a constructor which creates an internal
parser, nested within the outer one, and adjusts its ILocation
members to report correct locations in the outer parser for better
error reporting. Inner parser also returns the outer's FileText,
if available.
* AspGenerator.cs: restored part of r138474 reverted in r138657,
r138658 and r138659 to fix bug #525104
BuilderLocation creates a copy of Location for its own use (since
the ILocation passed is actually AspParser, the line numbers
change between creating a BuilderLocation and using its Location
member).
The end of tag, expression and client comment regular expressions
now use lazy quantifiers. This fixes bugs #525104 and #517656
Client side comment blocks aren't ignored anymore, they are parsed
just as the other parts of the document. Fixes bug #524358
2009-08-18 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: read converters from the config only if
explicitly requested.
2009-08-18 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #525104 and
improved test for bug #517656
svn path=/trunk/mcs/; revision=140161
* BuildManagerDirectoryBuilder.cs: when VirtualPathProvider
reports a virtual directory doesn't exist, try to get the
requested virtual path using VirtualPathProvider.GetFile. Fixes
#525974
svn path=/trunk/mcs/; revision=139969
* BuildManager.cs: precompilation setup failed if the precompiled
virtual directory was / and it was deployed somewhere else.
svn path=/trunk/mcs/; revision=138576
* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358
2009-07-23 Marek Habersack <[email protected]>
* ControlBuilder.cs: added an internal helper property
IsNamingContainer.
2009-07-23 Marek Habersack <[email protected]>
* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.
svn path=/trunk/mcs/; revision=138521
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/FullTagsInText.aspx
Test/mainsoft/NunitWebResources/TagsExpressionsAndCommentsInText.aspx
2009-07-23 Marek Habersack <[email protected]>
* AspGenerator.cs: TextParsed takes a different approach to
post-processing text blocks now. It applies, in order, client-side
comment, tag and expression regular expressions to the text
and splits it into blocks of different types. Then the blocks are
processed accordingly.
svn path=/trunk/mcs/; revision=138474
* BuildManager.cs: GetReferencedAssemblies unconditionally
includes all assemblies from bin/ for precompiled sites. Fixes bug
#502016
svn path=/trunk/mcs/; revision=138246
* HttpContext.cs: GetGlobalResourceObject must look for resources
in the 'Resources' "namespace" - it was a regression from the
previous change to that method.
2009-07-18 Marek Habersack <[email protected]>
* DefaultResourceProvider.cs: if GetResourceObject is passed a
null or empty classKey it just returns null.
* AppResourcesAssemblyBuilder.cs: satellite assemblies are now
built using al instead of gmcs - makes the build slightly faster.
svn path=/trunk/mcs/; revision=138177
* ProvidersHelper.cs: InstantiateProvider doesn't have to
explicitly look for types in App_Code assemblies - this is done in
HttpApplication.LoadType.
2009-07-13 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
try/catch, so that we can wrap the possible exception in
HttpException.
2009-07-13 Marek Habersack <[email protected]>
* HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
try/catch so that we can decide whether or not to throw
exceptions. LoadTypeFromBin - ignore the FileLoadException and
BadImageException exceptions as they don't matter in this
context.
svn path=/trunk/mcs/; revision=137811
* DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
added
2009-07-09 Marek Habersack <[email protected]>
* HttpContext.cs: fall back to default resource provider factory
if the factory provided by user doesn't have the required object
in Get{Global,Local}ResourceObject. Fixes bug #520397
Refactored the GetResourceObject method and the
ResourceManagerCacheKey class to DefaultResourceProvider.
svn path=/trunk/mcs/; revision=137624
* TemplateControlCompilerTest.cs: added test for bug #520024
2009-07-08 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PreprocessorDirectivesInMarkup.aspx
2009-07-08 Marek Habersack <[email protected]>
* AspParser.cs: GetServerTag mustn't treat <% # ... %> as
data-binding directives. Fixes bug #520024
* AssemblyBuilder.cs: if debugging information is on, append
/d:DEBUG to the compiler's command line.
svn path=/trunk/mcs/; revision=137558
* AspGenerator.cs: TextParsed must remove client-side comments
from the passed text before attempting to parse the text for
server side controls and expressions. Fixes bug #517656
2009-06-30 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #517656
2009-06-30 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ServerControlInClientSideComment.aspx
2009-06-30 Marek Habersack <[email protected]>
* NunitWebResources/ServerControlInClientSideComment.aspx: added
svn path=/trunk/mcs/; revision=137137
* AspGenerator.cs: CreateRootBuilder quits when root builder
already exist. This can happen when recursively parsing an include
file. Fixes bug #512028
svn path=/trunk/mcs/; revision=136096
* PageCompiler.cs: if generating code to assign output cache
parameters, use special case for generating OutputCacheLocation
enum reference. Fixes bug #512037
svn path=/trunk/mcs/; revision=135918
* AspGenerator.cs: if plain text is parsed and it contains
server-side controls, parse and process them. Fixes bug #508888
2009-06-04 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ServerSideControlsInScriptBlock.aspx
2009-06-04 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #508888
svn path=/trunk/mcs/; revision=135486
* BuildManager.cs: allow deployment of precompiled applications under
any virtual path, not just the default one used when precompiling.
Fixes bug #483268.
svn path=/trunk/mcs/; revision=135231
* HttpException.cs: if custom errors are enabled and the error
code is 404 show the "standard" 404 error message instead of the
default custom error mode one. Fixes bug #508649
2009-06-01 Marek Habersack <[email protected]>
* BuildManager.cs: when throwing a 404 exception, pass the virtual
path to the exception constructor.
svn path=/trunk/mcs/; revision=135147