I've been trying to get the forums to work in my solution, but I ran into a wall with the following error.
Code:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'RecordDeletedEvent' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 455: {
Line 456: bool ret = SiteProvider.Forums.DeletePost(id);
Line 457: new RecordDeletedEvent("post", id, null).Raise();
Line 458: BizObject.PurgeCacheItems("forums_unapprovedposts");
Line 459: BizObject.PurgeCacheItems("forums_threads");
Source File: e:\content\App_Code\CS\BLL\Forums\Post.cs Line: 457
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\assembly\dl3\ac309c27\9a3af765_28bbc601\FredCK.FCKeditorV2.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.9.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.12.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.7.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.13.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.10.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.11.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.14.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.15.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\300ac418\636ac4c2\App_SubCode_CS.ineu-s-g.8.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
e:\content\App_Code\CS\BLL\Forums\Post.cs(457,17): error CS0246: The type or namespace name 'RecordDeletedEvent' could not be found (are you missing a using directive or an assembly reference?)
e:\content\App_Code\CS\BLL\Forums\Forum.cs(152,17): error CS0246: The type or namespace name 'RecordDeletedEvent' could not be found (are you missing a using directive or an assembly reference?)
I've made sure that the references on top of the page match the original code. If you open Posts.cs from the original solution, the "RecordDeletedEvent" part is blue but in my code is black. I've looked everywhere that I could think of, but with no luck.
Anyone out there with the same problem? Any ideas for the solution will be greatly appreciated.
Thanks,
Jose