Skip to content

A suitable constructor for type HttpConnectionFactory #21839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LumiProj opened this issue May 14, 2020 · 2 comments
Closed

A suitable constructor for type HttpConnectionFactory #21839

LumiProj opened this issue May 14, 2020 · 2 comments
Labels
area-signalr Includes: SignalR clients and servers Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue.

Comments

@LumiProj
Copy link

LumiProj commented May 14, 2020

Hi,

I am using Core client using Xamarin Forms. Everything is working great but when I change the Xamarin.ios Link option to "LinkAll" then I am getting this error on chat initialisation.
I also tried to skip link .net Core library but no luck.

I have already looked into that issue aspnet/SignalR#2933
but I want to publish my app with LinkAll option.
Please guide me how can I SKIP LINK the SignalR client.
I tried this setting but still not able to achieve the desired results.

--linkskip=Microsoft.AspNetCore

ERROR

A suitable constructor for type 'Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.

@Tratcher Tratcher changed the title A suitable constructor for type 'Microsoft.AspNetCore.Http.Connections.Client' A suitable constructor for type HttpConnectionFactory May 14, 2020
@Tratcher Tratcher added the area-signalr Includes: SignalR clients and servers label May 14, 2020
@BrennanConroy
Copy link
Member

You probably need to customize the linking a bit, check out this doc https://docs.microsoft.com/xamarin/ios/deploy-test/linker?tabs=windows#preserving-code

@BrennanConroy BrennanConroy added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label May 18, 2020
@LumiProj
Copy link
Author

Hi,

Well due to WebView issue I had to use LinkAll linking settings but Xamarin Forms sugested another solution to resolve that issue so first I resolved the WebView issue and the change the linking settings back to LinkSdkAssemblies and release the build and everything works fine.
But I use LinkAll link settings so I got the error back.

Anyways I achieved what I was looking for.

Thank you guys.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-signalr Includes: SignalR clients and servers Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue.
Projects
None yet
Development

No branches or pull requests

3 participants