“Your Credentials are not valid or no such user exists in Microsoft Dynamics CRM. Sign in with correct credentials or contact your CRM Administrator.”
I got this error when configuring the CRMListWebPart on SharePoint. After this I checked the event viewers to troubleshoot the problem and I found that:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user NT AUTHORITYNETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 8/16/2012 7:21:09 PM
Event ID: 10016
Task Category: None
Level: Error
Keywords: Classic
User: NETWORK SERVICE
Computer: WIN.com
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user NT AUTHORITYNETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
Event Xml:
<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
<System>
<Provider Name=”Microsoft-Windows-DistributedCOM” Guid=”{1B562E86-B7AA-4131-BADC-B6F3A001407E}” EventSourceName=”DCOM” />
<EventID Qualifiers=”49152″>10016</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime=”2012-08-16T23:21:09.000Z” />
<EventRecordID>335191</EventRecordID>
<Correlation />
<Execution ProcessID=”0″ ThreadID=”0″ />
<Channel>System</Channel>
<Computer>WIN.com</Computer>
<Security UserID=”S-1-5-20″ />
</System>
<EventData>
<Data Name=”param1″>application-specific</Data>
<Data Name=”param2″>Local</Data>
<Data Name=”param3″>Activation</Data>
<Data Name=”param4″>{61738644-F196-11D0-9953-00C04FD919C1}</Data>
<Data Name=”param5″>NT AUTHORITY</Data>
<Data Name=”param6″>NETWORK SERVICE</Data>
<Data Name=”param7″>S-1-5-20</Data>
<Data Name=”param8″>LocalHost (Using LRPC)</Data>
</EventData>
</Event>
Then I search the COM components by using the ID : {61738644-F196-11D0-9953-00C04FD919C1}
I found {61738644-F196-11D0-9953-00C04FD919C1} to be IIS WAMREG Admin Service as I suspected (no harm in verifying the ID in regedit!).
Then Next, I opened the Component Services Snap-In (Start > Run > comexp.msc) and drilled down through Component Services > Computers > My Computer > DCOM Config > IIS WAMREG Admin Service ….
Right click on IIS WAMREG Admin Service and on the Security tab click Edit in the Launch and Activation Permissions section.
Grant the account referenced in the event log (mine is WinAdministrator) the following permissions:
Allow: Local Launch
Allow: Local Activation
Search for {61738644-F196-11D0-9953-00C04FD919C1} in REGEDIT, then right click and modify the permissions.