Solved

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

Posted on 2009-07-14
7
2,093 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24852887
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:Donald Stewart
ID: 24853079
If that doesnt work I would uninstall WSUS, uninstall IIS. Reinstall IIS with ASP.NET, Reinstall WSUS.
0
 

Author Comment

by:NBF
ID: 24858113
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24859290
Lets straighten out your permissions
 
What are the correct IIS and NTFS permissions for WSUS?
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24859325
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
ID: 24859434
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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