Solved

Cannot log in to WSUS console.  ASP.NET errors in event log. HELP!

Posted on 2009-07-14
7
2,003 Views
Last Modified: 2012-05-07
I attempted a fresh new installation of WSUS 3.0 SP1 on a windows 2003 server.  The server is a domain controller and it also runs SQL 2005 and backup exec 12.5.

I used the windows internal database for wsus.  At the end of the wsus install I saw the following error:
At the end of install, got an error saying "an
unexpected error occurred, and this wizard must be closed.  You may restart
the wsus server configuration wizard from the options page in the WSUS 3.0
console. Then Microsoft.UpdateServices.UI.00BEWixard.exe has encountrered a
problem and needs to close.  We are sorry for the inconvenience.

I've tried removing and reinstalling WSUS.  I've checked the permissions on everything and it all looks ok.  I verified network service account had the correct permissions to the temp folders in windows and that the path  variables are correct.  I've tried a repair install of .net framework using aspnet_regiis.exe -i

I'm at a loss here.  I still cannot log in to the mmc console and connect to this server's instance of WSUS and those asp.net errors appear in the event log since the wsus install.

Event code: 3007
Event message: A compilation error has occurred.
Event time: 7/14/2009 7:33:11 AM
Event time (UTC): 7/14/2009 11:33:11 AM
Event ID: 5a7a43299a9c4594bae646f27ff2cf3f
Event sequence: 3
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1755388587/ROOT/ApiRemoting30-1-128920447908936602
    Trust level: Full
    Application Virtual Path: /ApiRemoting30
    Application Path: C:\Program Files\Update Services\WebServices\ApiRemoting30\
    Machine name: ATL-SERV-1
 
Process information:
    Process ID: 728
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: HttpCompileException
    Exception message: (0): error CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\apiremoting30\ae21e50a\385ce470\App_global.asax.sasgns94.dll' -- 'Access is denied. '
 
Request information:
    Request URL: http://atl-serv-1:8530/ApiRemoting30/WebService.asmx
    Request path: /ApiRemoting30/WebService.asmx
    User host address: 10.102.2.101
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0
Comment
Question by:NBF
  • 4
  • 2
7 Comments
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
you might have missed some additional permissions


http://www.eggheadcafe.com/conversation.aspx?messageid=33111934&threadid=33073671

The most likely cause here is that you have incorrect permissions on theTemporary ASP.NET Files folder.Make sure that the NTAUTHORITY\Network Service account has WRITE permissionson "Temporary ASP.NET Files", and that those permissions are inherited toall files and subfolders.

0
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
If that doesnt work I would uninstall WSUS, uninstall IIS. Reinstall IIS with ASP.NET, Reinstall WSUS.
0
 

Author Comment

by:NBF
Comment Utility
I have uninstalled wsus, iis, asp.net and .net framework 2 3 and 3.5

I reinstalled all of the starting in the order listed above except wsus was last.

I am still having issues.  I verified the temp asp.net directory for all of the .net framework versions has the correct permissions for network service account.  

This is a production windows 2003 server and we really need to get this working.  This server is also a domain controller and running SQL 2005 although wsus is set to use the windows internal database.  We have 2 other servers in remote locations that are working and have a very similar configuration.  Any other suggestions?

Here is examples of what I am seeing in the application event log.

EVENT ID 1310:

Event code: 3007
Event message: A compilation error has occurred.
Event time: 7/15/2009 12:30:13 AM
Event time (UTC): 7/15/2009 4:30:13 AM
Event ID: b590ff7aff42489abe81be9419bd094d
Event sequence: 3
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1431982452/ROOT/ApiRemoting30-16-128921058127626396
    Trust level: Full
    Application Virtual Path: /ApiRemoting30
    Application Path: C:\Program Files\Update Services\WebServices\ApiRemoting30\
    Machine name: ATL-SERV-1
 
Process information:
    Process ID: 7784
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: HttpCompileException
    Exception message: (0): error CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\apiremoting30\9341bae7\73273fa8\App_global.asax.1o368-ds.dll' -- 'Access is denied. '
 
Request information:
    Request URL: http://atl-serv-1:8530/ApiRemoting30/WebService.asmx
    Request path: /ApiRemoting30/WebService.asmx
    User host address: 10.102.2.101
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
 
 

EVENT ID 18456:

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. [CLIENT: <named pipe>]


EVENT ID:  12042, 12022, 12032, 12012, 12002

The Reporting Web Service is not working.
The API Remoting Web Service is not working.
The Server Synchronization Web Service is not working.
The Client Web Service is not working.
The SimpleAuth Web Service is not working.
The DSS Authentication Web Service is not working.


EVENT ID 17207
FCB::Open: Operating system error 5(Access is denied.) occurred while creating or opening file 's:\WSUS\\UpdateServicesDbFiles\SUSDB.mdf'. Diagnose and correct the operating system error, and retry the operation.

EVENT ID 7053

The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,

Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.


System.NullReferenceException -- Object reference not set to an instance of an object.

Source
Microsoft.UpdateServices.UI.SnapIn

Stack Trace:
   at Microsoft.UpdateServices.UI.SnapIn.Pages.ServerSummaryPage.backgroundWorker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)




0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
Lets straighten out your permissions
 
What are the correct IIS and NTFS permissions for WSUS?
0
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
You might have had more success with a better removal of WSUS before reinstall
 
How to manually remove all of WSUS
0
 

Accepted Solution

by:
NBF earned 0 total points
Comment Utility
I figured it out.  For the tmp and temp variables there are user and system.  They were different. I gave network service account permissions to the proper temp folder and everythign is working.  Heck of a lot of work to go through last night for something as simple as this.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now