Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 April 6th, 2005, 05:58 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login failed for user 'NT INSTANS\NETWORK SERVICE'

Hi everybody!

I´ve got a problem trying to connect to my SQL Server. This is when I'm trying to access account.aspx or admindefault.aspx from login.aspx. I'm getting the following error:

Login failed for user 'NT INSTANS\NETWORK SERVICE'

I know that I can't grant access for this account in SQL Server, but how do I get rid of it in my application? I'm not using this account in my web.config! So, where do the application get this user from?

 
Old April 6th, 2005, 11:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This must be the account that ASP.NET is using on your system, specified in machine.config.

You should be able to grant that account access in SQL Server, but you can also set up impersonation if you want to use a different account.

You could also use Windows authentication to use a user's own account if you have a company-specific network webserver.

Please get a good intro book on ASP.NET. The book "ASP.NET Website Programming Prob-Design-Solution" is not an intro book.

Eric
 
Old April 6th, 2005, 12:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The network service account is the default ASP.NET for Win 2k3.

 
Old April 6th, 2005, 01:25 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys! It worked up fine with impersonation in web.config.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGO hexOffender ASP.NET 1.0 and 1.1 Basics 2 October 24th, 2008 07:26 AM
failed for user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Professional 5 March 26th, 2007 05:16 AM
user 'NT AUTHORITY\NETWORK SERVICE' GS ASP.NET 2.0 Basics 0 March 25th, 2007 10:58 AM
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.