I have added System.HttpApplication.RegisterModule(), the missing two properties of the System.Web.Routing.RouteCollection as well as the corresponding property in the HttpRuntimeSection to completely turn this off. Microsofts MIT-Licensed counterparts of the official System.Web assembly from github [0] were used as a reference. It is kind-of bolted on, but should be good enough until the whole open-sourced System.Web is incorporated. It should at least get the default MVC5 Template from Visual Studio 2013 up and running, once the async pipeline for the owin stuff is fixed.
[0]: http://github.com/Microsoft/referencesource/
Additionally, the MissingMethodException "get_InClientBuildManager" in System.Web.Hosting.HostingEnvironment was fixed.
In this commit, the following bugs were fixed:
https://bugzilla.xamarin.com/show_bug.cgi?id=21810https://bugzilla.xamarin.com/show_bug.cgi?id=16475
* HostingEnvironment.cs: removed SetHostingId and added internal
setters to the SiteName and IsHosted properties.
* ApplicationManager.cs: CreateHost doesn't have to call set
HostingEnvironment.IsHosted, it is done in
ApplicationHost.CreateApplicationHost.
* ApplicationHost.cs: set the ".appId" item in the new appdomain's
data, so that HttpRuntime.AppDomainAppId returns a non-null
value.
Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
instead of the original one.
All of the above fix bug #578880
2010-02-18 Marek Habersack <[email protected]>
* HostingEnvironmentTest.cs: added a test for HostEnvironment
property values both in hosted and non-hosted environments. Patch
contributed by Tiaan Geldenhuys <[email protected]>, thanks!
svn path=/trunk/mcs/; revision=151983
* HostingEnvironment.cs: MapPath checks if HttpContext.Request
actually exists before using it.
2009-09-07 Marek Habersack <[email protected]>
* XmlSiteMapProviderTest.cs: added
* StaticSiteMapProviderTest.cs: added test for FindSiteMapNode
2009-09-07 Marek Habersack <[email protected]>
* XmlSiteMapProvider.cs: do not allow the provider to be
intialized more than once.
Initialize throws if it finds unknown attributes in the
'attributes' collection.
AddNode checks its arguments and throws if they are null or aren't
from the same provider.
FindStartingNode throws exceptions in several erroneous situations
now.
Added private method GetConfigDocument which performs several
checks on the source .sitemap file and throws exceptions if it
finds any errors.
BuildSiteMap clears provider state before building the map.
BuildSiteMapRecursive correctly deals with custom providers. Fixes
bug #465696
FindSiteMapNode maps url before searching. Fixes bug #465696
* VirtualPathUtility.cs: Combine a bit more efficient
* StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
relative to application root and if yes, makes it absolute.
MapUrl converts both rooted and not rooted urls to absolute.
* SiteMapProvider.cs: check if HttpContext.Request exists before
using it in FindSiteMapnode
* SiteMap.cs: Providers collection must be read-only.
2009-09-07 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWeb/NunitWeb/Resources/sub_map_01.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_01.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_02.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_03.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_04.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_05.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_06.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_07.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_08.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_09.sitemap
2009-09-07 Marek Habersack <[email protected]>
* Tests/TestSiteMapProvider.cs: added
svn path=/trunk/mcs/; revision=141420
* StaticFileHandler.cs: added code to use custom
VirtualPathProvider, if present, to serve files from virtual
storage.
* HttpResponse.cs: added two internal TransmitFile overloads which
take a VirtualFile as a parameter.
2008-04-01 Marek Habersack <[email protected]>
* HostingEnvironment.cs: initialize custom VPP on
registration.
Added an internal boolena property to signal if we're using a
custom VPP or not (HaveCustomVPP)
svn path=/trunk/mcs/; revision=99479
* HostingEnvironment.cs: allow relative paths to be
passed. Matches both MSDN and the MS.NET behavior. Fixes bug
#82061.
svn path=/trunk/mcs/; revision=81864
* Rationalize the user of MonoTODOs.
- Removed all the TODOs that were only overwritten methods
and had no further information.
- Methods that threw exceptions now have the message "Not
implemnted".
- Methods that return some constant are declared like
that.
- Removed a bunch of stale MonoTODOs that had not been
removed.
svn path=/trunk/mcs/; revision=68620
* BareApplicationHost.cs: class used as an entry point into each
application domiain from the ApplicationManager.
* ApplicationManager.cs: implemented most of the remaining methods.
* HostingEnvironment.cs: object handling methods are now implemented.
svn path=/trunk/mcs/; revision=57178
* System.Web.Configuration_2.0/Compiler.cs:
* System.Web.Configuration_2.0/CompilerCollection.cs: removed
compatibility code.
* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
GetProviderForExtension().
* System.Web.UI/IThemeResolutionService.cs: this is now added to the
sources file, but some other stuff does not compile yet as the
interface changed after the beta.
* System.Web.UI/ObjectConverter.cs: removed extra attribute.
* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.
* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
commented the 'good' stuff out, since other files need to be fixed
too.
* System.Web.dll.sources: add new files.
* System.Web.Configuration/CompilationConfiguration.cs:
* System.Web.Configuration/CompilationConfigurationHandler.cs: only
compile these for pre-2.0 assemblies.
* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
comments/TODO.
* System.Web.Hosting/HostingEnvironment.cs: initialize the
default value for VirtualPathProvider.
* System.Web.Compilation/CompilerType.cs: implemented.
* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
instance creation code.
* System.Web.Compilation/ClientBuildManager.cs: implemented some of
its methods. Not yet ready.
* System.Web.Compilation/BuildManager.cs: the more interesting methods
are implemented now.
* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
in case of error.
* System.Web.Compilation/BuildProvider.cs: implemented the
Get*Compiler* protected methods.
svn path=/trunk/mcs/; revision=56781
* SimpleWorkerRequest.cs: implemented RootWebConfigPath.
* HostingEnvironment.cs: implemented RegisterVirtualPathProvider and
a few other defaults.
svn path=/trunk/mcs/; revision=56412
* VirtualDirectory.cs:
* VirtualPathProvider.cs:
* VirtualFileBase.cs:
* VirtualFile.cs: implemented this base classes.
* HostingEnvironment.cs: implemented a few properties by using the ones
in HttpRuntime.
svn path=/trunk/mcs/; revision=56076
* HostingEnvironment.cs: completely NIE'ed implementation of
HostingEnvironment, just to get an MS example provider to compile.
svn path=/trunk/mcs/; revision=52482