Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce 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
 
Old November 3rd, 2003, 07:39 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 Login Failed

Please can anyone help me with this problem. I have checked all of the forums for this problem and even though there are two listed (they are using SQL Server 2000 and i am using MSDE) i still can't get this to work.

My web config code is as follows
-------------------------------------------

<appSettings>
<add key="ConnectionString" value="Server=(local)\NetSDK;integrated security=sspi;Initial Catalog=ScentSation" />
</appSettings>

--------------------------------------------

I am using intergrated security and my database name is ScentSation. The problem i recieve when i run my program is

Server Error in '/ScentSation' Application.
----------------------------------------------------------------------

Login failed for user 'SCENTSATION1980\ASPNET'.
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 'SCENTSATION1980\ASPNET'.

Source Error:


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


Source File: C:\ScentSation\ScentSation\BusinessObjects\Catalog .vb Line: 13

Stack Trace:


[SqlException: Login failed for user 'SCENTSATION1980\ASPNET'.]
   System.Data.SqlClient.SqlConnection.Open() +761
   ScentSation.Catalog.GetDepartments() in C:\ScentSation\ScentSation\BusinessObjects\Catalog .vb:13
   ScentSation.DepartmentsList.Page_Load(Object sender, EventArgs e) in C:\ScentSation\ScentSation\UserControls\Department sList.ascx.vb:39
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +29
   System.Web.UI.Control.LoadRecursive() +92
   System.Web.UI.Control.LoadRecursive() +92
   System.Web.UI.Page.ProcessRequestMain() +724

Please help as i have trying to solve this matter for nearly two weeks now. Do i have to do anyting in the IIS manager to give my database read/write permission. I have followed the book word by word. Please help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login failed for user. Protoman Classic ASP Databases 3 January 13th, 2008 01:23 PM
Getting 'Login failed for user ' Squeakrz44 VB.NET 2002/2003 Basics 0 November 18th, 2006 06:09 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





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