Wednesday, December 18, 2013

The Data Processing extension used for this report is not available. It has been uninstalled, or it is not configured correctly. MS CRM 2011

I got the below error in report server for the custom reports


"The Data Processing extension used for this report is not available. It has been uninstalled, or it is not configured correctly"

this says that the srsConnector is not installed or not properly configured.
in my case, I saw it has been not installed (actually accidentally someone has Uninstalled).

then I tried to install and it was fine.

Regards,
yes.sudhanshu

Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100. Result: Asia in MS CRM 2011

while installing srsConnector for MS CRM 2011 I got the below error in the log file.
my scenario as like below.
1st I installed this connector, by accidentally someone uninstalled, then I tried to install it as custom reports were not working.

sage then I got the below message "Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100. Result: Asia ".

so when I tried to install vcredist_x64.exe from the VcRedist folder of the MS CRM installer, then it throws that there is a newer version of this installed.
so what I did is, I uninstalled those and then tried to install the srsConnector and it went smooth.

hope this will help someone.

Regards,
Sudhanshu

Monday, October 7, 2013

Invalid Trace Directory. Additional Info:[ Unable to Write file , Trace directory not defined (Reporting Process:File Name is Null. LocalTraceSettings: {Filename: ,FileCountSuffix:1 ,TraceFileSize:10485760 ,TraceDirectory: ,TracingCallStack:Yes ,IsTracingOff:No ,LoadState:LoadSuccessfulUnreported ,RefreshTraceInt:-1 ,SiteWideRefreshTraceInt:-1 ,RegistryRefreshTraceInt:-1} ] , AppDomain:CrmAsyncService) MS CRM 2011

Hi All,

while i was looking the Event viewer in one of my MS CRM 2011 instance, i got the below error message in event viewer

Invalid Trace Directory. Additional Info:[ Unable to Write file , Trace directory not defined (Reporting Process:File Name is Null. LocalTraceSettings: {Filename:  ,FileCountSuffix:1 ,TraceFileSize:10485760 ,TraceDirectory: ,TracingCallStack:Yes ,IsTracingOff:No ,LoadState:LoadSuccessfulUnreported ,RefreshTraceInt:-1 ,SiteWideRefreshTraceInt:-1 ,RegistryRefreshTraceInt:-1} ] , AppDomain:CrmAsyncService)


this means the trace directory is nto available.
so set the directory by following the below commands
open the windws power shell in admin mode
run the below commands...
Add-PSSnapin Microsoft.Crm.PowerShell

Get-CrmSetting TraceSettings

$setting=Get-CrmSetting TraceSettings

$setting.Directory=”C:\Program Files\Microsoft Dynamics CRM\Trace” (this is the directory that u want)

Set-CrmSetting $setting

Get-CrmSetting TraceSettings

 
Regards,
yes.sudhanshu

an error occurred during an attempt to build the certificate chain for the relying party trust adfs, MS CRM 2011 CBA configurations, error code 317

Hi All,

while doing CBA configurations, all went well, but while ccessing to MS CRM (internall URL), i got the prompt to key in the credentials, but after that i got the below error...


below is the event vieweer log

Encountered error during federation passive request.
 
Additional Data
 
Exception details:
Microsoft.IdentityServer.Web.RequestFailedException: MSIS7012: An error occurred while processing the request. Contact your administrator for details. ---> System.ServiceModel.FaultException: ID3242: The security token could not be authenticated or authorized.
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(Message request, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst, WCFResponseData responseData)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)
   --- End of inner exception stack trace ---
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.RequestBearerToken(MSISSignInRequestMessage signInRequest, SecurityTokenElement onBehalfOf, SecurityToken primaryAuthToken, String desiredTokenType, Uri& replyTo)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.RequestBearerToken(MSISSignInRequestMessage signInRequest, SecurityTokenElement onBehalfOf, SecurityToken primaryAuthToken, String desiredTokenType, MSISSession& session)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseCoreWithSerializedToken(String signOnToken, WSFederationMessage incomingMessage)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseCoreWithSecurityToken(SecurityToken securityToken, WSFederationMessage incomingMessage)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseForProtocolRequest(FederationPassiveContext federationPassiveContext, SecurityToken securityToken)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponse(SecurityToken securityToken)
 
