Avatar of Brizo
Brizo
 asked on

CRM 4 Error message

Hi

I have been running CRM 4 with update rollup 2 (recent re release) SQL 2008 for the past month. we have had a few minor issues but suddenly started getting the following error message wthen trying to respond to an email in a queue or send one straight from CRM.

(Invalid argument) In a big white box

The following is taken from the Server event log as well

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 24/02/2009 09:24:49

Event time (UTC): 24/02/2009 09:24:49

Event ID: af63a61613b04d28a8df99b8e6322609

Event sequence: 4308

Event occurrence: 9

Event detail code: 0

 

Application information:

    Application domain: /LM/W3SVC/5/ROOT-1-128799392601562500

    Trust level: Full

    Application Virtual Path: /

    Application Path: C:\Program Files\Microsoft CRM\CRMWeb\

    Machine name: CAPITAL05

 

Process information:

    Process ID: 9244

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

    Exception type: TargetInvocationException

    Exception message: Exception has been thrown by the target of an invocation.

 

Request information:

    Request URL: http://capital05:5555/CapitalInternationalLimited/activities/email/edit.aspx?_ForwardFromId=9b7A1444D3-5402-DE11-84E8-000F1F64E8879d&crmFormSubmitMode=9&CRMWRPCToken=GvcOrOAn unhandled exception has occurred.bgEd2m9QAPH2Toh6ss1Ei9mczLAxoNnN5SrcRfhZ22OqrmgLgel8Qd8flc&CRMWRPCTokenTimeStamp=633710642685468750

    Request path: /CapitalInternationalLimited/activities/email/edit.aspx

    User host address: 192.168.5.4

    User: CAPITAL\cabm01

    Is authenticated: True

    Authentication Type: Negotiate

    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Thread information:

    Thread ID: 6

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)

   at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)

   at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)

   at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)

   at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)

   at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)

   at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()

   at Microsoft.Crm.Application.Platform.ServiceCommands.SendEmailCommand.Execute()

   at Microsoft.Crm.Application.Platform.Email.Send()

   at Microsoft.Crm.Web.Activities.EmailDetailPage.Send(Object sender, DataEventArgs e)

   at Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)

   at Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId)

   at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)

   at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)

   at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)

   at Microsoft.Crm.Web.Activities.EmailDetailPage.ConfigureForm()

   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

Custom event details:



Before i have to pay for help from Microsoft can anyone help in this matter

Cheers

Brian
Enterprise SoftwareMicrosoft Dynamics

Avatar of undefined
Last Comment
Brizo

8/22/2022 - Mon
gregowens

I've not encountered this error before - but can I recommend that you:
  • briefly enable server-side tracing on your CRM server,
  • retry the action (responding to an email),
  • stop the tracing as soon as possible,
  • identify the block of code where the error occurs in your trace file
  • attach the trace file or an excerpt to this thread
To facilitate toggling of CRM serverside tracing, use CRMDiagTool4 from here. Note that it must be run directly on the server.
Post back when you have this info to hand :)
Brizo

ASKER
here is the log file for this issue stated above

# CRM Tracing Version 2.0
# LocalTime: 2009-02-25 11:26:50.2
# Categories: *:Verbose
# CallStackOn: Yes
# ComputerName: CAPITAL05
# CRMVersion: 4.0.7333.1316
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
      at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>MapOrgEngine: Retreived the OrgId[{00000000-0000-0000-0000-000000000000}] for URL[http://capital05:5555/MSCRMServices/2007/CrmService.asmx].
[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
      at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: Request [POST http://capital05:5555/MSCRMServices/2007/CrmService.asmx] entered Authentication Pipeline.
[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationPipeline.Authenticate
      at AuthenticationPipeline.Authenticate(HttpApplication application)
      at AuthenticationEngine.Execute(Object sender, EventArgs e)
      at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: AuthenticationProvider [Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthenticationProvider] will be atempted.
[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | WindowAuthenticationProviderBase.Authenticate
      at WindowAuthenticationProviderBase.Authenticate(HttpApplication application)
      at AuthenticationProvider.Authenticate(CrmAuthenticationToken token)
      at SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application)
      at AuthenticationStep.Authenticate(HttpApplication application)
      at AuthenticationPipeline.Authenticate(HttpApplication application)
      at AuthenticationEngine.Execute(Object sender, EventArgs e)
      at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>WindowsAuthenticationProvider published CrmWindowsIdentity [UserToken:W:S-1-5-21-144263544-36469540-3385026045-2748] [UserId:{00000000-0000-0000-0000-000000000000}].
[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | AuthenticationPipeline.Authenticate
      at AuthenticationPipeline.Authenticate(HttpApplication application)
      at AuthenticationEngine.Execute(Object sender, EventArgs e)
      at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: AuthenticationProvider [Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthenticationProvider] handled request [http://capital05:5555/MSCRMServices/2007/CrmService.asmx].
[2009-02-25 11:26:50.2] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | VirtualPathProvider.GetFileHash
      at VirtualPathProvider.GetFileHash(VirtualPath virtualPath, IEnumerable virtualPathDependencies)
      at BuildResult.ComputeSourceDependenciesHashCode(VirtualPath virtualPath)
      at BuildResult.IsUpToDate(VirtualPath virtualPath)
      at MemoryBuildResultCache.GetBuildResult(String cacheKey, VirtualPath virtualPath, Int64 hashCode)
      at BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode)
      at BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath)
      at BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
      at BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath)
      at WebServiceParser.GetCompiledType(String inputFile, HttpContext context)
      at WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
      at HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
      at MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      at ApplicationStepManager.ResumeSteps(Exception error)
      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>GetFileHash(/MSCRMServices/2007/CrmService.asmx, System.Collections.ArrayList) called.
250209error.Zip
gregowens

Take a look at  http://capital05:5555/sdk/mdbrowser/entity.aspx?entity=activitypointer and check the "customisable" property on the activitypointer entity - is set to yes or no? It should be "no".
If it is set to "no", then can you confirm whether there have been any (non-crm) security patches on the server recently?
Your help has saved me hundreds of hours of internet surfing.
fblack61
Brizo

ASKER
Customisable is set to 'NO'

There has been a few security updates to be honest.
gregowens

Any that corelate with the start of your problems? Might be worth listing them if you can (by KB number).
For my part, I was suspecting a problem with activitypointer entity, no any further steps are general troubleshooting rather than a spefici issue in mind.
  • Is the issue replicable when logged in as system administrator
  • Is the issue replicable when attempted from the server console
  • Are there any custom plugins registered against the email or activity pointer entities?
  • Are you using the email router?
g.
Brizo

ASKER
Right

here are the list of security updates

Could not replicate the issue as admin or on Server. The only custom plugin is a MSCRM ADDons which we have been using for ages. We are also using the email Router
secupdates.JPG
secupdates2.JPG
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
gregowens

>>Could not replicate the issue as admin or on Server.
OK - this is our hook then. Which user role(s) are you using for the user that fails?
Brizo

ASKER
sorry meant this as the issue was still there when ran as admin or on the server

Sorry
ASKER CERTIFIED SOLUTION
Brizo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.