Tech Support > Microsoft Windows > Windows CRM > Error inside CRM While Granting Access
Error inside CRM While Granting Access
Posted by beltroniko@netcabo.pt on February 28th, 2008


Hello,

I'm running an application that has to import several contacts from a
ERP into MS CRM 3.0.
I call CRM's Web Services in order to do so, and then, since I do that
with a user from my root BU, I have to share the entity with other
businessunits (via WS aswell) for them to have access to it.

Everything works fine....

Except when my importer has several threads working, when it does,
sometimes (looks random) crm internally crashes (thats what I found
after debugging) sometimes when trying to share, others when trying to
create. I once had this problem, tried to solve it and when I tried to
have SQL Server (2005), Shared Memory disabled, everything was better
and I wouldn't get the error. Now, after 3 month, even with Shared
Memory disabled, I started getting the error, much more often.

Does it have anything to do with simultaneous accesses to CRM (or CRM-

Thanks in advance.

The errors are (from the CRM log):

[2008-02-28 14:58:34.0] Process: w3wp |Thread: 1768 |Category:
Exception |User: be291a40-4c98-dc11-8e01-001422151b1c |Level: Error |
CrmSoapExtension.GetCrmException
at CrmSoapExtension.GetCrmException(Exception exception)
at CrmSoapExtension.GetCrmException(Exception exception)
at CrmSoapExtension.GetCrmException(Exception exception)
at CrmSoapExtension.GetCrmException(Exception exception)
at CrmSoapExtension.ProcessMessage(SoapMessage message)
at SoapMessage.RunExtensions(SoapExtension[] extensions)
at SoapServerProtocol.WriteException(Exception e, Stream
outputStream)
at WebServiceHandler.WriteException(Exception e)
at WebServiceHandler.Invoke()
at WebServiceHandler.CoreProcessRequest()
at SyncSessionlessHandler.ProcessRequest(HttpContext context)
at CallHandlerExecutionStep.System.Web.HttpApplicatio n
+IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
at HttpApplication.ResumeSteps(Exception error)
at
HttpApplication.System.Web.IHttpAsyncHandler.Begin ProcessRequest(HttpContext
context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerReque st wr)
at HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
Microsoft.Crm.Platform.ComProxy.CRMContactClass.Gr antAccess(CUserAuth&
Caller, String ContactId, UInt32 Rights, CSecurityPrincipal& Grantee)


[2008-02-28 14:58:34.0] Process: w3wp |Thread: 1768 |Category:
Platform |User: be291a40-4c98-dc11-8e01-001422151b1c |Level: Error |
CrmSoapExtension.ProcessMessage
process request. ---> System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80044150): Cannot drop
the table '#CascadeCollect', because it does not exist or you do not
have permission.
at
Microsoft.Crm.Platform.ComProxy.CRMContactClass.Gr antAccess(CUserAuth&
Caller, String ContactId, UInt32 Rights, CSecurityPrincipal& Grantee)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean
verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
at
Microsoft.Crm.Sdk.UnmanagedServiceProvider.Execute Internal(Object
comProvider, String method, Object[] methodParameters)
at
Microsoft.Crm.Sdk.UnmanagedServiceProvider.GrantAc cess(BusinessEntityMoniker
moniker, PrincipalAccess principalAccess, ExecutionContext context)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean
verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke (Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.In voke(Object
target, Object[] values)
at Microsoft.Crm.Sdk.MethodDescription.ExecuteInterfa ce(Object
methodImplementation, Object[] inputParameters)
at Microsoft.Crm.Sdk.Request.Process()
at Microsoft.Crm.WebServices.CrmService.Execute(Reque st request)
--- End of inner exception stack trace ---


Similar Posts