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 June 17th, 2009, 09:41 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12 Solution

Hello,

I'm trying to run the solution of Chapter 12 to get a good view of the finished application. I already added all necessary references, and solved all errors except for 3.

When I build the project, 3 errors show up.

Error 1 'ReportMyPTORequests': member names cannot be the same as their enclosing type C:\Documents and Settings\michaelp\Desktop\Chapter12\PaidTimeOffSol ution\PaidTimeOffLocal\Reports\Schemas\ReportMyPTO Requests.Designer.cs 80 45 PaidTimeOffLocal

Error 2 'ReportRoleCapability': member names cannot be the same as their enclosing type C:\Documents and Settings\michaelp\Desktop\Chapter12\PaidTimeOffSol ution\PaidTimeOffLocal\Reports\Schemas\ReportRoleC apability.Designer.cs 80 46 PaidTimeOffLocal

Error 3 'ReportRoleUserAccount': member names cannot be the same as their enclosing type C:\Documents and Settings\michaelp\Desktop\Chapter12\PaidTimeOffSol ution\PaidTimeOffLocal\Reports\Schemas\ReportRoleU serAccount.Designer.cs 80 47 PaidTimeOffLocal

Does anyone have a idea of what this mean and/or how to solve it?

Thanks in advance,

Michaël
 
Old June 18th, 2009, 11:45 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Started over

Hi,

After some research I started over with a clean Chapter 12 download.
  • I've created a virtual folder in ISS that points to PaidTimeOffUI.
  • I've checked if Windows authentication mode is checked within the IIS configuration
  • I changes a username in ENTUserAccounts to 'mydomain\myuserid'
Next I open the solution file provided in de code download. When I build and run the application I have the following problems.
  • Build output : Reference errors, although when I try to make a new reference, I get the error it already exists.
Code:
Cannot update project reference 'V2.PaidTimeOffBLL'. Source project not available.
Cannot update project reference 'V2.PaidTimeOffDAL'. Source project not available.Validating Web Site
  • Internet explorer : Server Application unavailable
  • Event log :
Code:
Failed to initialize the AppDomain:/LM/w3svc/1/ROOT/PaidTimeOffUI

Exception: System.IO.FileLoadException

Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

StackTrace:    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Code:
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.  

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Also, where do I change the connection to my Database? Do I just change it in the dbml file?

Thanks in advance,

Michael
 
Old July 9th, 2009, 10:35 AM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question CHAPT 12 ERRORS

I am getting the following messages after completing all other sections.

Every other part of the application works correctly.

Error 1 The type or namespace name 'ENTAuditObjectEO' could not be found (are you missing a using directive or an assembly reference?) d:\inetpub\wwwroot\PaidTimeOffUI\Administration\Au ditObject.aspx.cs 18 64 http://localhost/PaidTimeOffUI/

Error 2 The type or namespace name 'ENTAuditObjectEO' could not be found (are you missing a using directive or an assembly reference?) d:\inetpub\wwwroot\PaidTimeOffUI\Administration\Au ditObject.aspx.cs 34 50 http://localhost/PaidTimeOffUI/

Error 3 The type or namespace name 'ENTAuditObjectEO' could not be found (are you missing a using directive or an assembly reference?) d:\inetpub\wwwroot\PaidTimeOffUI\Administration\Au ditObject.aspx.cs 64 50 http://localhost/PaidTimeOffUI/





Similar Threads
Thread Thread Starter Forum Replies Last Post
is there any solution for Chapter 8 and 10???? jackSparrow BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 January 14th, 2009 03:27 AM
Need Solution to Chapter 20 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 1 January 26th, 2008 08:12 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM





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