Solved

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

Posted on 2009-07-14
7
2,064 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: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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add user group members to local Administrators 2 59
How to virtualize old server? (2003) 7 132
Problem pinging RRAS server from outside the network 11 101
DNS/WINS in a domain 10 37
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 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