Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 3rd, 2006, 06:47 PM
Registered User
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default error message

hi i wonder if anyone can help i`m on chapter 2 of the book and just created the master page (site.master) when i go to design view the wrox logo in the top left corner will not display the rest of the page looks ok.

also when i try to run the site in my browser i get this error message

Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\begASPNET2\chapters\chapter_2\Begin\Chapter02\W eb.config 26

if anyone can help that would be great thanks




 
Old February 3rd, 2006, 07:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Sounds like you opened the application one directory too high.

Did you open the last Chapter02 folder as the application root? That is, did you browse to that folder when you chose "Open website" in VWD or did you open Begin?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 3rd, 2006, 07:07 PM
Registered User
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i opened the begin folder if thats any help ;)

this path

file:///C:/begASPNET2/chapters/chapter_2/Begin/
 
Old February 3rd, 2006, 07:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, open the Chapter02 folder and your problem should go away. Then Chapter02 is the root, so it is allowed to have its own web.config with specific settings.

This may also cure the image problem if, for example, the image links to ~/Images/SomeImage.jpg.

When you open the Begin folder, the Images folder is supposed to be at Begin/Images while most likely it's under Chapter02/Images.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 3rd, 2006, 07:17 PM
Registered User
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the reply i just realised what you was hinting at would never have found it cheers mate :D:D:D:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error message for a 500 server error? chobo2 C# 2005 1 May 4th, 2008 03:11 AM
Where does the error message go? Wei Wang BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 13th, 2006 02:03 PM
Error Message alannoble26 Excel VBA 4 November 25th, 2005 11:20 AM
error message. Tasha Access VBA 2 August 11th, 2004 11:07 PM
Help with Error message mariakovacs Classic ASP Databases 3 October 10th, 2003 03:59 PM





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