Revision: 5200
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5200&view=rev
Author: fabiomaulo
Date: 2010-09-22 17:05:14 +0000 (Wed, 22 Sep 2010)
Log Message:
-----------
Fix NH-2339 (thanks to Timur Krist?\195?\179f)
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Context/ReflectiveHttpContext.cs
Modified: trunk/nhibernate/src/NHibernate/Context/ReflectiveHttpContext.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Context/ReflectiveHttpContext.cs 2010-09-22 16:04:12 UTC (rev 5199)
+++ trunk/nhibernate/src/NHibernate/Context/ReflectiveHttpContext.cs 2010-09-22 17:05:14 UTC (rev 5200)
@@ -30,8 +30,11 @@
{
get
{
- string mscorlibVersion = typeof(object).Assembly.GetName().Version.ToString();
- return System.Type.GetType("System.Web.HttpContext, System.Web, Version=" + mscorlibVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
+ return
+ System.Type.GetType(
+ string.Format(
+ "System.Web.HttpContext, System.Web, Version={0}, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
+ Environment.Version));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|