System.ServiceModel.FaultException: ID3242: The security token could not be authenticated or authorized.
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(Message request, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst, WCFResponseData responseData)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)

 Solution
open the "windows power shell " in admin privilege.
run the below commands
Add-PSSnapin Microsoft.Adfs.PowerShell
Set-ADFSRelyingPartyTrust -TargetName <replying panrty name in ADFS> -EncryptionCertificateRevocationCheck None
then do an IISRESET in adfs server and then try..
it should work perfect
 
Regards,
yes.sudhanshu

CRM 2011 claims-based authentication problem adding Relying Party Trust to ADFS - federationdata.xml not served by CRM server (503 error), MS CRM 2011

Hi All,

while i was configuring CBA for MS CRM 2011, i got the below error, while adding relying party in ADFS server.


ofcuz i got the error also while accessing the federation meta data url in browser as below
 
 
Solution
 
i found some link to install the URL rewrite component and then did IISRESET, then cool, it worked for me. :)
 
the link to download the URL rewrite component... http://www.iis.net/downloads/microsoft/url-rewrite
downdlaod as per your bits(32 or 64)
 
Regards,
yes.sudhanshu


Wednesday, October 2, 2013

"Database cannot be started in this edition of SQL Server" error when restoring a Microsoft Dynamics CRM database , MS CRM 2011

while restoring MS CRM 2011 db i got the error message as below
""Database cannot be started in this edition of SQL Server" error when restoring a Microsoft Dynamics CRM database , MS CRM 2011".
the below lonk says how to do...
http://support.microsoft.com/kb/2567984

this is cause of the SQL version....
hope this will definitely help :P

below is the script

what i suggest to do is, donot run this script directly in the Org_MSCRM DB.
just restore it as Temp DB and then run the script on Temp DB then take the backup from Temp DB and restore in your destination server.

IF EXISTS (SELECT name FROM sys.partition_schemes WHERE name='AuditPScheme')
BEGIN
 SELECT
  CASE WHEN ind.type != 1
   THEN
    'DROP INDEX [dbo].[AuditBase].' + QUOTENAME(ind.name) + ' '
   ELSE ' '
  END +
  'CREATE ' + CASE is_unique WHEN 1 THEN 'UNIQUE ' ELSE '' END  +
  ind.type_desc + ' INDEX ' + QUOTENAME(ind.name  COLLATE SQL_Latin1_General_CP1_CI_AS )  + ' ON [dbo].' +  QUOTENAME(OBJECT_NAME(object_id)) + ' (' +
  
  REVERSE(SUBSTRING(REVERSE((
   SELECT name + CASE WHEN sc.is_descending_key = 1 THEN ' DESC' ELSE ' ASC' END + ','
   FROM
    sys.index_columns sc
    JOIN sys.columns c ON sc.object_id = c.object_id AND sc.column_id = c.column_id
   WHERE
    OBJECT_NAME(sc.object_id) = 'AuditBase' AND
    sc.object_id = ind.object_id AND
    sc.index_id = ind.index_id
   ORDER BY index_column_id ASC
   FOR XML PATH('')
        )), 2, 8000)) + ')' +
  CASE WHEN ind.type = 1
   THEN
    ' WITH (DROP_EXISTING = ON) ON [PRIMARY]'
   ELSE
    ' '
  END  as Script
 INTO #indexesScript
 FROM sys.indexes ind
 JOIN sys.partition_schemes ps on ind.data_space_id=ps.data_space_id
 WHERE
  OBJECT_NAME(object_id) = 'AuditBase'
  AND ps.name = 'AuditPScheme'
  AND is_unique_constraint = 0
 SELECT * FROM #indexesScript
 
 DECLARE @recreateScript nvarchar(max)
 DECLARE indScript CURSOR FOR
 SELECT Script FROM #indexesScript
 OPEN indScript
 FETCH NEXT FROM indScript INTO @recreateScript
 
 WHILE @@FETCH_STATUS = 0  
 BEGIN  
  BEGIN TRANSACTION t1
  Execute sp_executesql @recreateScript
 
  IF @@ERROR > 0
  BEGIN
   ROLLBACK TRAN t1
   declare @message varchar(max)
   set @message = 'Audit history recreate index failed. SQL: ' + @recreateScript
      RAISERROR (@message, 10,1)
  END
  ELSE
  BEGIN
   COMMIT TRAN
  END
  FETCH NEXT FROM indScript INTO @recreateScript  
 END  
 DROP PARTITION SCHEME AuditPScheme
 DROP PARTITION FUNCTION AuditPFN
 
 CLOSE indScript  
 DEALLOCATE indScript
 DROP TABLE #indexesScript
