Commit Graph
5 Commits
Author SHA1 Message Date
Joerg Rosenkranz f927c83afe Prevent NullReferenceException in case of missing Host
Do not throw a NullReferenceException when Host variable is not set.
Ignore the calls to RegisterObject and UnregisterObject instead.
2014-10-10 16:23:22 +02:00
Marek Habersack 85db63d06f 2010-02-18 Marek Habersack <[email protected]>
* 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
2010-02-18 13:29:56 +00:00
Yoni Klain 7a6090166e added a NotWorking category attribute for tests that pass on .NET and fail on mono.
svn path=/trunk/mcs/; revision=67260
2006-11-02 09:11:11 +00:00
Gonzalo Paniagua Javier 9287fab5ca 2006-02-02 Gonzalo Paniagua Javier <[email protected]>
* HostingEnvironmentTest.cs: tests for MapPath.


svn path=/trunk/mcs/; revision=56497
2006-02-02 22:19:42 +00:00
Gonzalo Paniagua Javier 3ba5628d91 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* HostingEnvironmentTest.cs: new tests.


svn path=/trunk/mcs/; revision=56411
2006-02-01 19:48:51 +00:00