I am working on the radcloudupload and followed the code in http://demos.telerik.com/aspnet-ajax/cloud-upload/examples/upload-to-amazon-s3/defaultcs.aspx. But I am getting an assembly reference error that the control couldnt find reference to awssdk.dll. Any Ideas?
6 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 15 Nov 2013, 11:24 AM
Hi Robert,
RadCloudUpload depends on third party libraries to support all the different Cloud Storage Providers. If you want to use this control to upload files to Amazon S3 cloud, then you should add a reference to the AWSSDK.dll (which is a part of AWS SDK for .NET Extensions) in your application. Similarly uploading files to Windows Azure requires a reference to the Microsoft.WindowsAzure.StorageClient.dll and Everlive requires a reference to the Telerik.Everlive.Sdk.dll.
So if you have not added the reference to the AWSSDK.dll and attempts to upload files to Amazon S3 then uploading will fail with the following error message. "Telerik.Web.UI.RadCloudUpload with ID="ControlID" was unable to find a reference to AWSSDK.dll. Please, make sure that you have added a reference to this assembly in your project."
You can use the Package Management Console in your Visual Studio to add the reference as shown in the following steps.
RadCloudUpload depends on third party libraries to support all the different Cloud Storage Providers. If you want to use this control to upload files to Amazon S3 cloud, then you should add a reference to the AWSSDK.dll (which is a part of AWS SDK for .NET Extensions) in your application. Similarly uploading files to Windows Azure requires a reference to the Microsoft.WindowsAzure.StorageClient.dll and Everlive requires a reference to the Telerik.Everlive.Sdk.dll.
So if you have not added the reference to the AWSSDK.dll and attempts to upload files to Amazon S3 then uploading will fail with the following error message. "Telerik.Web.UI.RadCloudUpload with ID="ControlID" was unable to find a reference to AWSSDK.dll. Please, make sure that you have added a reference to this assembly in your project."
You can use the Package Management Console in your Visual Studio to add the reference as shown in the following steps.
- In Visual Studio IDE, Take Tools-> Library Package Manager -> Package Manager Console
- In the Prompt type, "Install-Package AWS.Extensions".
- Finally you will get a message "Successfully added 'AWS.Extensions 1.5.26.1' to <ProjectName> and you are done.
The package management tool will add two assemblies - AWSSDK.dll and AWS.SessionProvider.dll.
The first dll is mainly required for the control to work.
Hope this helps,
Shinu.
0
Accepted
Hello Robert,
In addition to the detailed explanation of Shinu, I would suggest you to refer to our documentation article, providing additional insights on the matter.
Regards,
Nencho
Telerik
In addition to the detailed explanation of Shinu, I would suggest you to refer to our documentation article, providing additional insights on the matter.
Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Robert
Top achievements
Rank 1
answered on 15 Nov 2013, 04:05 PM
Thank You Shinu for the splendid explanation. I followed the steps you mentioned and got it to work.
Thank You Nencho for the extra tip.
Thank You Nencho for the extra tip.
0
neowebgr
Top achievements
Rank 2
answered on 07 Feb 2014, 02:42 PM
Hello Shinu,
I am having the same issue, but I am already using the AWSSDK.dll in my project, but currently it is a different version than the 1.5.23.2 that the error I get mentions.
Do I have to use the 1.5.23.2 version or is there a way where I can use a more recent version?
I am having the same issue, but I am already using the AWSSDK.dll in my project, but currently it is a different version than the 1.5.23.2 that the error I get mentions.
Do I have to use the 1.5.23.2 version or is there a way where I can use a more recent version?
0
Hi,
@neowebgr
With Q1.2014 we have updated the assembly reference to 2.0.5 . Our assembly (Telerik.Web.UI) is with strong name and it could reference only assemblies with strong name so it is possible to use only the specified versions.
Regards,
Peter Filipov
Telerik
@neowebgr
With Q1.2014 we have updated the assembly reference to 2.0.5 . Our assembly (Telerik.Web.UI) is with strong name and it could reference only assemblies with strong name so it is possible to use only the specified versions.
Regards,
Peter Filipov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Michael Wayne
Top achievements
Rank 1
answered on 21 Feb 2014, 05:53 AM
If your project relies on the more recent AWSSDK for other features but also uses RadCloudUpload (meaning you need references to both) you can overcome by doing something similar to below in your web.config:
<
dependentAssembly
>
<
assemblyIdentity
name
=
"AWSSDK"
publicKeyToken
=
"9f476d3089b52be3"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-1.5.45.0"
newVersion
=
"1.5.45.0"
/>
<
codeBase
version
=
"1.5.45.0"
href
=
"bin\awssdk_1.5.45.0\awssdk.dll"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"AWSSDK"
publicKeyToken
=
"9f476d3089b52be3"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"1.5.45.1-2.0.8.2"
newVersion
=
"2.0.8.2"
/>
<
codeBase
version
=
"2.0.8.2"
href
=
"bin\awssdk_2.0.8.2\awssdk.dll"
/>
</
dependentAssembly
>