END

Regards,
yes.Sudhanshu

Wednesday, September 18, 2013

Exception type: CrmArgumentException , Exception message: Cannot add attribute from of type partylist in a condition , advance search phone call MS CRM 2011

while i was doing advanced search i got the below error

when i tried in a fresh organization, i donot see From as searchable.
while investigating, i got to know that the From field in Phone Call, EMail was made searchable.
both are partylist and by default those are not searchable.
so i changed to non searchable and its done.

how it come as searchable?
if you go to fields and select more than one and do edit, then you can edit...
initially searchable is disabled and read only as below..

then i made bulk edit as below


then see the below screen as the field enabled and you can select Yes or No

below is the event viewer details
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 13/9/2013 5:11:23 PM
Event time (UTC): 13/9/2013 9:11:23 AM
Event ID: 50e5f1731078425abce195415f682f94
Event sequence: 864
Event occurrence: 10
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-130235340940535000
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: XRM

Process information:
Process ID: 3820
Process name: w3wp.exe
Account name: MSCRM\ADMINISTRATOR

Exception information:
Exception type: CrmArgumentException
Exception message: Cannot add attribute from of type partylist in a condition
at Microsoft.Crm.Query.ConditionExpressionCollection.Add(ConditionExpression element)
at Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(FilterExpression criteria)
at Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(EntityExpression entity)
at Microsoft.Crm.Query.EntityExpression.InternalDeserializeFromFetchXml(String xmlInfo, ParsingConditionValuesOption parsingOption)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.SetupQueryBuilder(QueryBuilder queryBuilder, View view)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Cannot add attribute from of type partylist in a condition



Request information:
Request URL: http://xrm:5555/ICACRM/AdvancedFind/fetchData.aspx?EntityCode=112&QueryId={00000000-0000-0000-00AA-000010001028}&ViewType=1039&pagemode=iframe&sitemappath=Workplace|MyWork|nav_dashboards
Request path: /ICACRM/AdvancedFind/fetchData.aspx
User host address: fe80::1960:804d:95b2:ac66C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
User: MSCRM\ADMINISTRATOR
Is authenticated: True
Authentication Type: Negotiate
Thread account name: MSCRM\ADMINISTRATOR

Thread information:
Thread ID: 19
Thread account name: MSCRM\ADMINISTRATOR
Is impersonating: False
Stack trace: at Microsoft.Crm.Query.ConditionExpressionCollection.Add(ConditionExpression element)
at Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(FilterExpression criteria)
at Microsoft.Crm.Query.DeserializeFetchVisitor.Visit(EntityExpression entity)
at Microsoft.Crm.Query.EntityExpression.InternalDeserializeFromFetchXml(String xmlInfo, ParsingConditionValuesOption parsingOption)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.SetupQueryBuilder(QueryBuilder queryBuilder, View view)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlTable.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

