Subject: error message using the online albulm
Posted By: busteronline Post Date: 7/23/2008 10:34:35 PM
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="admin@myphotoalbum.com" />

busteronline
Reply By: planoie Reply Date: 7/24/2008 3:17:43 PM
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
Reply By: busteronline Reply Date: 7/25/2008 7:03:42 AM
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="admin@myphotoalbum.com" />
 

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


busteronline
Reply By: robzyc Reply Date: 7/25/2008 7:16:01 AM
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:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="EmailFrom" value="admin@myphotoalbum.com" />
....


Rob
http://cantgrokwontgrok.blogspot.com

Go to topic 73003

Return to index page 1