Error in Alerts()


I am running WSS 3.0. I installed the app in the LAYOUTS directory. It seems like the Alerts class doesn't exist at runtime however in Visual Studio, it is recognized (intellisense) and compiles without any issues. I also noticed in the WSS 3.0 SDK documentation that this class is not listed under Microsoft.SharePoint namespace.
Here is the message in the browser when I try to run the app...
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\SPAlertManager\ListOptions.ascx.cs(42): error CS0246: The type or namespace name 'Alerts' could not be found (are you missing a using directive or an assembly reference?) at System.Web.Compilation.AssemblyBuilder.Compile()
Line 42 is the first place the Alerts class is instantiated...
Alerts a = new Alerts();


kkaragan wrote Jul 16, 2007 at 3:33 AM

I haven't had the opportunity to test this under a WSS installation without MOSS, however the Alerts class is refering to the Alerts.cs class in the app_code folder of the project. <ake sure that the SPAlertManager folder in _layouts is marked as an application so that it's web.config is recognized and run, this would have signifcance in where the runtime looks for a class that would be in app_code. Perhaps there is some configuration necessary on you system to resolve this, I can't think of why that would be though, other than what I've noted. You may want to ensure that in Visual Studio the Alerts.cs is appearing in the App_Code folder, if it is not this may be the culprit.

wrote Jul 16, 2007 at 3:35 AM

wrote Feb 13, 2013 at 5:21 PM