Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

InvalidPluginExecutionException dialog does not show up - CRM 2011

$
0
0

Issue: In my CRM 2011 environment, the InvalidPluginExecutionException dialog is not showing up for some reason.

We have some custom exception handling code in the plugin written as below.

if (!valid)
{
     throw new InvalidPluginExecutionException("my message");
}

Instead anytime such an exception occurs, the following messsage shows up in the CRM UI.
An error has occurred.

Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

Also the following message is seen in the eventlog.

Event code: 3005
Event message: An unhandled exception has occurred.
Event time:
Event ID: 142763a5119e4cdfbfe29557b44a8760
Event sequence: 1515
Event occurrence: 2
Event detail code: 0 

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-129702510983800862
Trust level: Full
Application Virtual Path: /
Application Path: 
Process information:
Process ID: 15480
Process name: w3wp.exe

Exception information:

Exception type: InvalidProgramException
Exception message: Common Language Runtime detected an invalid program.
at System.ServiceModel.FaultException`1..ctor(TDetail detail, String reason)
at Microsoft.Crm.ExceptionConverter.TryConvertToFaultExceptionInternal(Exception exception, Boolean createNewFaultException, aultException`1& faultException)
at Microsoft.Crm.Extensibility.FaultHelper.ConvertToFault(Exception exception)
at Microsoft.Crm.Errors.ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError)
at Microsoft.Crm.Application.Forms.AppForm.HandleSaveEntityException(Exception exception, FormEventId eventType, String url)
at Microsoft.Crm.Application.Forms.AppForm.SaveEntity(EntityProxy entity, FormEventId eventType, String redirectPath, Boolean performDuplicateCheck)
at Microsoft.Crm.Application.Forms.AppForm.Save(Boolean& gridRefreshCallbackAdded)
at Microsoft.Crm.Application.Forms.AppForm.FormSaveEvent()
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, FormDescriptor fd)
at Microsoft.Crm.Application.Components.PageHandlers.OpportunityRecordPageHandler.ConfigureFormHandler()
at Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any suggestions?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>