Change to Support ASP.NET Web Site (Not Just Web Application)


With a one line chane you should be able to support Web Sites not just Web Applications.
If you change Line 97 in WebAppConfig.cs from:
Type appType = Type.GetType(applicationClassName, false);
Type appType = System.Web.Compilation.BuildManager.GetType(applicationClassName, false);
a user can use ProMesh.Net with a web site that uses the App_Code folder.
This allows you to put your Application class in the App_Code folder and have Promesh.NET find it.
Here is an example config snippet:
<add key="ProMesh.ApplicationClass" value="DeviceManager.Application"/>
Notice that I just have to reference the class name with or without namespace and no assembly at the BuildManager finds it.
This makes life much easier for those of us who have existing projects build around the Web Site model. However, users that use the Web Application model should not see any difference.
Closed Oct 26, 2007 at 7:43 AM by activa
Not an issue. See support forum for details


pragmatic wrote Aug 30, 2007 at 2:29 AM

Everything else worked fine in my web site project. All the models (CoolStorage.NET Enabled by the way) and controllers are placed in folders in app code and the templates are in a top level folder and everything is working great.

wrote Sep 9, 2007 at 7:14 PM

wrote Sep 28, 2007 at 5:34 PM

wrote Oct 26, 2007 at 7:43 AM

wrote Feb 13, 2013 at 8:50 PM

wrote May 15, 2013 at 1:41 AM