[There's a reason that Yoda is the unofficial mascot of SBS.  Size indeed matters not.] Lovely .net 4 - THE OFFICIAL BLOG OF THE SBS DIVA
Fri, Oct 15 2010 23:28 bradley

Lovely .net 4

Okay so I should have known better.  I did a stupid thing.  I installed .net 4 on my baby at the office to make sure that it didn't cause issues with the montoring like it did cosmetically with SBS 2003.  So tonight when I was patching the server I decided that rather than deploy the security update to .net 4 I was going to remove it.  So I did.  I uninstalled it.  I rebooted the computer.  All was well.

Until the next time the server backed up.  And then I got

Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.
Details:
AddWin32ServiceFiles: Unable to back up image of service WPFFontCache_v0400 since QueryServiceConfig API failed
System Error:
The system cannot find the file specified.

So in tracking down why that was erroring like that I tracked back and realized that Windows Presentation Foundation Font came in via .net 4 and obviously didn't uninstall nicely.

Go into the services and you see...

Lovely.

And I was so hoping that .net 4 would be better than this.

Of all of the updates, this is one that I don't understand how brittle it can be.  I had hopes that .net 4 would not be hitting the issues that I'm seeing with it.

Do you need .net 4?  Nope.  At least not until SBSv7 and SBS aurora hit the streets and then they will deploy it to the workstations in the connect process.

In the meantime the folks that coded up .net 4 should be glad they are in Redmond and I'm here in Fresno.  Or that SMBnation is in Las Vegas not Seattle.

Filed under:

# re: Lovely .net 4

Saturday, October 16, 2010 1:44 PM by Paul Crosbie

I have the same problem on one of my SBS2008 servers.  Installed .net4 and then took your advice that it was not needed on the server so removed it and now have that error.  Do you know how to fix it?

# re: Lovely .net 4

Saturday, October 16, 2010 2:12 PM by bradley

Hang loose I've got a ping into support.

# re: Lovely .net 4

Saturday, October 16, 2010 10:55 PM by Paul Crosbie

I re-installed .net4, and the rogue service has been fixed!  Never realised that it was .net4 that caused the problem in the first place, so thanks for your post.

# re: Lovely .net 4

Monday, October 18, 2010 12:10 AM by bradley

Hi Susan,

Welcome to the Developer (Partner) forums and thank you for your posting here!

Sorry for my delay due to the weekend. This is a known issue of Microsoft .NET Framework 4. Following is part of the Microsoft .NET Framework 4 Readme.

When uninstalling .NET 4.0 from Vista/XP/w2k3/W2k8 the WPF font cache service is not cleanly uninstalled.

Although the WPF font cache service is no longer usable after uninstall, the "Windows Presentation Foundation Font Cache 4.0.0.0" services entry is still left behind and is visible in the Services console.

On Vista and W2k8 the services console "Description" field will say: "<Failed to Read Description. Error Code: 2 >". On XP/w2k3 the "Description" field will still display the correct string.

The Framework re-install will repair this. No other effect is known.

Note: this issue is for both Net4 Client Profile and NET4 Full

To resolve this issue:

The workaround to completely remove this orphaned FontCache service is:

Open a command window in Administrator mode

Enter: 'sc delete WPFFontCache_v0400'

You should see: "[SC] DeleteService SUCCESS".

If you refresh the services console the FontCache should not show now. A reboot may be required if refershing the the services console did not fix the issue.

For more info please refer to Microsoft .NET Framework 4 Readme#Uninstallation

Please feel free to let me know if you have any concern.