Subject: error with chapter 7
Posted By: busteronline Post Date: 7/23/2008 11:06:13 PM
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" />

how can i solve dis problem

busteronline
Reply By: Imar Reply Date: 7/24/2008 1:01:47 AM
What problem exactly? All I see is an XML config file.

Do you get an error? Can you post the message and describe your setup in more detail?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/24/2008 11:02:37 AM
xmlns not recognised,is d error message,as in not a valid object

busteronline
Reply By: Imar Reply Date: 7/24/2008 11:10:16 AM
I doubt that .NET throws exceptions with a lot of spelling mistakes, so I doubt that's the real error message. ;-)

If you want help, you have to help me help you.
So, please post the relevant error message; tell me the web server you are using, how you set up the program etc.

I hope you understand I cannot really help you based on a text like: " xmlns not recognised,is d error message,as in not a valid object".

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/25/2008 7:11:28 AM
Thanks so much for ur quick response, am actually using IIS SERVER on windows xp professional, the file is in my inetbiu folder ,root folder as seen in the eror part, i also have installed on my system,vb .netnet,vb 2003 and vb2005. The error message is as follows.thanks

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: Imar Reply Date: 7/25/2008 7:58:04 AM
Is this the entire error message? Does it say something about the .NET version at the bottom?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/25/2008 4:37:06 PM
Version Information: Microsoft .NET Framework Version:1.0.3705.6018; ASP.NET Version:1.0.3705.6018

busteronline
Reply By: Imar Reply Date: 7/25/2008 5:23:46 PM
There we are.... had you posted the full message right from the start, you could have fixed this problem a long time ago.

Go into IIS, locate your web site and open up its Properties dialog. Then switch to the ASP.NET tab and make sure that .NET 2.0 is selected in the version drop down.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/25/2008 7:15:30 PM
Thanks,finally i got in by going to start the sql 2005 server, but when i tried to enter the admin area with the following details i was denied entry
username = password#
password = password#

pls what shoud i use
thanks



busteronline
Reply By: Imar Reply Date: 7/26/2008 2:34:29 AM
Did you also had to change IIS? I can't believe it's just SQL Server.

Anyway, I doubt that the password is the same as the username; check out page 217 ans 218 for the different user accounts.

Cheers,

Imar




---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/29/2008 1:06:28 AM
Thanks so much,i cant use d admin passwrd and the recovery stuff,when i use the admin as d username and the password# as the password as instructed,the system would not allow me to log on,also as the superadmin,when i tried d password recovery method it asked me for the name of my dog which i dont know as the secret question but this is not treated in the book,what is d solution thanks

busteronline
Reply By: Imar Reply Date: 7/29/2008 12:11:25 PM
Hi there,

I just downloaded the source, opened the web site in VWD, browsed to it in my browser and then logged in. Works fine.

So, something else must be wrong.

How did you set up the site / browse to it? What database are you using? The one in App_Data?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 7/30/2008 2:03:04 AM
am using iis, i actually installed the site on my www root files where i always keep my web files,i have installed on my system mssql 2000, also microsoft sql server 2005,but i did not change the app stuff when the installer finished the installation into the www folder,i always view it using my localhost,thanks

busteronline
Reply By: Imar Reply Date: 7/30/2008 7:39:14 AM
quote:
have installed on my system mssql 2000, also microsoft sql server 2005
Maybe that's the problem?

The setup assumes you are using .\SqlExpress. .NET will create a database for you in App_Data without users, unless you reconfigure the system.

Take a look at the Web.config file for the BugBase chapter; it shows you how to reconfigure the system so it looks for database at a location other than App_Data / .\SqlExpress.

Additionally, you may find this useful:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395
http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx

Finally, try this:

1. Take the source for the application.

2. Choose File | Open Web Site in VWD

3. Hit Ctrl+F5

Does it work then?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply By: busteronline Reply Date: 8/21/2008 1:44:09 PM
i still cannot access the admin side of the panel with the user name and password
i even note that this goes for all the chapters of the book
i have read the materials u recommended but i dont know what d problem is
thanks

busteronline
Reply By: Imar Reply Date: 8/21/2008 3:22:26 PM
Hi there,

Did you try the last 3 steps I described? Working from the original source from the Wrox site should definitely work if you have a local version of SQL Server installed at .\SqlExpress.

Otherwise, try removing the security altogether using the WSAT (or modifying web.config directly) so you can see at least what's inside. Additionally, you could try creating a brand new account using the WSAT.

If that doesn't help, you'll need to provide more information about your setup (e.g. instance name of SQL server, web server, setup of the application and so on).

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

Go to topic 73492

Return to index page 1