locked
Error while using Microsoft.WindowsAzure.Storage dll in Plugin RRS feed

  • Question

  • Hi,

    I want to save some CRM content on Azure blob storage. For this i am using a plugin to create data on Azure blob storage. But my plugin is throwing error. Can anyone suggest me some idea how to work with this. Below is the error.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <a:key>CallStack</a:key>
          <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">   at ClassLibrary1.Class1.Execute(IServiceProvider serviceProvider)
       at PluginProfiler.Library.PluginAppDomainProxy.ExecuteCore(Stopwatch watch, ProfilerExecutionReport report, Object instance, Object executionParameter)
       at PluginProfiler.Library.AppDomainProxy.Execute(ProfilerExecutionConfiguration configuration, ProfilerExecutionReport report)</a:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <Message>Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</Message>
      <Timestamp>2015-04-02T13:35:06.4405008Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Thursday, April 2, 2015 1:39 PM

All replies

  • Hello,

    In case you have CRM Online - you would not be able to use mentioned assembly because of sandboxing.

    In case you have CRM On-Prem - have you registered mentioned assembly on a GAC? If not - do it and your issue should disappear.


    Dynamics CRM MVP
    My blog

    Thursday, April 2, 2015 5:18 PM
    Moderator