How do I add my Custom Workflow Activity to FIM 2010 R2 SP1 installed on Windows 2012 server?

Hellos.

I have tried and failed to add my custom.dll into the Windows Server 2012  GAC.

We have a version of FIM 2010 R2 Sp1 running on Windows Server 2008 R2 and that was no problem. There seemed to be a gacutil.exe present on the system which added my assembly.

I cannot find gacutil.exe on the Windows 2012 Server.

I have downloaded and installed Windows SDK for Windows 8. However, when I try the gacutil.exe /i <myCustom.dll> nothing seems to happen.

Are there any guidelines how to add custom workflow activities to FIM when installed on a Windows Server 2012 system?

TIA

*HH

March 16th, 2015 5:56am

Hello Harold,

and the end of the Walkthru of the custom logging activity this procedure is described:

See: https://msdn.microsoft.com/en-us/library/windows/desktop/ff859524(v=vs.100).aspx

In General:

- Add custom activity dll to GAC (gacutil)

- IISReset

- create approp. activity object in FIM Portal

- IISReset

- use activity in workflow

Peter

Free Windows Admin Tool Kit Click here and download it now
March 16th, 2015 6:24am

Well yes. It is fine when FIM is hosted on Windows Server 2008 R2.My difficulty is that I am using FIM 2010 R2 Sp1 and Windows Server 2012. No GACutility executable.

However, the problem has been resolved. Powershell can be used to modify the assemblies.

I opened a RunAs Administrator PS session. My assembly is in folder c:\Temp

Using Windows Explorer I browsed the folder c:\windows\assembly and noted the System.EnterpriseServices entries: version (2.0.0.0) and public key token (b03f5f7f11d50a3a)

(My version is 2.0.0.0 because when installing FIM and SharePoint 2013 the instructions I used suggested setting .Net version to be 2.0)

These powershell commands got me going...

PS C:\temp> [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")

GAC    Version        Location
---    -------        --------
True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50...


PS C:\temp> $publish = New-Object System.EnterpriseServices.Internal.Publish
PS C:\temp> $publish.GacInstall("c:\temp\RunPowershellLibrary.dll")
PS C:\temp>
PS C:\temp>
PS C:\temp> iisreset

Amazingly I can see the assembly RunPowershellLibrary in my Windows 2012 GAC. :-)

Also, what is more cheering is that the custom activity actually works with FIM 2010 R2 Sp1.

March 16th, 2015 8:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics