MIM Event Broker Forum
Welcome to the community forum for MIM Event Broker.
Browse the knowledge base, ask questions directly to the product group, or leverage the community to get answers. Leave ideas for new features and vote for the features or bug fixes you want most.

MIM Event Broker - Error
Environment:
OS: Windows Server 2016
MIM Event Broker: v 4.0.1 RTM x64
After successful installation of MIM Event Broker and copy of 3 config files (Operation engine, Agent engine, GroupEngine), accessing the EB URL results in this error below:
Server Error in '/' Application.
Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
Event Viewer Log
Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 21/02/2018 10:48:01 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: winvdmim01.devparl.nsw.gov.au
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 21/02/2018 10:48:01 AM
Event time (UTC): 20/02/2018 11:48:01 PM
Event ID: 311fa6ab5c1a427ba0fa14f6a4f6ec12
Event sequence: 4
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: 17c438b0-1-131636439352711348
Trust level: Full
Application Virtual Path: /
Application Path: D:\Program Files\UNIFY Solutions\Event Broker\Web\
Machine name: WINVDMIM01
Process information:
Process ID: 8168
Process name: Unify.Service.Event.exe
Account name: DEVPARL\svc_UNIFYevB
Exception information:
Exception type: TypeInitializationException
Exception message: The type initializer for 'Unify.EventBroker.Web.EventServiceClientInstance' threw an exception.
at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
at ASP.global_asax..ctor()
Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
at Unify.Framework.TimingGenerator..ctor()
at Unify.Framework.Logging.LoggingEngineClient..ctor(ILoggingEngineCollector collector) in C:\agent\_work\23\s\Source\Logging\Unify.Framework.Logging.Engine.Shared\LoggingEngineClient.cs:line 25
at Unify.EventBroker.Web.EventServiceClientInstance.CreateComponent(EndpointAddress serviceEndpointAddress) in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 53
at Unify.EventBroker.Web.EventServiceClientInstance..cctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 32
Request information:
Request URL: http://localhost:8080/
Request path: /
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: DEVPARL\svc_UNIFYevB
Thread information:
Thread ID: 4
Thread account name: DEVPARL\svc_UNIFYevB
Is impersonating: False
Stack trace: at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
at ASP.global_asax..ctor()
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-02-20T23:48:01.733210900Z" />
<EventRecordID>327715</EventRecordID>
<Channel>Application</Channel>
<Computer>winvdmim01.devparl.nsw.gov.au</Computer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>21/02/2018 10:48:01 AM</Data>
<Data>20/02/2018 11:48:01 PM</Data>
<Data>311fa6ab5c1a427ba0fa14f6a4f6ec12</Data>
<Data>4</Data>
<Data>2</Data>
<Data>0</Data>
<Data>17c438b0-1-131636439352711348</Data>
<Data>Full</Data>
<Data>/</Data>
<Data>D:\Program Files\UNIFY Solutions\Event Broker\Web\</Data>
<Data>WINVDMIM01</Data>
<Data>
</Data>
<Data>8168</Data>
<Data>Unify.Service.Event.exe</Data>
<Data>DEVPARL\svc_UNIFYevB</Data>
<Data>TypeInitializationException</Data>
<Data>The type initializer for 'Unify.EventBroker.Web.EventServiceClientInstance' threw an exception.
at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
at ASP.global_asax..ctor()
Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
at Unify.Framework.TimingGenerator..ctor()
at Unify.Framework.Logging.LoggingEngineClient..ctor(ILoggingEngineCollector collector) in C:\agent\_work\23\s\Source\Logging\Unify.Framework.Logging.Engine.Shared\LoggingEngineClient.cs:line 25
at Unify.EventBroker.Web.EventServiceClientInstance.CreateComponent(EndpointAddress serviceEndpointAddress) in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 53
at Unify.EventBroker.Web.EventServiceClientInstance..cctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 32
</Data>
<Data>http://localhost:8080/</Data>
<Data>/</Data>
<Data>127.0.0.1</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>DEVPARL\svc_UNIFYevB</Data>
<Data>4</Data>
<Data>DEVPARL\svc_UNIFYevB</Data>
<Data>False</Data>
<Data> at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
at ASP.global_asax..ctor()
</Data>
</EventData>
</Event>

Event Broker won't allow password containing metacharacters
Attempting to configure the MIM Agent in Event Broker using the SQL credentials provided by the customer (which meet their strict password guidelines) I see this error from Event Broker:
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (DatabasePassword="<redacted but includes angle brackets>").
Can you please advise how to configure Event Broker with these credentials?

Hi Adrian,
Could you please try placing the following patch into the Services and Web/bin directories? Unify.EventBroker.Agents.Web.dll

