p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET Website Programming Problem-Design-Solution (http://p2p.wrox.com/forumdisplay.php?f=23)
-   -   Login failed for user 'NT INSTANS\NETWORK SERVICE' (http://p2p.wrox.com/showthread.php?t=27762)

keysersoze April 6th, 2005 05:58 AM

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?

englere April 6th, 2005 11:17 AM

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.


stu9820 April 6th, 2005 12:26 PM

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

keysersoze April 6th, 2005 01:25 PM

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

All times are GMT -4. The time now is 03:26 AM.

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