Solved

WSUS Setup error

Posted on 2014-10-27
8
1,145 Views
Last Modified: 2016-02-19
Hi really need some help with WSUS I am trying to re-install the service but It constantly fails at the "launch Post-Installation tasks" part at the end. The server is 2012R2 and I have the following error log:
2014-10-27 11:58:55  Postinstall started
2014-10-27 11:58:55  Detected role services: UI, WidDatabase, Services
2014-10-27 11:58:55  Start: LoadSettingsFromXml
2014-10-27 11:58:55  Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2014-10-27 11:58:55  System.TypeInitializationException: The type initializer for 'Microsoft.UpdateServices.Internal.UtilConstants' threw an exception. ---> System.IO.InvalidDataException: Invalid installation directory
   at Microsoft.UpdateServices.Internal.SetupInfo.GetInstallDirectory()
   at Microsoft.UpdateServices.Internal.UtilConstants..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.UpdateServices.Administration.PostInstall.GetConfigValue(String filename, String item)
   at Microsoft.UpdateServices.Administration.PostInstall.LoadSettingsFromXml()
   at Microsoft.UpdateServices.Administration.PostInstall.Initalize(Parameters parameters)
   at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: The type initializer for 'Microsoft.UpdateServices.Internal.UtilConstants' threw an exception.
0
Comment
Question by:Dead_Eyes
8 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 40407634
This looks like your problem: System.IO.InvalidDataException: Invalid installation directory

Rerun your post install check and verify the value.

Also triple check all the folder locations specified in your config actually exist.
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40407641
how did you reinstall?
what database are you using?
did you delete the update services folder before reinstalling?
0
 
LVL 23

Expert Comment

by:Thomas Grassi
ID: 40407642
Did you do an uninstall of the role?

Is the wsus services still show up in services?

Was WSUS setup as internal database or using SQL?
0
 

Author Comment

by:Dead_Eyes
ID: 40409564
Hi sorry for the late reply. WSUS was uninstalled through add remove features, D:\WSUS folder was deleted and I am using the internal database. D:\WSUS exists and has correct permissions on root (D:\) and on the folder. I think it may be a database issue but as I don't do much with SQL and not sure how to check internal database I am getting stuck. The reinstall works fine right up until you launch post installation tasks
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 23

Accepted Solution

by:
Thomas Grassi earned 500 total points
ID: 40409818
Here this might help you

http://technet.microsoft.com/en-us/library/cc708545(v=ws.10).aspx

shows how to verify WSUS
0
 

Author Closing Comment

by:Dead_Eyes
ID: 40413881
Thanks for the troubleshooting guide I managed to narrow it down the SUSDB Database as the issue. So uninstalled WSUS, IIS & Windows internal database. Deleted C:\Windows\WID\DATA\SUSDB.mdf and SUSDB_log.ldf and reinstalled.
0
 

Expert Comment

by:garryshape
ID: 40522388
Do you mean you entirely uninstalled IIS?
0
 

Author Comment

by:Dead_Eyes
ID: 40546467
@ garryshape - Hi sorry have not checked in for a while. Yes I did but only as a blanket measure as I was not sure how deep it ran and I was not using the IIS service on that server for anything else. I am sure if you deleted the relevant IIS entry's the WSUS installer would re-add them
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

863 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

21 Experts available now in Live!

Get 1:1 Help Now