Hi ,
I am busy reading and coding the book "Wrox - ASP.NET 2.0 Website Programming Problem Design Solution" and at the end of chapter 3 ther is an important note as follow, that I didn't understand clearly if I should create a new seprate project inside the existing project , and how can I refrence the project to it. the class WebCustom Event should be made inside this new project.
here is the note:
Note that for custom events to be dynamically loaded correctly when the application starts, they
must be placed in their own pre-compiled assembly. This is because the ASP.NET runtimes try to
load them before the App_Code files are dynamically compiled, so the custom event type
wouldn't be found if you placed the source code there. Because of this, you must create a
separate secondary project for the source code, and reference the compiled .dll file (namedMB.TheBeerHouse.Custom Events.dll) from the main web project. If you add the Library
Project to the solution containing the web project, you'll be able to reference the project instead of
the compiled file, so that an updated version of the DLL will be generated and copied into the web
project's bin folder every time you compile the solution.