Tuesday, September 17, 2013

Debugging sandboxed plugins ms crm 2011

we know how to debug the plugins and also if its asynchronous.
in ms crm 2011 we got new concpet of registering plugin in sandbox, so if its registered in sandbox mode then how to debug...?
its very simple, add the w3p processess(all those are running) and also the sandbox services(if multiple are running add all), then process should get into your break point.

more please follow
http://msdn.microsoft.com/en-us/library/gg328574.aspx#bkmk_sandboxplugin

Regards,
yes.sudhanshu

Thursday, September 5, 2013

Outgoing Status: Failure - An error occured while checking the connection to the Microsoft Dynamics server MS CRM 2011 Email Router configuration

while i was configuring Email Router for MS CRM 2011, i got the below error.
the profile and load users and queue is perfect, but when i click test access i got the below error.

no error logs also i found.
then i just changed the MS CRM 2011 Email Router service account from network to a domain account and then it started working and perfect...

regards,
yes.sudhanshu
 

The Report cannot be displayed. (rsProcessingAborted) MS CRM 2011, Report execution

one of my implementation i got the below error for the reports "The Report cannot be displayed. (rsProcessingAborted) ".
when i chekced the system reports working fine.
even if i created one more report with wizard also fine.
rollups on report server same as crm server.

i come to know my developer was using Stored Proc for the reports(SSRS).
but when i scaned the reports log i found the below...

e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DataSet1'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object '<StoredProc_Name>', database 'Org_MSCRM', schema 'dbo'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The EXECUTE permission was denied on the object '<StoredProc_Name>', database 'Org_MSCRM', schema 'dbo'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

So from the log , i found that the user does not have access to the Stored Proc.
my report service was runnin gunder NT AUTHORITY\NETWORK SERVICE.
so i went to the stored proc and added the NT AUTHORITY\NETWORK SERVICE and gave execute permission.
to do this, go to the DB is sql studio -> Programability -> stored procudures-> right click on the Stored Proc -> properties -> Permissions -> click Search to add the NT AUTHORITY\NETWORK SERVICE and give Execute access.
then the report should execute.
 
Regards,
yes.Sudhanshu
 

Tuesday, July 9, 2013

Hide from Activity List Define as an activity entity, Display in Activity Menus uncheck MS CRM 2011

Hi,

i came across an weired situation.
i had an entity which was declared as Activity and later users did not want that to be an activity type.
and also they do not want it to show in the NEW activity list (obviously, why they will see, if its no more activity type).

and very sure there is no SUPPORTED WAY to do it, except deleting the entity and recerating.
i tried to delete, but there were many dependencies, so it was too hard to find and do this way.

next i tot to change the flag in the metadata and i found the flag and i did.
so it worked for me. i know its UNSUPPORTED.

you have to run the below SQL query in the <Org>_MSCRM db...

update MetadataSchema.Entity set IsActivity=0
where LogicalName ='<entity_schemaName>'

DONOT FOREGT TO DO iisreset.
when the entity was declared as activity
it also shows in the new activity list
 
when the the flag has been changed
finally its removed from the new activity list as well
Hope this will help, someone..
 
Regards,
yes.sudhanshu




Wednesday, July 3, 2013

“There is a problem communicating with the Microsoft Dynamics CRM server” : Error when you configure the Dynamics CRM Client for Outlook. MS CRM 2011

while i was cnnecting to ms crm from outlook client i got the below error message
“There is a problem communicating with the Microsoft Dynamics CRM server. The server might be unavailable. Try again later. If the problem persists, contact your system administrator.”
i just tried to install the same RU as server i have installed, then it started working for me.
note: i was doing all in my VBox

hope this can help, though outlook has many2 issues...

Regards,
yes.sudhanshu
 

Tuesday, July 2, 2013

the request record was not found or you do not have sufficient permission to view it MS CRM 2011