There were not enough free threads in the ThreadPool to complete the operation
Hi,
A client reported the following error from PROD Event Broker:
Operation aa1021b4-fb70-447b-b8e2-e625079329f7 failed in operation list with id 975036c6-c301-4b07-92d5-f6757732b0bc for the following reason. This is retry number 0: Unify.Product.EventBroker.RestAPIAgentSendRequestFailedException: The sending of the request failed. See the inner exception for more information. ---> System.InvalidOperationException: There were not enough free threads in the ThreadPool to complete the operation. at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state) at System.Net.Http.HttpClientHandler.StartGettingRequestStream(RequestState state) at System.Net.Http.HttpClientHandler.PrepareAndStartContentUpload(RequestState state) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Unify.Product.EventBroker.RestAPIAgent.<SendPostRequestAsync>d__3.MoveNext() --- End of inner exception stack trace --- at Unify.Product.EventBroker.RestAPIPlugIn.Execute() at Unify.Product.EventBroker.OperationListExecutorBase.RunNextOperations(IEnumerator`1 operationEnumerator)
For info:
This error comes from the Event Broker List Operation : "IDB - STUDENT IMPORT". The operation which failed is "STUDENT UNIT IMPORT". This operation request to run an import of Identity Broker connector: "Student_Unit".
Moreover Event Broker web site is not accessible anymore.
Configuration:
Event Broker 3.2.0
Identity Broker 5.0.3
Example of the configuration in UAT:
Thanks.
Regards,

Hi Anthony,
How frequently are you experiencing this error? After you saw it for the first time, has it continued to occur until a service restart or any other recovery actions?
The error simply suggests that at the time the operation started, there were too many other operations running in parallel, exhausting the thread pool. As other operations complete, threads should free up and the issue should resolve itself automatically.

Event Broker - Check Operation on CSV Delta MA - Pending Export
Hi,
Just quick question about Check Operation - Pending export.
Configuration:
- Event Broker: 3.2.1
- FIM Sync: 4.1.3671.0
- Management Agent: Delimited Text file (OOTB)
I configured the Pending Export - Check Operation for this Management Agent in Event Broker and I configured an Export and Delta Import Operation in Operation as following:
There is nothing in Pending Export for this MA in FIM Sync, but the export is triggered every 30 secs.
Do you have an idea with the Check Operation doesn't prevent the export to run?
Thanks in advance for your help.
Regards,

I created a Powershell task which throws an error when the file is empty.
2 issues with this solution, we have an alert in Event broker which indicates that there is an error in this specific operation and we have thousands of empty export in FIM Sync log (this operation is scheduled to run every 30 secs).
I am trying to find a better way to avoid the run of this operation when there is no pending export.
I didn't send a bug to Microsoft because I already know the answer: "We recommend to upgrade to MIM" :)

IdB check operation issue
I have configured an Aurion Employee import operation with a check operation.
Either the:
- Check is not detecting that there are changes to import; or
- The run profile isn't being started when the objects are detected.
We manually ran an import in the MIM MA and there were 65 updates were imported.
Will add config shortly.

Create Unify Licenses in Base64 format
Provide Unify EvB license in Base64 Format, rather than binary so that they can be pasted into RDP sessions. It's often difficult to get these binary files into certain environments.

Hi Matt,
I might just add that you can convert the license to/from Base64 with a PowerShell one-liner.
[Convert]::ToBase64String((Get-Content .\path\to\license.lic -Encoding Byte))
$license = "Base64StringGoesHere..." [Convert]::FromBase64String($license) | Set-Content .\path\to\license.lic -Encoding Byte

Operation display name not defaulting for run profile operation
Using EvB 4.0, the display name property for a new operation list is not defaulted and the user is forced to enter a value:
- For an existing Operation List, select New Operation
- Select Operation Run Profile Operation / click CREATE
- Select Agent (if more than one agent) / click CREATE
- Select Management Agent / click CREATE
- Display Name appears blank with the field box in RED and the warning "The DisplayName field is required."
The behaviour for version 3..2.1 is as above for steps 1-4, but for step 5 we have:
5. Display Name appears with a checkbox, and by selecting the checkbox the default calculated display name could be overridden ... by not selecting this checkbox the default operation name is created, e.g. Management Agent: PHRIS - Run Profile: Delta Import.
The old v3 behaviour of defaulting the operation display name is requested to be reinstated, as this creates unnecessary work for the implementer. I suspect that the logic to do this is still there, but the UI change to make DisplayName mandatory has ensured that this can no longer fire.

Hi Bob
This option was purposefully removed to better support operation types for which a meaningful automatically generated name could not be determined as well as to bring operations in line with with the standard followed by all other configurable elements in Identity Broker and Event Broker.
Give any operations you configure a meaningful display name as you would operation lists, connectors, adapter etc.

Not running queued operations and high RAM usage
I just logged into EvB at APRA test env & saw that it wasn't running the AD Outgoing Operation as it was queued. It hadn't been able to run for hours. It didn't appear to be blocked. RAM usage was very high.
Does EvB log the reason that it was blocked? I couldn't find any detail in the logs.

No, not with normal logging as it would spam the logs. Increase the logging level for more detail.

UNIFY FIM Event Broker v3.2.1: The agent FIM Agent has failed with the message: Access denied
Hi I have the following error:
I followed the requirements which are in the page: https://unifysolutions.jira.com/wiki/spaces/EB32/pages/93454604/Prerequisites
Firewall: Checked: Able to connect to SQL Server via telnet
- Log on as a service. For details see here; Checked
- Access to write to its Logs directory. Defaults to: Checked FULL CONTROL
C:\Program Files\UNIFY Solutions\Event Broker\Services\Logs
- Ability to create the Logs file directory;Checked
- Full update access to the Extensibility directory. Defaults to: Checked FULL CONTROL
C:\Program Files\UNIFY Solutions\Event Broker\Services\Extensibility
- Permission to create a WCF end-point (see Create WCF end-point); Checked
PS C:\> netsh.exe http add urlacl url=http://+:59990/ user=****\svc_fimeb
Url reservation add failed, Error: 183
Cannot create a file when that file already exists.
- Permission to write to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files; Checked FULL CONTROL
- Membership in the FIMSyncAdmins group. Checked
- Read permission (db_datareader) to the FIMSynchronizationService database, either for the service account, or a separate SQL authentication login. Checked Created a SQL agent with same connection string. Work perfectly
If installed on the same machine as Microsoft Identity Lifecycle Manager or Microsoft Forefront Identity Manager, the service account also requires the following:
- Read access to the local FIM WMI namespace (overview, Setting Namespace Security)
Checked FIMSYNCADMINS group full control on MicrosoftIdentityIntegrationServer
Do you have another ideas about the root cause?
Thanks in advance.

Issue resolved.
It was linked to a MIM/FIM Corrupted files found thanks to your help and the WMI Diagnosis Utility tool.
If something similar appears in the report, please reinstall/repair FIM/MIM sync service:
30646 14:40:48 (0) ** ----------------------------------------------------------------------------------------------------------------------------------
30647 14:40:48 (1) !! ERROR: Unable to locate MOF file(s) in the WBEM folder or in Auto-Recovery list for the
30648 14:40:48 (1) !! ERROR: following CIM registered WMI provider(s): .................................................................... 2 ERROR(S)!
30649 14:40:48 (0) ** - ROOT/MICROSOFTIDENTITYINTEGRATIONSERVER, MIIS ({9A6AE3F8-5DEF-416E-A569-BB74B3184DC6})
30650 14:40:48 (0) ** - ROOT/SERVICEMODEL, SERVICEMODEL ()
30651 14:40:48 (0) ** => If the WMI repository is rebuilt, the listed provider(s) may not be available anymore
30652 14:40:48 (0) ** because the registration data is not located in the list of known MOF files. You can either:
30653 14:40:48 (0) ** - Locate the MOF file(s) and manually recompile the corresponding MOF file(s) with
30654 14:40:48 (0) ** the 'MOFCOMP.EXE <FileName.MOF>' command.
30655 14:40:48 (0) ** - Retrieve a copy of the missing MOF file(s) and make sure there are part of the Auto-Recovery.
30656 14:40:48 (0) ** registry key.
30657 14:40:48 (0) ** Note: If you want the MOF file to be part of the Auto-Recovery, make sure the
30658 14:40:48 (0) ** statement '#PRAGMA AUTORECOVER' is included.
30659 14:40:48 (0) ** - If the corresponding MOF file can't be located, the MOF file can be recreated with
30660 14:40:48 (0) ** WBEMTEST and/or CIM Studio available at
30661 14:40:48 (0) ** http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en
30662 14:40:48 (0) ** - It is also possible that the application implemented its own recovery mechanism.
30663 14:40:48 (0) ** In that case, no action is required.
30664 14:40:48 (0) ** You must verify with the application vendor if the application has this capability (i.e. Microsoft SMS)

Integrated Authentication for existing Event Broker IIS Website is disabled on upgrade to version 4
On upgrade to version 4, the existing IIS website for the Event Broker application failed to open due to a permissions error. This was subsequently resolved by re-enabling Integrated Authentication on the IIS website.
One possibility for the issue might be that the IIS application pool identity (svcFIM_EBrokerWeb) in this case is not configured to be the same identity as the Event Broker service account (svcFIM_EBroker - as specified in the MSI). However this is only a guess.

This was already in the backlog for Identity Broker, I've now copied it over to MIM Event Broker. The issue is that the web.config file isn't "permanent", so gets overridden on upgrade.
Customer support service by UserEcho