Question : System.Data.SqlClient.SqlException: 'NetworkService' is not a valid Windows NT name.

My Shared Services Provider has stopped working - when I browse to the SSP admin site I get "An unexpected error has occurred" (see attached screenshot) and in my ULS log I get the following 3 errors:

(Watson Reporting Cancelled) System.Data.SqlClient.SqlException: 'NetworkService' is not a valid Windows NT name. Give the complete name: <domain\username>. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.Sqrity security) at Microsoft.Office.Server.Administration.SharedResourceProvider.SynchronizeAccessControl(SharedComponentSecurity sharedApplicationSecurity) at Microsoft.Office.Server.Administration.SharedResourceProvider.Microsoft.Office.Server.Administration.ISharedComponent.Synchronize()

Synchronization for Shared Services Provider 'SharedServices1' has failed. The operation will be retried. Reason: 'NetworkService' is not a valid Windows NT name. Give the complete name: <domain\username>. Technical Support Details: System.Data.SqlClient.SqlException: 'NetworkService' is not a valid Windows NT name. Give the complete name: <domain\username>. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlComman

SqlCommand: 'sp_grantlogin' CommandType: StoredProcedure CommandTimeout: 0 Parameter: '@loginame' Type: NVarChar Size: 128 Direction: Input Value: 'NetworkService'

I am not sure where this reference to the NetworkService account is coming from.  I have systematically changed the application pool IDs from Network Service to named domain accounts and that has not fixed the problem, and I am running out of ideas.

Any suggestions?
Attachments:
 
Screenshot of error when viewing SSP admin page
Screenshot of error when viewing SSP admin page
 

Answer : System.Data.SqlClient.SqlException: 'NetworkService' is not a valid Windows NT name.

Try: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22688282.html

This solution is for image files rather than HTML but the principle is the same. Export the registry settings from a machine you have setup how you want and then deploy them via policy.
Random Solutions  
 
programming4us programming4us