![]() |
#9 |
Участник
|
http://a33ik.blogspot.com/2009/05/pu...own-hands.html
пишу насчет этого поста, я вижу ты изменил код плагина??? попробовал их создать сделал все в точности (единственное не совсем понял какое имя фрейма нужно указывать при создании интернет-кадра и какое значение по умолчанию ставить в поле new_isallowed). Но это не важно. Далее сделал плагины, сбилдил, зарегистрировал все как положено, но при запуске CRM сразу после регистрации обоих плагинов появляется ошибка: ![]() А вот Trace Log этой ошибки: В приложении файл (CRMLogs.rar) что характерно, если зарегистрировать плагин PublicViewManager - и к нему шаг на Событие Create, и сущность new_piblicviewmanager, Post Synh. - то ошибки не возникает при запуске crm, но ошибка возникает в момент сохранения когда мы создаем новый объект PublicViewManager выбираю в пиклисте Сущность и во втором пиклисте выбираю Подразделение нажимаю Save и ошибка. "Обратитесь к содружеству Майкрософт и т.д. и никакого описания." Если Зарегистрировать оба плагина и к нему шаг на событие RetrieveMultiply, Pre Synh. То при открытии CRM любого представления (даже рабочая область действия) получаем такую ошибку X++: Microsoft CRM Error Report: Error Description: Public assembly must have public key token. Error Details: Public assembly must have public key token. Full Stack: [CrmException: Public assembly must have public key token.] Microsoft.Crm.Extensibility.PluginAssemblyFactory.VerifyPublicKeyToken(Assembly assembly) Microsoft.Crm.Extensibility.PluginStep..ctor(Guid stepId, StepDescriptionCache stepDescriptionCache, SecureConfigurationCache stepSecureConfigurationCache, StepImageDescriptionCache stepImageDescriptionCache, CrmEventLog eventLog, IOrganizationContext context) Microsoft.Crm.Extensibility.PipelineStepFactory.CreateInstance(Guid stepId, IOrganizationContext context) Microsoft.Crm.Caching.PipelineStepCacheLoader.LoadCacheData(Guid key, ExecutionContext context) Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context) Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context) Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context) Microsoft.Crm.Extensibility.ImageRetrievalStep.MergeEntityRequests(PipelineExecutionContext context, Dictionary`2 entityRequests) Microsoft.Crm.Extensibility.ImageRetrievalStep.Execute(PipelineExecutionContext context) Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context) Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context) Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context) Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request) Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal() Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute() Microsoft.Crm.Application.Platform.SavedQuery.RetrieveByObjectType(Int32 returnedTypeCode, String columnSetXml, Int32[] queryTypes, Boolean publicOnly) Microsoft.Crm.Controls.ViewSelector.AddSystemViewGroup(String groupName, String groupId, OptionSorting sorting, Int32[] queryTypes, Boolean includeQueryAPIViews) Microsoft.Crm.Application.Controls.AppViewSelector.Initialize() Microsoft.Crm.Application.Controls.AppViewSelector.set_SelectedView(String value) Microsoft.Crm.Web.Workplace.HomeActivitiesPage.ConfigurePage() Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) System.Web.UI.Control.PreRenderRecursiveInternal() System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException: "System.Web.HttpUnhandledException".] System.Web.UI.Page.HandleError(Exception e) System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) System.Web.UI.Page.ProcessRequest() System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) System.Web.UI.Page.ProcessRequest(HttpContext context) ASP.korusconsulting_workplace_home_activities_aspx.ProcessRequest(HttpContext context) c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fcc31ff6\e77f4ed8\App_Web_7vb2pn-7.0.cs: 0 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Other Message: Error Number: 0x8004416C Source File: Not available Line Number: Not available Date: 09-13-2010 Time: 17:40:07 Server: crmsrv02 Request URL: [url]http://crmsrv02:5555/OrgName/Workplace/home_activities.aspx[/url] Microsoft CRM Unhandled Error Details: '/'. -------------------------------------------------------------------------------- Public assembly must have public key token. : -. . : Microsoft.Crm.CrmException: Public assembly must have public key token. : -. , . : [CrmException: Public assembly must have public key token.] Microsoft.Crm.Extensibility.PluginAssemblyFactory.VerifyPublicKeyToken(Assembly assembly) +426 Microsoft.Crm.Extensibility.PluginStep..ctor(Guid stepId, StepDescriptionCache stepDescriptionCache, SecureConfigurationCache stepSecureConfigurationCache, StepImageDescriptionCache stepImageDescriptionCache, CrmEventLog eventLog, IOrganizationContext context) +213 Microsoft.Crm.Extensibility.PipelineStepFactory.CreateInstance(Guid stepId, IOrganizationContext context) +207 Microsoft.Crm.Caching.PipelineStepCacheLoader.LoadCacheData(Guid key, ExecutionContext context) +299 Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context) +114 Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context) +84 Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context) +252 Microsoft.Crm.Extensibility.ImageRetrievalStep.MergeEntityRequests(PipelineExecutionContext context, Dictionary`2 entityRequests) +322 Microsoft.Crm.Extensibility.ImageRetrievalStep.Execute(PipelineExecutionContext context) +73 Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context) +325 Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context) +881 Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context) +179 Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) +835 Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) +78 Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) +152 Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId) +319 Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request) +1463 Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal() +260 Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute() +10 Microsoft.Crm.Application.Platform.SavedQuery.RetrieveByObjectType(Int32 returnedTypeCode, String columnSetXml, Int32[] queryTypes, Boolean publicOnly) +465 Microsoft.Crm.Controls.ViewSelector.AddSystemViewGroup(String groupName, String groupId, OptionSorting sorting, Int32[] queryTypes, Boolean includeQueryAPIViews) +133 Microsoft.Crm.Application.Controls.AppViewSelector.Initialize() +157 Microsoft.Crm.Application.Controls.AppViewSelector.set_SelectedView(String value) +13 Microsoft.Crm.Web.Workplace.HomeActivitiesPage.ConfigurePage() +1091 Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +22 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 Basic Server & Client Information: What the End User would have seen: В приложении прилагаю плагины, которые я зарегистрировал: |
|