I have managed to run the code till Ch-3. I've followed the textbook, except that the UI layer is created as a web-application instead of a web-site.
Some of the differences, I found, are as follows:
- There is no App_Code folder in PaidTimeOffUI. So, all the .cs files are created in the PaidTimeOffUI folder.
- For every master page created, .designer.cs file is also created automatically along with the .master.cs and .master files.
On building this solution, I get no errors. But, on debugging, I get the following error, which I'm not getting rid off.
Compiler Error Message: CS0433: The type 'PaidTimeOffEditPage' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\root\059abcff\5098887d\App_Web_oe7u0p--.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\root\059abcff\5098887d\assembly\dl3\c4b2ce94 \20dbfbc6_d421ca01\PaidTimeOffUI.DLL'
Source Error:
Line 19: protected void Page_Load(object sender, EventArgs e)
Line 20: {
Line 21: Master.SaveButton_Click += new PaidTimeOffEditPage.ButtonClickedHandler(Master_Sa veButton_Click);
Line 22: Master.CancelButton_Click += new PaidTimeOffEditPage.ButtonClickedHandler(Master_Ca ncelButton_Click);
Line 23: }
Source File: c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\PaidTimeOffSol\PaidTimeOffUI\Adminis tration\User.aspx.cs Line: 21
It would be great if someone could help me out from this problem.