Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 6th, 2007, 07:28 PM
Authorized User
 
Join Date: Mar 2007
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JoinTTT
Default 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?




  #2 (permalink)  
Old April 7th, 2007, 03:21 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
  #3 (permalink)  
Old April 7th, 2007, 03:49 PM
Authorized User
 
Join Date: Mar 2007
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JoinTTT
Default

Thank you very much, Imar.

I figured my issue out with your help.

I will continue to read your book.

Best Wishes!

  #4 (permalink)  
Old April 7th, 2007, 04:13 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
  #5 (permalink)  
Old April 7th, 2007, 04:30 PM
Authorized User
 
Join Date: Mar 2007
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JoinTTT
Default

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 :)

  #6 (permalink)  
Old April 7th, 2007, 04:33 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop Connection hari raghav Windows Server 3 June 9th, 2008 12:46 PM
SQL remote connection gcharri SQL Server 2000 0 March 26th, 2008 03:42 PM
How to make an xmlhttprequest to a remote server leels_bee BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 November 2nd, 2006 02:02 PM
Remote database connection tdaustin Classic ASP Databases 0 November 28th, 2005 11:28 PM
creating a remote connection Adam H-W SQL Server 2000 1 February 10th, 2005 08:33 AM



All times are GMT -4. The time now is 05:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.