Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 28th, 2006, 07:40 PM
Authorized User
 
Join Date: Jul 2006
Location: , KS, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jsantamaria
Default Forums Help

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

__________________
Jose Santa-Maria

Computers can never replace human stupidity!
  #2 (permalink)  
Old August 28th, 2006, 10:57 PM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

Jose

Next time you should make sure that your post is word wrapped.

The problem has to do with event logging. If you have compiled your DLL for TBH_Events and you have used a namespace the issue may be there. Use ILDASM found in "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ildasm.exe" and check the assembly. After my first compile I discovered the namespace to begin MB.MB.TheBeerHouse... It was resolved by removing the default namespace from the project.

If this is not your problem, then I suggest checking the database for a table called aspnet_webevents_events. The table and it's stored procedures must be present.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Breaking the Forums? iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 August 2nd, 2007 02:02 PM
help on forums dennisssss BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 4th, 2007 03:15 AM
Forums in ASP 2.0 notrosh ASP.NET 2.0 Professional 0 May 16th, 2006 11:45 AM
more forums? MiltonBC Forum and Wrox.com Feedback 5 November 12th, 2004 03:15 PM



All times are GMT -4. The time now is 09:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.