Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
|
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 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
  #1 (permalink)  
Old June 26th, 2003, 09:50 PM
Registered User
 
Join Date: Jun 2003
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
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
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
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





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





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