I was installing GP 2010 Web Services on a Windows Server 2012 R2 and received the error below:
System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Interop.Security.AzRoles, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.
File name: ‘Microsoft.Interop.Security.AzRoles, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’
I looked in the GAC and I have version 2.0.0.0 installed, but not 1.2.0.0. Someone posted a solution that upgrading to GP 2010 SP 2 fixes the problem, but I was already running SP 3. Other people running SP 4 were also experiencing the issue.
The two possible solutions I could think of was to do an assembly redirect to 2.0.0.0 (not safe), or somehow install 1.2.0.0 on my system.
To get a copy of version 1.2.0.0 of this DLL, download the Windows 2000 Authorization Manager Runtime from this link: http://www.microsoft.com/en-au/download/details.aspx?id=13225.
This is a self-extracting package that creates a folder in the current location when you run it. Within this folder, you can find the DLL in the PIA\1.2 folder. Install this DLL into the GAC and the installation should work.
After the installation has completed, you should verify that the Web Services are working correctly following the steps in this article: http://support.microsoft.com/kb/950844.