locked
Debug Plugin on MS CRM 2011 Online RRS feed

  • Question

  • Hi,

    I want to debug CRM 2001 Online plugin, I have tried Tracing for this but does not worked. I have used following code

     
    ITracingService tracingService;

      // Extract the tracing service.
               tracingService = (ITracingService)serviceprovider.GetService(typeof(ITracingService));

               if (tracingService == null)
                  throw new InvalidPluginExecutionException("Failed to retrieve the tracing service.");

               IServiceEndpointNotificationService cloudService = (IServiceEndpointNotificationService)serviceprovider.GetService(typeof(IServiceEndpointNotificationService));
             
         if (cloudService == null)
                     throw new InvalidPluginExecutionException("Failed to retrieve the service bus service.");
     try
               {

                   if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
                   {
                       throw new InvalidPluginExecutionException("test");
                       if (context.MessageName == "create")
                       {
                          // Plugin Logic

          }
                    
                    }
                  }
    Catch(Exception e)
    {
    tracingService.Trace("Custom Exception = {0} ", e.ToString());
    }

    But I does not get any error dialog on MS CRM . If it create in trace file then in MS CRM 2001 Online case where it will located.

    It is urgent, please quick reply.

     

    Thanks


     


    ---vaib

    Monday, July 15, 2013 4:56 AM

All replies