Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 September 8th, 2009, 06:55 PM
Authorized User
 
Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default login to sql failed

hi,
i get the following error when testing the ch2 insertion :
Cannot open database "OneAfrik" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
how do i setup the connection. i don't know where the code takes the user above. where can i change it?
thx, Georges
 
Old September 9th, 2009, 12:18 AM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two ways solution

I has the same trouble in these chapter.

I found two ways to solve it.

Solution 1. Change the connectionstring to one that contain a user and a password. I mean, don't use the Windows Account. (this is the easiest way, but i prefer the other one).

Solution 2. These have some steps.
  1. Change the Web.config. Open the web.config and look for the <authentication mode="Windows" /> declaration. And uncomment it or set it (must be inside <system.web> tags).
  2. Change the IIS authentication properties. Go to Start>Control Panel > Administrative Tools (or something like that, my windows is a spanish version) > Internet Information Server Manager (IIS) (or something like that you must know how).
    In the IIS Manager, select the PaidTimeOffUI Application from Sites (in the left), and in the middle panel, scroll down and search for Authentification, double click it, and disable the anonymous Authentification, but enable the Basic Authentification or Windows Authentification.
  3. Use your Windows Account. When you try to load the application in the browser, it should ask you for an account and a password. You should use your Windows User (like PCName/UserName), and your password. If your computer don't have a login password, I encourage you to enable it.

    I hope my bad english don't confuse you more.
 
Old September 9th, 2009, 12:00 PM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default The step one is optional

just to say the step one is optional.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql Server Login Failed error a42 ASP.NET 1.0 and 1.1 Basics 3 December 14th, 2004 05:19 PM
SQL Server / Login failed for user 'NT AUTHORITY ElPato ASP.NET 1.0 and 1.1 Basics 2 November 14th, 2004 10:03 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM
sql server login failed rizp SQL Server 2000 10 September 11th, 2004 03:01 AM





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