All Questions
Tagged with connection c#
800
questions
0
votes
0
answers
63
views
Stored procedure not running after 10 minutes
I am working with C# and SQL Server.
I am calling a long-running stored procedure in SQL Server from C# using the System.Data.SqlClient.SqlCommand class.
The SQL Server's remote query timeout (server ...
0
votes
0
answers
58
views
How to debug Serilog to MySQL connection issues?
I'm new to Serilog and SO and I'm trying to use Serilog to log into a MySql 5.7 database.
I'm getting this error from the MySql server, for which I couldn't find any help online:
Aborted connection 23 ...
0
votes
0
answers
33
views
How can I get a connection with my bluetooth dongle on my pc and my smartphone to transfer audio via a2dp and avcrp?
I'm doing a study project where I'm supposed to write a Bluetooth integration into an infotainment system in WPF C#. The infotainment system runs on Windows 10.
I write a code in c# with 32feet.net ...
-2
votes
1
answer
50
views
Deploy a C# project with SQL Server
I completed building a project and it worked fine with the SQL server connection until I added the .mdf file to the environment and changed the connection statement in app.config.
now after I enter ...
0
votes
0
answers
51
views
MongoDb not connecting C#
I am making an app, where i want to use mongodb. I have never used mongo before, so i watched a tutorial on youtube. I registered on mongodb and got the connection string from there using their free ...
0
votes
2
answers
47
views
Cannot connect to an Oracle XE database from C#
The connection keeps timing out in this C# code:
private const string _connectionString = "User Id=c##BookingApp;Password=ftn;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=...
0
votes
1
answer
207
views
I am a newbie to c# and ASP.NET Core. I have an issue with connection of my web application to PostgreSQL
I am developing a simple test web application with registration and ability to log in. I try to add a new row to the database via Postman using this POST request:
https://localhost:7239/api/Auth/...
0
votes
0
answers
19
views
Receiving data from the prestashop database passing through the "store"
I'm trying to find the best solution to my problem. I have an API in C# that is going to get the tables that exist in the prestashop webservice, but now I need to make a more specific Sql call for ...
0
votes
1
answer
85
views
How to make SQL connection timeout shorter
I`m working on my tiny project and trying to connect my windows forms app to SQL Server.
Here is code of my connection class:
public class DatabaseConnection
{
private string connectionString;
...
0
votes
3
answers
426
views
I can't connect my postgresql docker container to my .NET 6 container
I have implemented an application with REST interfaces in C# on .NET 6. When the URLs are called, then the data is fetched from a Postgresql database and returned. The application is implemented as ...
0
votes
1
answer
101
views
Interaction with SharePoint with 2FA enabled via SharePoint CSOM
I need to write a lib to work with Sharpoint. Microsoft authenticator is used for 2FA. I encountered problems already at the stage of connecting to the Sharpoint. I assume that this is due to the fact ...
0
votes
0
answers
160
views
multipart/form-data in post to api
I'm trying to send some data into the provided API. The content type of the data is multipart/form-data; boundary=xxx. When I'm posting through Postman everything works fine, but when I'm doing it in ...
0
votes
0
answers
53
views
Can someone tell me the steps to make RIS connection with modality emulator using asp.net windows form?
I have been trying to make a windows form using asp.net but unfortunately I cannot establish a connection with Modality emulator DVTK. I have tried all steps but I cannot find any useful documentation ...
0
votes
1
answer
152
views
Receive file existence status cannot be determined
I have to upload a local file in a sftp folder.
Using SSH.NET I wrote this code
using (var client = new ScpClient(host, port, user, password))
{
client.Connect();
FileInfo file = new FileInfo(...
0
votes
1
answer
542
views
c# - The 'ClientID' option must be provided - Azure API - Connect to AzureSQL using managed identity
I have built an API as an Azure Web app that will be hosted through Azure API Management Service. I need the app to connect to an AzureSQL database using a system assigned managed identity.
var ...