Quantcast
Channel: SQL Server Setup & Upgrade Forum
Viewing all articles
Browse latest Browse all 7701

deployment issue - Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

$
0
0

I am attempting to deploy a site from my development PC to my server. I have no issues running the site on the server using VS2010 Express Web in debug. All page queries are working within the debugger. The connection strings are identical between the PC and Server, except the host name.

connectionString

="Data Source=SOCIALSERVER;Initial Catalog=Intake_be;Integrated Security=True"

However, when using the site normally via IIS, the pages containing data access are failing with a permissions problem. The non-data access pages render normally.Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

Looking at the SQL2005 instance via SQL Management Studio, I see security folder with Logins under the Server. NTA\NS is listed as a user login. But, I also see similar folders under each of 3 databases. NTA\NS is not listed as a login specific to my target dB.

My site is for internal (intranet) use only. There is no internet access into my IIS. This is my first deployment into production. I think I only need Windows Authentication but I lack the experience to make a good decision. My goal is to allow domain users to access pages that produce read only data. But, I also need controlled access to pages that can modify data. I used the native winform template for ASP.NET 4, which includes some roles based security.

How do I grant permissions for internal users on the pages that access SQL data? How does that security model work with the native roles based security? i.e.

add

name="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="ApplicationServices"... etc.

Thanks for your time and patience on this Deployment 101 type issue.

Kurt


Viewing all articles
Browse latest Browse all 7701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>