Azure Upload Error 500

13 posts, 0 answers
  1. Michael
    Michael avatar
    21 posts
    Member since:
    Aug 2008

    Posted 12 Mar 2014 Link to this post

    I have a simple RadCloudUpload control and when uploading a file, I get an error 500.  
      
    <telerik:RadCloudUpload ID="RadCloudUpload1" OnFileUploaded="RadCloudUpload1_FileUploaded" runat="server" OnClientUploadFailed="onClientUploadFailed" ProviderType="Azure" AllowedFileExtensions="jpg" Skin="Glow" MaxFileSize="0"></telerik:RadCloudUpload>
         <asp:Button ID="Save" OnClick="Save_Click" runat="server" Text="Button" />

    The control is registered as shown here:
     "message" : "RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly." }

    The blob contains files uploaded prior to upgrading to Q1 2014 so it was working at one point.  I am not aware of any changes to Azure or my code.  I checked the keys, account name and blob permissions. Any ideas?

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 12 Mar 2014 Link to this post

    Hi Michael,

    Error 500 indicates a server error. To troubleshot the problem first make sure that the Custom Errors are disabled:
    <customErrors mode="Off"/>

    Then look at the returned response in a Network Tool of your choice. The response should contain detailed information about the error.  For more details see this screenshot.

    Since Q1 2014 we have updated CloudUpload to use newer version of Windows Azure SDK.

    Install the new version via the nuget package management console:

    Install-Package WindowsAzure.Storage -Version 3.0.2

    Regards,
    Hristo Valyavicharski
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    21 posts
    Member since:
    Aug 2008

    Posted 12 Mar 2014 in reply to Hristo Valyavicharski Link to this post

    Hristo, 

    Thank you for the suggestion to check the network trace.  The returned error states WindowsAzure.Storage version 3.0.2 cannot be loaded.  I checked my reference and I have a newer version 3.0.3 installed which was release in Feb '14.  Is an update to the control needed or do I need to try and rollback to 3.0.2?  
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 13 Mar 2014 Link to this post

    Hi Michael,

    Yes, you will have to rollback to 3.0.2. For additional information please look at this help article.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  6. Michael
    Michael avatar
    21 posts
    Member since:
    Aug 2008

    Posted 13 Mar 2014 in reply to Hristo Valyavicharski Link to this post

    I uninstalled 3.0.3 and installed 3.0.2.  Upload now works.  Thank  you for your help.
  7. Charles
    Charles avatar
    5 posts
    Member since:
    Dec 2013

    Posted 01 Jul 2014 Link to this post

    FYI
    I tried the 2014 Q2 version of RadCloudUpload with the current Azure storage dll.  It still needs to be rolled back to version 3.0.2.  Version 3.0.3 returns the 500 error.

    The help file referenced above has you install version 1.7.0.0 of the storage dll.  That also returns a 500 error. That page, 
            http://www.telerik.com/help/aspnet-ajax/cloud-upload-azure-blob-storage.html
    needs to be updated to reflect the current working version of Azure storage DLL.  I spent a lot of time tail-chasing on that one.

    For now (as of 7/1/2014), the correct NuGet Azure Storage install is 

            Install-Package WindowsAzure.Storage -Version 3.0.2

  8. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Jul 2014 Link to this post

    Hi Charles,

    Thank you for reporting this. We are going to update this outdated help article.

    Your Telerik points were updated.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Michalis
    Michalis avatar
    3 posts
    Member since:
    Jul 2014

    Posted 12 Feb 2015 Link to this post

    Hi there,

    Guys I have the same problem, I have installed Package WindowsAzure.Storage -Version 4.3.0 and I got a 500 error.

    Is there any solution out there ?


    Thank you
  10. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 12 Feb 2015 Link to this post

    Currently the CloduUpload uses Microsoft.WindowsAzure.Storage ver. 3.0.2. To resolve the issue:
    • Install the proper version:
      Install-Package WindowsAzure.Storage -Version 3.0.2 

    Use binding redirect:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <sectionGroup name="telerik.web.ui">
          <section name="radCloudUpload" type="Telerik.Web.UI.CloudUploadConfigurationSection, Telerik.Web.UI" allowDefinition="MachineToApplication" requirePermission="false" />
        </sectionGroup>
      </configSections>
      <appSettings>
        <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
        <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
      </appSettings>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="3.0.2.0" newVersion="4.3.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <system.web>
        <compilation debug="false" targetFramework="4.5.2">
          <assemblies>
            <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>
        </compilation>
        <httpRuntime targetFramework="4.5.2" />
        <pages>
          <controls>
            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
          </controls>
        </pages>
        <httpHandlers>
          <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
          <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
        <httpModules />
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true" />
        <handlers>
          <remove name="ChartImage_axd" />
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
          <remove name="Telerik_Web_UI_DialogHandler_aspx" />
          <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
          <remove name="Telerik_RadUploadProgressHandler_ashx" />
          <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
          <remove name="Telerik_Web_UI_WebResource_axd" />
          <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
        </handlers>
      </system.webServer>
     
      <telerik.web.ui>
        <radCloudUpload>
          <storageProviders>
            <add name="Azure" type="Telerik.Web.UI.AzureProvider" accountKey="" accountName="" blobContainer="" subFolderStructure="" ensureContainer="true" uncommitedFilesExpirationPeriod="2" defaultEndpointsProtocol="https"/>
          </storageProviders>
        </radCloudUpload>
      </telerik.web.ui>
    </configuration>



    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  11. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 12 Feb 2015 Link to this post

    Binding Redirect for Amazon S3:

    <?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      -->
    <configuration>
      <configSections>
        <sectionGroup name="telerik.web.ui">
          <section name="radCloudUpload" type="Telerik.Web.UI.CloudUploadConfigurationSection, Telerik.Web.UI" allowDefinition="MachineToApplication" requirePermission="false" />
        </sectionGroup>
      </configSections>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral" />
            <bindingRedirect oldVersion="2.0.5.0" newVersion="2.3.18.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <system.web>
        <compilation debug="true" targetFramework="4.5" />
        <httpRuntime targetFramework="4.5" />
      
        <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
      </system.webServer>
      <telerik.web.ui>
        <radCloudUpload>
          <storageProviders>
          ...
          </storageProviders>
        </radCloudUpload>
      </telerik.web.ui>
    </configuration>


    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  12. Michalis
    Michalis avatar
    3 posts
    Member since:
    Jul 2014

    Posted 16 Feb 2015 in reply to Hristo Valyavicharski Link to this post

    Thanks a lot Hristo,

    It works :)
  13. Greg
    Greg avatar
    29 posts
    Member since:
    Oct 2007

    Posted 16 Mar 2015 in reply to Hristo Valyavicharski Link to this post

    First of all you have the oldVersion and newVersion reversed in the bindingRedirect if you are trying to roll BACKWARDS to an older version: it should be:

    <bindingRedirect oldVersion="4.3.0.0" newVersion="3.0.2.0"/>

    Secondly, it DOES NOT WORK. Still error 500.

    Instead of providing solutions that move us backwards, why don't you do the right thing and bring the control up to date with Azure storage release 4.3.0??????????????


  14. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 17 Mar 2015 Link to this post

    Hi Greg,

    You should use Azure Storage ver3.0.2.  We haven't tested the control against newer versions like 4.3.0. 
    It is in our future plans to upgrade this reference.

    To troubleshoot the error look into the returned response:


    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017