App-V 4.6 RC Client Error 460579-19D0990A-10000009

Recently I had a customer ask for my assistance with a problem they were having in their App-V environment.

Client computers would get the following error when they tried to connect to their defined publishing server:

clip_image001

My Google foo failed me initially on this, as I was not able to find anything related to the 460579-19D0990A-10000009 error message. Despite these seemingly definitive pages (here & here) on other errors.

I decided to look at the Management Server to see if perhaps it could shed more light on the situation. When I looked at the server’s application log I found this message to be more useful:

clip_image002

Log Name: Application
Source: Application Virtualization Server
Event ID: 44955
Task Category: (1)
Level: Error
Description:
Certificate could not be loaded. Error code [-2146893043]. Make sure that the Network Service account has proper access to the certificate and its corresponding private key file.

The Services MMC shows the Application Virtualization Management Server service is logging on as builtin\Network Service. Here is our problem!

Doing a search on this new information brought me to the App-V Security Operations Guide. Within, I found instructions for adjusting the permissions:

(Page 10)

Modifying Private Key Permissions to Support Management Server or Streaming Server

In order to modify the permissions of the private key, a Windows Server 2003 Resource Kit tool, WinHttpCertCfg.exe can be used. There are other ways to modify the certificate permissions, however this is the most straightforward and easy way of completing this task. The following steps explain how to modify the permissions of a certificate to support a secure App-V installation.

Managing Private Keys on Windows 2003

Use WinHttpCertCfg.exe to set the correct ACL on the private key

On Windows Server 2003, the process of changing the permissions on the Private Key to support App-V is described in the steps below. This process requires that a certificate that meets the prerequisites listed above has already been installed on the machine or machines that App-V Management or Streaming Server will be installed on.

Additional information on using the WinHttpCertCfg.exe tools is available at the link below.

http://msdn.microsoft.com/en-us/library/aa384088(VS.85).aspx

1. On the machine that will become the App-V Management or Streaming server, type the following commands in the command shell to list the current permissions assigned to a specific certificate.

winhttpcertcfg -l -c LOCAL_MACHINE\My -s Name_of_cert (eg. server.domain.com)

clip_image004

2. Next, if necessary modify the permissions of the certificate to provide read access to the security context that will be used for Management or Streaming Service.

NOTE: The default security context is Network Service, some organizations don’t use built in accounts and a domain account may be used instead.

winhttpcertcfg -g -c LOCAL_MACHINE\My -s Name_of_cert -a NetworkService

clip_image006

3. Verify that the security context was properly added by listing the permissions on the certificate.

winhttpcertcfg –l –c LOCAL_MACHINE\My –s Name_of_cert

clip_image008

 

Managing Private Keys on Windows 2008

Windows Server 2008 makes the process of changing the ACLs on the private key much easier. The certificates GUI can be used to manage private key permissions.

1. Create an MMC with the Certificates snap-in that targets the Local Machine certificate store.

2. Expand the MMC as shown in the diagram below and select Manage Private Keys.

clip_image010

3. Use the Security tab to add the Network Service account with Read access.

clip_image011

I found that both methods actually work on Server 2008 / R2 in case for some reason you are more comfortable with the command line and/or you didn’t bother to scroll down like I did to realize there is now a GUI alternative! 🙂

After I made this permission adjustment, I tried the client refresh again, and instantly my applications appeared!

clip_image013

I hope this tip helps someone out there!

One thought on “App-V 4.6 RC Client Error 460579-19D0990A-10000009

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s