Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books 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
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2003, 09:50 PM
Registered User
 
Join Date: Jun 2003
Location: Burlingame, CA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning ASP.NET E-Commerce (ADO error)

I am just beginning to study "Beginning ASP.NET E-Commerce with Visual Basic.Net and Visual Studio.Net"

Here is my problem:

I have a login problem with the MSDE database. I guess it may be caused by web.config file. But I still don't know how to set to authentication mode in the web.config file through its code or any other way.


When I mannuelly do, I can only create a new database by Use Window NT Integrated Security. If I use SQL Server Autherntication, it will show me the error msg "ADO Error: ' Login falled for user 'sa'. Reason: Not associated with a trusted SQL Server connection'"

Now in the web.config file. I have followed the book used
<appSettings>
    <add key="ConnectionString" value="Server=Home\NetSDK;User ID=sa; Password=; Initial Catalog=WroxJokeShop" />
  </appSettings>

Certainly it showed me Server Error in '/WroxJokeShop' Application.
----------------------------------------------------------------------

Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.

Source Error:


Line 11:
Line 12: ' Open the connection
Line 13: connection.Open()
Line 14:
Line 15: ' Return a SqlDataReader to the calling function



Would you tell me how could I solve the problem if you know?

Thanks a lot,

Diana (dianastudy3@yahoo.com)

Diana
  #2 (permalink)  
Old July 15th, 2003, 07:52 AM
Registered User
 
Join Date: Jul 2003
Location: Portsmouth, Hampshire, United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Diana, I am having exactly the same problem but from a different book.
Have you managed to resolve the situation, if so can you tell me how you did it.
Cheers
Andrew from England

  #3 (permalink)  
Old July 30th, 2003, 11:40 PM
Registered User
 
Join Date: Jun 2003
Location: Burlingame, CA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by staggy
 Hi Diana, I am having exactly the same problem but from a different book.
Have you managed to resolve the situation, if so can you tell me how you did it.
Cheers
Andrew from England

Andrew,
Sorry I didn't check my email these days.
I will let you know when I figure it out. I don't have time right now but I will deal with it after my final exam done. You probably have already solved it now. Would you let me know how do you fix it if you do? Thanks.

Diana (dianastudy3@yahoo.com)

Diana
  #4 (permalink)  
Old July 30th, 2003, 11:51 PM
Registered User
 
Join Date: Jun 2003
Location: Burlingame, CA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Andrew,

Check this link for detail, it may help you. But I got a new problem and it is not necessary apply to you.

http://p2p.wrox.com/topic.asp?TOPIC_ID=1702

Diana

Diana
Closed Thread


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
Beginning ASP.NET 2.0 E-Commerce in C# 2005 ckinds BOOK: Accessible XHTML and CSS Web Sites: Problem Design Solution 1 November 4th, 2006 06:09 PM
Help!About Beginning ASP.NET E-commerce eddiexie All Other Wrox Books 1 March 25th, 2005 09:42 AM
Beginning ASP.NET E-Commerce attipa All Other Wrox Books 1 July 11th, 2003 09:15 AM



All times are GMT -4. The time now is 03:33 PM.


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