 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
 | This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 6th, 2007, 07:28 PM
|
|
Authorized User
|
|
Join Date: Mar 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
WebShop : I cannot make remote connection
Hi
I run the all code for Chapter 5. Very good this book.
I made change in web config for connecting db remotely. I comment the original line. and I added new line with same add name.
<connectionStrings>
<add name="WebShop" connectionString="Data Source=(local)\SQLExpress;Initial Catalog=WebShop;User ID=sa;Password=xxxx" providerName="System.Data.SqlClient"/>
</connectionStrings>
But When I try to run webshop, I got this error ("Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.")
Why do I this error?
|
|

April 7th, 2007, 03:21 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Where does the SA user name and password come from? What makes you think this all of a sudden works? That is, the fact you're using these details must mean you configure an account like that somewhere?
You may want to take a look here for more details about connecting to SQL Server: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395
I think the most likeliest thing to do is change "(local)\SQLExpress" to the name of your remote SQL Server.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

April 7th, 2007, 03:49 PM
|
|
Authorized User
|
|
Join Date: Mar 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you very much, Imar.
I figured my issue out with your help.
I will continue to read your book.
Best Wishes!
|
|

April 7th, 2007, 04:13 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Great, glad it's working.
For the benefit of the archive of this forum, would you mind sharing how you solved it?
Have fun with the book.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

April 7th, 2007, 04:30 PM
|
|
Authorized User
|
|
Join Date: Mar 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am sorry about it.
Very stupid mistake I made.
From Sql Server Management Studio Express, I get in server properties --> Security Tab.
And I am very surprised to see that Server Authentication is Windows Only. So I choose Sql Server and Windows Authentication Mode.
Then it fix.
and your article in your site get 5 score :)
|
|

April 7th, 2007, 04:33 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Right, I see.
Although that works, you may still want to switch back to Windows / Integrated Security, as it's more secure than SQL authentication (because you don't have to store and pass around the passwords for the user account).
Anyway, glad the article helped.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|
 |