3

Closed

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

description

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);
to:
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:
<appSettings>
<add key="ProMesh.ApplicationClass" value="DeviceManager.Application"/>
</appSettings>
 
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.
 
Thanks!
Closed Oct 26, 2007 at 8:43 AM by activa
Not an issue. See support forum for details

comments

pragmatic wrote Aug 30, 2007 at 3: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.