c# - Unable to ulpoad file using S3 TransferutilityUploadRequest -


here code :

try { transferutility filetransferutility = new                     transferutility(new amazons3client(amazon.regionendpoint.useast1));  transferutilityuploadrequest filetransferutilityrequest = new transferutilityuploadrequest                   {                       bucketname = bucketname,                       filepath = filepath,                       storageclass = s3storageclass.reducedredundancy,                       partsize = 6291456, // 6 mb.                       key = keyname,                       cannedacl = s3cannedacl.publicread                   };                  filetransferutility.upload(filetransferutilityrequest);   } catch (amazons3exception s3exception) {  console.writeline(s3exception.message,                                   s3exception.innerexception); } catch (exception ex) {  } 

wherenever execute code exception "could not load type 'system.runtime.exceptionservices.exceptiondispatchinfo' assembly 'mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'."

any appreciated .

aws sdk run on .net 4.5 or 3.5, , have 4.0.

installing/changing .net 4.5 should solve problem.

source (aws sdk page): https://aws.amazon.com/sdk-for-net/


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -