.NET Core 2.0 add service IAmazonS3 - amazon-web-services

I have follow this guide to configure my .net core application to work with AmazonS3 https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-netcore.html
But when I want to add as service, I'm getting an error
Can anyone help me to understand how to solve this ?
Thanks and regards
Here is error as text: Severity Code Description Project File Line Suppression State
Error CS0311 The type 'Amazon.S3.IAmazonS3' cannot be used as type parameter 'T' in the generic type or method 'ServiceCollectionExtensions.AddAWSService(IServiceCollection, ServiceLifetime)'. There is no implicit reference conversion from 'Amazon.S3.IAmazonS3' to 'Amazon.Runtime.IAmazonService'. AppName D:\API\AppName\Startup.cs 112 Active

OK, so I've found what the problem was for me. I've had aws package added as nuget package and in assemblies. Removing it from assemblies helped.

Related

Angular build error in core/src/render3/interfaces

While building an Angular 6 app i get a compile error in #angular/core/src/render3/interfaces on line 35. The line is:
[ACTIVE_INDEX]: number | null;
and the error is:
error TS1169: A computed property name in an interface must directly refer to a built-in symbol.
I an using #angular/core#6.1.6. Am I doing something wrong or is this an Angular bug?
Verify that Visual Studio is targeting the correct version of Typescript (as seen in your package.json), then try deleting your node_modules folder, and rerunning npm install.
I believe that this is caused by running Angular 6 with an earlier, incompatible version of typescript (<2.7), because it looks like the ability used by the container.d.ts file (referenced in your error) to use Constant-Named Properties was added in Typescript 2.7. Of course, if it were that simple then ng serve would tell you about the Typescript incompatibility, so I assume that I'm either wrong, or that your environment is playing tricks on you.
See here for a related question.

Kemal framework - undefined constant HTTP::FormData

I'm trying to set up a web app using the kemal framework written in the crystal language. I followed the tutorial mentioned in the getting started guide here
However, I can't get even the most basic web app to work. The line Kemal.run gives an error which traces to the line lib/kemal/src/kemal/param_parser.cr:69 and shows this error undefined constant HTTP::FormData.
I found the HTTP::FormData module https://github.com/RX14/multipart.cr. Adding this as a dependency and requiring it does not help.
Thanks in advance
You are probably using an old version of Crystal. Check with crystal -v.
HTTP::FormData has been added in Crystal 0.21.0.

Xamarin linker error with AWSSDK

I have a Xamarin forms mobile project (Android and iOS).
When I try to install the AWSSDK.S3 to access Amazon services, I get the following linker error when trying to build iOS:
Failed to resolve "System.Void Amazon.Runtime.Internal.Util.AESEncryptionPutObjectStream::.ctor(System.IO.Stream,System.Byte[],System.Byte[])" reference from "AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604"
..Android build has a similar error.
I have the following libraries installed:
AWSSDK.S3 v3.1.1.1
AWSSDK.Core v3.3.4
AWSSDK.SecurityToken v3.3.0.2
AWSSDK.CognitolIdenity v3.3.0.2
AWSSDK.CognitoIdentityProvider v3.3.1.2
PCLCrypto v2.0.147
PCLStorage v1.0.2
the only code in my project is:
var amazonClient = new AmazonS3Client();
Any ideas?
possible (bad) workaround that seems to work:
change in Linker Options/Linker behavior:
to: Don't link
instead of: Link SDK Assemblies only
The answer turns out to be found here:
Xamarin Forms IOS Failed to load assembly System.Net.Http.Primitive
even though its a different assembly error, the fix is the same:
update all the AWS.Core to the latest version: v3.3.6 in my case
install Microsoft.Bcl.Build v1.0.21
install Microsoft.Net.Http v2.2.29
Rolling back to AWSSDK.S3 V3.1.10 worked for me, done using the NuGet manager in Visual Studio. =)

Drupal installation error message

i just got started learning about drupal. during installation an error message is shown in my browser.
Fatal error: Call to a member function getPath() on a non-object in C:\xampp_folder\xampp\htdocs\drupal8\core\includes\install.core.inc on line 783
Can anyone point me in the right direction to fix this?
here are few simple instructions to follow when installing drupal7.x or drupal8
when having difficulties during installation of drupal7.x and drupal8.
please i recommend that you try installing lower versions of drupal before installing either drupal7 or drupal8. Thank you.

Error: Unable to import binding 'CustomBinding_IWSTrustFeb2005Async' from namespace

Using ASP.NET / Visual Studio 2005 / 2012:
I have a .wsdl file from service provider, which I need to test.
I ran wsdl.exe myfile.wsdl from Vs command promopt but I get this error:
Error: Unable to import binding 'CustomBinding_IWSTrustFeb2005Async' from namespace 'http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice'.
- Unable to import operation 'TrustFeb2005IssueAsync'.
- The element 'http://schemas.xmlsoap.org/ws/2005/02/trust:RequestSecurityToken' is missing.
I also tried to Add Web Reference from VS 2005 and VS 2012 but that is also throwing weird error.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'file:///C:/Users/abcd12/Documents/Visual Studio 2005/MyWebserviceTest/mex.xsd'.
Any idea what's wrong or where should I start looking into?
Update: The Visual Studio error adding reference is gone once I removed the entry to type import referencing mex.xsd.
But now VS is also giving the same error as command prompt.
Update: Looks like the wsdl is corrupted. Waiting from the provider to give me updated wsdl.
I will update here if I need any further help.
Some .xsd files imported in the wsdl weren't provided to me. Once I got those files, all went fine.