NT AUTHORITY\NetworkService Access denied

I am having a problem with sharepoint services and sqlexpress.  My system was running just fine, and I did a dcpromo to make the system a DC.  Now, the SQL services will not start along with Sharepoint service.  
The sharepoint and sql are configured to run on NT AUTHORITY\NetworkService.  

I get the following errors in event viewer

Event Type:      Error
Event Source:      ASP.NET 2.0.50727.0
Event Category:      None
Event ID:      1088
Date:            8/3/2007
Time:            8:33:38 AM
User:            N/A
Computer:      XXX
Description:
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.  

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Event Type:      Warning
Event Source:      ASP.NET 2.0.50727.0
Event Category:      None
Event ID:      1073
Date:            8/3/2007
Time:            8:33:38 AM
User:            N/A
Computer:      TOC1
Description:
Failed to initialize the AppDomain:/LM/W3SVC/415611546/Root

Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
StackTrace:    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type:      Error
Event Source:      SPAdmin
Event Category:      None
Event ID:      0
Date:            8/3/2007
Time:            6:58:36 AM
User:            N/A
Computer:      TOC1
Description:
Service cannot be started. System.ComponentModel.Win32Exception: The group name could not be found
   at Microsoft.SharePoint.AdministrationOperation.Win32.SPNetApi32.NetLocalGroupGetMembers(String groupName)
   at Microsoft.SharePoint.AdministrationService.SPAdministrationService.RegisterSPAdministrationOperation()
   at Microsoft.SharePoint.AdministrationService.SPAdministrationService.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Event Type:      Error
Event Source:      MSSQL$SQLEXPRESS
Event Category:      (2)
Event ID:      17053
Date:            8/3/2007
Time:            6:58:13 AM
User:            N/A
Computer:      TOC1
Description:
UpdateUptimeRegKey: Operating system error 5(Access is denied.) encountered.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 9d 42 00 00 10 00 00 00   B......
0008: 10 00 00 00 54 00 4f 00   ....X.X.
0010: 43 00 31 00 5c 00 53 00   X.X.\.S.
0018: 51 00 4c 00 45 00 58 00   Q.L.E.X.
0020: 50 00 52 00 45 00 53 00   P.R.E.S.
0028: 53 00 00 00 00 00 00 00   S.......

Event Type:      Error
Event Source:      MSSQL$SQLEXPRESS
Event Category:      (2)
Event ID:      17053
Date:            8/3/2007
Time:            6:58:13 AM
User:            N/A
Computer:      TOC1
Description:
UpdateUptimeRegKey: Operating system error 5(Access is denied.) encountered.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 9d 42 00 00 10 00 00 00   B......
0008: 10 00 00 00 54 00 4f 00   ....T.O.
0010: 43 00 31 00 5c 00 53 00   C.1.\.S.
0018: 51 00 4c 00 45 00 58 00   Q.L.E.X.
0020: 50 00 52 00 45 00 53 00   P.R.E.S.
0028: 53 00 00 00 00 00 00 00   S.......


I looked for the NT AUTHORITY\NetworkService in the directory but can not find it.

Any ideas?




LVL 1
sterudpaAsked:
Who is Participating?
 
Da1KingCommented:
Wow talk about odd errors.  Regardless the problem is obviously a permissions issue with the account that is being used the run those services.  First option that comes to mind would be to change the account that those services are using.

Start -> Run -> Services.msc.

Look for the services in question.  I would imagine those would be MSSQLExpress, NET Runtime Optimization Service v2.0.50727, ASP.NET State Service.  Double click on the first and then click on the 'Log On' tab.  Change the 'Log on as' option from 'This account...' to 'Local system account'.

I am fairly certain that will for sure resolve the MSSQLExpress problem.  However I am not 100% sure about the ASP.NET.  However here are some links to steps to try.  These steps are to resolve errors that are similar but not exactly the same as yours.

Error message when you try to run an ASP.NET 2.0 application on a Windows Server 2003-based computer: "Server unavailable" - http://support.microsoft.com/kb/933638

EventID.net - http://www.eventid.net/display.asp?eventid=1073&eventno=7126&source=ASP.NET%202.0.50215.0&phase=1

With regards to the ASP problems I would attempt the instructions in these links before the service account change.  I know the link to Microsoft isn't exactly your situation however the error is describes it nearly the same.  Once you change those service accounts around it can be a bear to change them back.

0
 
sterudpaAuthor Commented:
changing the services to a local system worked, and then I just uninstalled .net 2.0 and sharepoint and  that seemed to take care of it.

Thanks for your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.