Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 November 6th, 2005, 06:09 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wroxunited.net site not working

I have tried fro the last few days to take a look at the www.wroxunited.net site for comparison, b ut it is not up. I keep getting an

HTTP 400- Bad Request....

Just an FYI...

:DRick

 
Old November 6th, 2005, 07:31 PM
Authorized User
 
Join Date: Dec 2003
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Default

My fault entirely, as I hadn't had time to upgrade the server that the site is running on. However I'm pleased to say that Wrox united is now live.

Dave

 
Old November 6th, 2005, 07:38 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got to it okay now, thanks...

Is there any reason I con't download the code for the entire book versus each chapter one by one?

I have downloaded the chapter 3, and am trying to get the website running on my XP SP2 running Visual Studio 2005 Pro (Final), I have loaded the IIS server, and created the virtual directory, and enable ASP.net 2.0 on the virtual directory. I have copied the chapter 3 code to the c:\websites\wroxunited\ folder. I can open the site in VS 2005, but I get an error:

Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HostingEnvironmentException: Failed to access IIS metabase.]
   System.Web.Configuration.MetabaseServerConfig.MapP athCaching(String siteID, VirtualPath path) +3492170
   System.Web.Configuration.MetabaseServerConfig.Syst em.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActua l(VirtualPath virtualPath, Boolean permitNull) +163
   System.Web.CachedPathData.GetConfigPathData(String configPath) +382
   System.Web.CachedPathData.GetConfigPathData(String configPath) +243
   System.Web.CachedPathData.GetApplicationPathData() +68
   System.Web.CachedPathData.GetVirtualPathData(Virtu alPath virtualPath, Boolean permitPathsOutsideApp) +3385679
   System.Web.Configuration.RuntimeConfig.GetLKGRunti meConfig(VirtualPath path) +189

 How can I fix this?

Rick



 
Old November 6th, 2005, 10:53 PM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

"Is there any reason I con't download the code for the entire book versus each chapter one by one?"
I'll look into getting the whole code package uploaded as one zip on wrox.com at the book's site at:
http://www.wrox.com/WileyCDA/WroxTit...load_code.html
This will be in addition to posting the individual chapters of code with Dave's new smaller version of the code. You'll note from his site that the largest file is now just over 5MB instead of 22Mb.
It will take a few days to get the new smaller files up and to get an answer on posting a full book zip too.

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
 
Old November 7th, 2005, 05:14 AM
Authorized User
 
Join Date: Dec 2003
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Default

Rick

In typical support fashion I have to say I've never seen that error before, although I do know what it means. How to solve it is another matter though.

Things to check:
1. Did the ASP.NET 2.0 installation work OK? I presume so otherwise you would have asked about that.
2. What order did you install in? Did you install ASP.NET before installing IIS? If so, that might be the problem, as the user accounts may not have been configured correctly.

When you install ASP.NET a new user called ASPNET is created and this is the user who owns the ASP.NET process - that is, all ASP.NET applications run as though they wre the ASPNET user. The error message indicates that this user isn't allowed to run web applications (the IIS metabase is what controls the IIS web server).

There may be a solution though, as ASP.NET 2.0 doesn't require IIS. You can open a web application from within VS 2005 and just press F5, which will launch the ASP.NET Web Server, a small lightweight web server designed for development. All of the samples will work using this.

Oh, and there is now a single download for all chapter samples. Bear in mind that this is my web server and has very limited bandwidth. If preferrable use the Wrox site for downloads, although it may take a couple of days to get the new files up there.

Dave






Similar Threads
Thread Thread Starter Forum Replies Last Post
wroxunited.net mumerikk BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 8 February 1st, 2011 11:56 AM
username and password on wroxunited.net clem99 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 March 26th, 2008 07:46 AM
WroxUnited not working with IIS Solved TieDyeGeek BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 October 13th, 2007 04:28 PM
No players at wroxunited.net Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 October 5th, 2007 06:33 AM





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