Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 July 23rd, 2008, 10:34 PM
Authorized User
 
Join Date: Jul 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default error message using the online albulm

just bought the asp 2.0 instant result book,when i tried to use the code in the book after installing i get the following error message,kindly help me out

Line 1: <?xml version="1.0"?>
Line 2: <configuration xmlns ="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3: <appSettings>
Line 4: <add key="EmailFrom" value="[email protected]" />

busteronline
__________________
busteronline
 
Old July 24th, 2008, 03:17 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Where's the error message? All I see is the code output. You might try removing the "xmlns" attribute. I have never seen that in web.config files before.

-Peter
compiledthoughts.com
 
Old July 25th, 2008, 07:03 AM
Authorized User
 
Join Date: Jul 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:


Line 1: <?xml version="1.0"?>
Line 2: <configuration xmlns ="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3: <appSettings>
Line 4: <add key="EmailFrom" value="[email protected]" />


Source File: C:\inetpub\wwwroot\PhotoGallery\web.config Line: 2


busteronline
 
Old July 25th, 2008, 07:16 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

The compiler is confirming exactly what Peter said.

Ensure you understand the language here, do you know what an Attribute/Element/Node etc is?
Based on that, you can easily deduce that the compiler is complaining about the addition of the xml namespace attribute to the configuration element.

Delete the attribute so the config is simply:
Code:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="EmailFrom" value="[email protected]" />
....
Rob
http://cantgrokwontgrok.blogspot.com





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
Error message don baroo Classic ASP Databases 20 December 7th, 2004 08:31 AM
error message eresina ADO.NET 0 September 22nd, 2004 12:09 PM
Error Message Help?? morpheus Classic ASP Databases 1 April 28th, 2004 10:58 PM
error message help Dai Beginning PHP 1 July 1st, 2003 12:44 PM





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