Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 24th, 2009, 08:56 PM
Registered User
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compilation Error in Ch-4

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.

Last edited by swati26; August 24th, 2009 at 08:58 PM..
 
Old September 1st, 2009, 01:48 PM
Authorized User
 
Join Date: Apr 2009
Posts: 41
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Try deleting the temporary files.

http://www.google.com/search?hl=en&s...+CS0433&aqi=g8
 
Old September 1st, 2009, 10:40 PM
Registered User
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I did try doing that. But, the compilation error is given saying that the corresponding temporary files are missing in the specified folders.
 
Old September 1st, 2009, 10:43 PM
Registered User
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I did try doing that. But, the compilation error is given saying that the corresponding temporary files are missing in the specified folders.

The code-behind files (for the master page) have partial class implementation. Is this the cause of this trouble?





Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation error venkatad ASP.NET 2.0 Professional 1 February 10th, 2009 05:09 PM
Error: Microsoft VBScript compilation error '800a0409' webXtreme Classic ASP Basics 4 February 4th, 2009 03:58 AM
Compilation Error don baroo ASP.NET 1.0 and 1.1 Basics 2 August 26th, 2005 08:05 PM
ch.4 - I do not get the compilation error dad62896 BOOK: Beginning ASP.NET 1.0 2 February 11th, 2005 04:20 AM





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