Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
When I am trying to use AspNetCore SignalR in my Windows Forms application, hubconnecion.StartAsync never ends, and never throws an error or excpetion.
No matter if Hub is running or not, it only reacts if ctor has incorrect URL. If you'll try to use .Wait() it won't make any effect, it will just freeze
Client part:
HubConnection hub;
hub = new HubConnectionBuilder().WithUrl("https://localhost:5032").Build();
hub.StartAsync().Wait();
I tried'to make .netCore console app, and it's work great, don't know why I can't make it run on WindowsForm application? I thought AspNetCore SignalR uses.NetStandart that should allow me to use it.
P.s I know about another .netframework aspnet signalR but its old, and I have another more complicated issue with it.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
Currently working on a project with Amazon Neptune (c#) the gremlin client and I'm running into an issue while writing to the db we will get a ConnectionPoolBusyException since its alot of data to process. After digging around, it seems like all connections are hung and stay open. I've attempted to handle this exception by reconnecting to neptune when this exception is thrown, but it doesnt work. It seems to leave all connections open even after disposing the gremlin client and the neptune instance.
Is there a way to force close all open connections so then i can dispose and then reconnect to the neptune instance?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to create a wpf application which connects to a service on Azure where some calculations are done. The wpf application should sent some data to the service. The service should return some data back to the wpf application.
-I can program with wpf and c# however I am totally new with Azure and web/internet programming.
-An Azure account is already present.
-It must be a wpf application, not a website.
I have been trying to find out the correct information without luck, still no clue where to start.
Who can point me into the correct direction? Specially a sample would be great.
first, go to learn.microsoft.com/learn to get familiar with Azure. Then, you just need to code some API which will be hosted on Azure and will perform the calculations you want.
An easy way to get started is through Azure Functions with Http Trigger. It will generate an endpoint which you'll call in your WPF application:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp
To call your API, I recommend Flurl as it's more developer friendly:
https://www.hanselman.com/blog/UsingFlurlToEasilyBuildURLsAndMakeTestableHttpClientCallsInNET.aspx
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have a school Management system and school have more branches they say we should have one common db
and i think i will host my db but i dont know who i can make a connection wirh desktop application and online database
I think it's a terrible idea exposing your database to the internet. Much better solution would be to write a Web API that is exposed to the internet which both the web and desktop apps use to perform their tasks by interacting with the API.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to create WCF Service in c# in Visual Studio 2015 which will check automatically my directory with FileSystemWatch every hour or even all the time.
It is even possible to create service like this? Which will be call void function without request?
I didnt find nothing in google for few hours...
I dont have much experience with WCF Services...
Regards!
No. without request is impossible to do this.
You must have client that call the service.
Request can have void method but some WinService or ConsoleApp must call WCF service each time when You want to run WCF service.
Your best solution seems to be a Windows Service or a console application running via a scheduler to check for file system changes.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
when i connect share point data source in my light switch HTML application have one exception
listdata.svc
does not appear to be a valid site SharePoint 2010 (or later) with an installation of WCF Data Services is required.
I think it's an authentication error to connect to the service.
the service actual path is :
http://[YourSharePointSite]/_vti_bin/ListData.svc/
make sure you able to access this path and you enabled external access to it