Показать сообщение отдельно
Старый 29.09.2010, 06:27   #8  
focus is offline
focus
Участник
 
30 / 10 (1) +
Регистрация: 11.06.2010
Ошибка повторяется, но с другим сообщением
Всем привет ещё раз.
Ошибка при выполнении бизнес-процесса повторяется.
Теперь в сообщении об ошибке пишет, что вообще не нашел сборку.
Код:
Workflow paused due to error: Unhandled Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request.
Detail: <detail><error>  <code>0x80044191</code>  <description>Assembly can not be loaded from C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly\CounterPlugin.dll.</description>
<type>Platform</type> </error></detail>  at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response,
Stream responseStream, Boolean asyncCall)  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)  at
Microsoft.Crm.SdkTypeProxy.CrmService.Create(BusinessEntity entity)  at Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceWrapper.Create(BusinessEntity entity)  at
Microsoft.Crm.Workflow.Services.CreateActivityService.Execute(ActivityExecutionContext executionContext, CreateActivity createActivity)  at
Microsoft.Crm.Workflow.Activities.CreateActivity.Execute(ActivityExecutionContext executionContext)  at
System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)  at
System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)  at
System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)  at System.Workflow.Runtime.Scheduler.Run()
Помимо этого бизнес процесса, есть другой. Который вызывает Custom WorkFlowActivity.
При его вызове ошибка примерно такая же.
Код:
Workflow paused due to error: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.  at
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor,
Boolean& bNeedSecurityCheck)  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)  at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)  at
System.Activator.CreateInstance(Type type, Boolean nonPublic)  at System.Workflow.Runtime.Hosting.DefaultWorkflowLoaderService.CreateInstance(Type workflowType)  at
System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)  at
System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)  at
System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)  at
System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)  at
System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)  at
System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)  at
System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId)  at
Microsoft.Crm.Workflow.WorkflowHost.StartWorkflowFromType(Guid instanceId, Type workflowType, WorkflowContext context)
Inner Exception: Microsoft.Crm.CrmException: Assembly can not be loaded from C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly\ActivityBGAction.dll.  at
Compiled.Workflowad64bb3f60b9df11a11d00155d01250c.InitializeComponent()  at Compiled.Workflowad64bb3f60b9df11a11d00155d01250c..ctor()
Inner Exception: System.IO.FileNotFoundException:
Could not load file or assembly 'file:///C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly\ActivityBGAction.dll' or one of its dependencies.
The system cannot find the file specified.  at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)  at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence
assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)  at
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)  at
System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection,
StackCrawlMark& stackMark)  at System.Reflection.Assembly.LoadFrom(String assemblyFile)  at Microsoft.Crm.Extensibility.PluginAssemblyFactory.LoadAssembly(String
assemblyFile)
Сборки зарегистрированы On-disk.
Есть идеи ?

Последний раз редактировалось focus; 29.09.2010 в 06:29.