while i was installing ms crm and experimenting on the AD privilege i just found the below observation...

i installed with one account suppose Admin1, which has AD Admin privilege.
then i just created one user in the AD As user1 and added that user to the two groups "PrivUserGroup" and "ReportingGroup" in the AD.(i did not ad the user to CRM from the UI)
i tried to login to CRM , i was able to login and when i click any of the items i get the error message
"the request record was not found or you do not have sufficient permission to view it ".
below is the pic...

i have verified the user in not in the list of CRM USers.
not sure how and why this happened...

hope this can help someone to think...

regards,
yes.sudhanshu

Thursday, June 27, 2013

“Parser Error Message: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.” MS CRM 2011 access


when i was installing MS CRM, i was able to install.
but while accessing it, i got the below error message in the event viewer...

“Parser Error Message: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.”

when i googled i got the link (http://support.microsoft.com/kb/2691911) from MS.
this helps me to know it.
i come to know from the Group Policy that the FIPS is enabled.



find the policy(System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing ) in below
  1. Using an account that has administrative credentials, log on to a computer that is running Windows Server 2008 R2 SP1 x64 on which any of the CRM Server roles are installed.
  2. Click Start, click Run, type gpedit.msc, and then press ENTER.
  3. In the Local Group Policy Editor, under the Computer Configuration node, double-click Windows Settings, and then double-click Security Settings.
  4. Under the Security Settings node, double-click Local Policies, and then click Security Options.
  5. In the details pane, double-click System cryptography: Use FIPS-compliant algorithms for encryption, hashing, and signing.
i found in one more server, it was disabled.
so i just disabled it and then it started working....

Note: when i was installing the server was not hardened... so enusre if its when hardened then this must disabled, else you ahve to follow the link as above...

hopre this will help and save someoone's time...

Regards,
yes.Sudhanshu
 

Saturday, June 15, 2013

Exception message: The specified domain either does not exist or could not be contacted. MS CRM 2011

i did the installtion and when i was just accessing the MS CRM site, i got the below error....
and the below is the details from event viewer....
the details shows clearly that the account "NT AUTHORITY\NETWORK SERVICE" does not have access to the AD.
i am not sure about this. WHY?
i have done other instalaltions earlier with that.
still i tot, just to change the service account, so i ran the upgrade and changed the accounts to some AD account, then it ran HAPPILY... :)
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 15/6/2013 5:21:53 PM
Event time (UTC): 15/6/2013 9:21:53 AM
Event ID: d77f2b8efd124a9ebac200209080acab
Event sequence: 6
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT-1-130157616769092004
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
    Machine name: HQ07WACRMUATDB
 
Process information:
    Process ID: 6696
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: COMException
    Exception message: The specified domain either does not exist or could not be contacted.
 
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_NativeObject()
   at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
   at Microsoft.Crm.SecurityUtils.CheckMembership(Guid principalId, Guid groupId)
   at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
   at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.IsOrganizationSpecialUser(Guid organizationId, Guid userId, ExecutionContext context)
   at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
   at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoCommon(IOrganizationContext context, Guid userGuid)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
   at Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)
   at Microsoft.Crm.Authentication.WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity)
   at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
   at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
   at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
 
Request information:
    Request path: /ICA/default.aspx
    User host address: fe80::65f7:80e8:48e3:afef/
    User: CIRISDEV\ICACRMAdmin
    Is authenticated: True
    Authentication Type: Negotiate
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 8
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: True
    Stack trace:    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_NativeObject()
   at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
   at Microsoft.Crm.SecurityUtils.CheckMembership(Guid principalId, Guid groupId)
   at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
   at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.IsOrganizationSpecialUser(Guid organizationId, Guid userId, ExecutionContext context)
   at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
   at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoCommon(IOrganizationContext context, Guid userGuid)
   at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
   at Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)
   at Microsoft.Crm.Authentication.WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity)
   at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
   at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
   at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:
