 |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
 | This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
|
|
|
|
|

April 21st, 2011, 04:33 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Login problem
When I am trying to login to my planetwrox web site, I am getting this error in web browser.
The database filename can not contain the following 3 characters: [ (open square brace), ] (close square brace) and ' (single quote)
Please help me.
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 21st, 2011, 04:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Can you provide more information? How are you browsing to the site? How does your connection string in web.config look? What's the name of the database?
Without information like this, it's hard to tell what's wrong...
Cheers,
Imar
|
|

April 21st, 2011, 06:51 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have a connection string of planetwrox database and in membership this is my code.
Code:
<membership>
<providers>
<clear />
<addname="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"connectionStringName="LocalSqlServer"enablePasswordRetrieval="false"enablePasswordReset="true"requiresQuestionAndAnswer="true"applicationName="/"requiresUniqueEmail="false"passwordFormat="Hashed"maxInvalidPasswordAttempts="5"minRequiredPasswordLength="7"minRequiredNonalphanumericCharacters="1"passwordAttemptWindow="10"passwordStrengthRegularExpression=""/>
</providers>
</membership>
__________________
Happy coding...
Arnab Roy Chowdhury.
Last edited by arnab-jit; April 22nd, 2011 at 08:38 AM..
|
|

April 21st, 2011, 07:19 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
I have a connection string of planetwrox database and in membership this is my code
|
Since you're having a problem with the connection to the database, posting the connection string might help.
When you post code, can you paste and copy it to Notepad first and then use the Code button (#) on the toolbar? Makes the code easier to read.
Cheers,
Imar
|
|

April 22nd, 2011, 08:16 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
My connection string area is :
Code:
<connectionStrings>
<add name="PlanetWroxConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\PlanetWrox.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
Member ship area :
Code:
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<authentication mode="Forms"/>
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 22nd, 2011, 08:25 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Is your connection string all on one line in your web.config file?
Imar
|
|

April 22nd, 2011, 08:31 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes all in one line....
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 22nd, 2011, 08:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Then I don't know what's going on.
The only thing I can see is that your connection string is called PlanetWroxConnectionString1, while your providers make use of LocalSqlServer. Maybe the latter one is incorrect (did you make changes to machine.config)?
If this doesn't help, you need to supply *a lot* more information about your set up, how you run the site, where, when and how you get this error and so on. Please be as specific as possible or I can't help you.
Cheers,
Imar
|
|

April 22nd, 2011, 09:05 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In the connection string area i have the connection string for my database named planetwrox. But I am having problem with menbership, role, profile, which is maintained by aspnetdb.mdf. It reads by the SqlMembershipProvider from machine.config. I am using this provider not from machine.cofig but from web.config of my application. ASP.NET create this aspnetdb.mdf database when we first try to login. But when I try to login first time it is showing the error.
Now please help me.
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 22nd, 2011, 09:19 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
This is still not enough.
Did you modify machine.config? If you look at that file do you see the LocalSqlServer connection string? What code does it contain? Can you see the database being created in App_Data? Do you have a local SQL Server instance called Sql Express?
What happens when you try File | New Web site, throw a CreateUserWizard on a page and try to register for an account? Does that work?
And so on and so forth yadadada
Yiu have to help me help you or I can't help you. I am not psychic so I need information about your system, site and situation....
Imar
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Login Problem |
dpandit |
BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 |
3 |
March 17th, 2008 02:47 PM |
| Login Problem |
moonsrisun |
ASP.NET 2.0 Professional |
1 |
May 24th, 2007 11:48 PM |
| Login Problem |
sumith |
ASP.NET 1.0 and 1.1 Professional |
3 |
March 11th, 2007 10:57 PM |
| Login problem |
slice2116 |
ASP.NET 2.0 Basics |
5 |
July 6th, 2006 11:58 AM |
| Problem with Login -- HELP |
chiefg |
BOOK: ASP.NET Website Programming Problem-Design-Solution |
1 |
February 3rd, 2004 04:26 AM |
|
 |