hope this will help...

Regards,
yes.sudhanshu

Setup was not able to find the following registry value. Reporting Server extension uninstallation error MS CRM 2011


while i was doing installtion for MS CRM 2011.
i had to uninstall the srs connector.
while doing so i got the below error

---------------------------
Microsoft Dynamics CRM Reporting Extensions Setup
---------------------------
Action Microsoft.Crm.Setup.Common.Analyzer+CollectAction failed.

Setup was not able to find the following registry value. This value is required by setup to perform a successful upgrade, repair, or a complete uninstall. You can restore the value manually and restart Setup: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM: CRM_SrsDataConnector_ReportServerInstance

 
---------------------------
Retry   Cancel  
---------------------------

so the message is very clear.
need to check the registry value as mentioned.
in my case the value was blank (not sure how?) :(
so i set the value to the respective required value and then it worked for me.
just update the value to the correct SQL instance in which you ahve installed SQL for reporting service or the default is MSSQLSERVER.
 
Regards,
yes.Sudhanshu

Monday, June 10, 2013

OrgDBOrgSettings Tool for Microsoft Dynamics CRM 2011

down load "CRM2011-Tools-KB2791312-ENU-amd64.exe" from http://www.microsoft.com/en-us/download/details.aspx?id=37133

Microsoft Dynamics CRM 2011 provides the OrgDBOrgSettings tool which allows administrators the ability to implement specific updates that were previously reserved for registry implementations. This article will discuss the steps to extract the tool and update the settings.

update the config file
 this is most impotant to do the config file. its bit cosfusing... :(
change the red highlighted section(if onpremise) also the port no.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="OrgDBOrgSettingsTool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <applicationSettings>
        <OrgDBOrgSettingsTool.Properties.Settings>
            <setting name="OrgDBOrgSettingsTool_CrmService_CrmService" serializeAs="String">
              <!--- Please change CrmServer to your Crm Server Name -->
                <value>http://xrm:5555/MSCrmServices/2007/CrmService.asmx</value>
            </setting>
            <setting name="OrgDBOrgSettingsTool_CrmDiscoveryService_CrmDiscoveryService"
                serializeAs="String">
              <!--- Please change CrmServer to your Crm Server Name -->
                <value>http://xrm:5555/XrmServices/2011/Discovery.svc</value>
            </setting>
            <setting name="OrgDBOrgSettingsTool_SKU" serializeAs="String">
              <!--- Possible values here are Online/Office365/SPLA/OnPrem -->
                <value>OnPrem</value>
            </setting>
            <setting name="OrgDBOrgSettingsTool_UserName" serializeAs="String">
              <!--- Please change the value below to your email Id/User Name for Online / SPLA -->
                <value>administrator</value>
            </setting>
          <setting name="OrgDBOrgSettingsTool_Domain" serializeAs="String">
            <value>mscrm</value>
          </setting>
          <setting name="OrgDBOrgSettingsTool_OrgServiceUri" serializeAs="String">
            <value>http://xrm:5555/{0}/XrmServices/2011/Organization.svc</value>
          </setting>
          <setting name="OrgDBOrgSettingsTool_RegistrationEndPointUri" serializeAs="String">
            <value>https://login.live.com/ppsecure/DeviceAddCredential.srf</value>
          </setting>
            <setting name="OrgDBOrgSettingsTool_Partner" serializeAs="String">
              <!--- This is applicable only for Online -->
                <value>Crm.Dynamics.com</value>
            </setting>
            <setting name="OrgDBOrgSettingsTool_Environment" serializeAs="String">
              <!--- This is applicable only for Online -->
                <value>INT</value>
            </setting>
        </OrgDBOrgSettingsTool.Properties.Settings>
    </applicationSettings>
</configuration>

 
just change the below...
follow the below link to know how it works and details...

http://support.microsoft.com/kb/2691237

regards,
yes.sudhanshu