All Questions
989
questions
0
votes
0
answers
27
views
Can converting and handling an Excel file with MemoryStream infect a server? [duplicate]
I'm making an Excel handler to save Excel content in a database.
I'm using MemoryStream to read the files content and make the validations and inserts.
My question is, if the Excel file that is used ...
0
votes
0
answers
30
views
c# why does HttpListener require admin rights (or run netsh as admin) but ASP.Net doesn't?
When starting an HttpListener in Windows 10, an HttpListenerException is thrown if the address is not "localhost:xxxx". This can be circumvented by running the command netsh http add urlacl ...
0
votes
0
answers
10
views
How can I record internal computer sound joined with input sound and save all in one file?
I want to write a client and server in c#, client will record internal sound + input sound (microphone) and stream it to the server, how can I achieve the join effect, to stream their both without any ...
0
votes
0
answers
70
views
C# UDP client and server, I don't understand using async and communication between two scripts
I never tried UDP before. The synchronous version works, but I need it async.
The client should connect the factory, send like a passphrase, server compares that, too. After that the server should ...
1
vote
1
answer
28
views
WebSocket Starting services issue not starting websocket
public async void StartServer()
{
try
{
httpListener = new HttpListener();
httpListener.Prefixes.Add("http://102.172.45.123:1222/");
httpListener.Start();
...
-2
votes
2
answers
55
views
The error when using ReceiveAsync and SendAsync to transmit text
I'm writing a server for creating an online chat in a WindowsFormsApp and encountered an error in ReceiveAsync and SendAsync. How can I fix it?
The issues start with trying to pass an argument into ...
0
votes
0
answers
23
views
Client cannot receive data from server C# (Websocket Sharp)
I'm trying to make a simple WinForms chat app with WebSockets, and I've got to the point where I can send data to the server from the Client, but the server cannot receive it.
Here is the server code:
...
0
votes
1
answer
90
views
Unable to configure HTTPS endpoint. No server certificate was specified - Web API C# on Linux
I receive the following message when i try to start my service on linux
Unable to configure HTTPS endpoint. No server certificate was specified
My WebAPI was created in C# on dotnet 8.0 but when i ...
0
votes
1
answer
29
views
Entity Framework SQLite concurrency error while saving changes
i am making a server app and its logic DOES work while i'm adding a new user but when i add a new item to the shopping cart everything messes up. i get a concurrency error while i save changes.
...
0
votes
0
answers
714
views
Ho fix the error: remote calls to the SAM database have been denied in the past 900 seconds throttling window
What I am doing is running a PowerShell script that goes to Azure to obtain information about the shared mailboxes, this from an ASP.NET Core 6.0 Web API. After some policies were applied to the ...
0
votes
0
answers
38
views
Why does an exception occur when binding to a socket server?
IPAddress IpAddress_ = IPAddress.Parse(ip_address);
int PortNumber = port_number;
// 소켓 서버로 실행
if (Socket_select == false)
{
m_Socket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,...
0
votes
0
answers
51
views
How can I force Blazor Server to free up Memory? [duplicate]
I've encountered numerous challenges with Blazor, particularly regarding its memory management. Whenever I initiate a new project and monitor the memory usage, it's evident that memory consumption ...
0
votes
0
answers
24
views
Server not retrieving a value to a client in a server-client project in C#
I'm currently working on a client-server project in C# but is not working as expected. I proceed to explain.
On the server side, I have this class:
public class MensajeSocket<T>
{
public ...
0
votes
0
answers
384
views
how to get rid of cannot access a closed pipe exception in C#
The method am using to send data to a server program is triggered by a button, The string is sent and I can print it out on the window of the server console but I get an exception on the client side ...
0
votes
0
answers
110
views
ASP.NET Www-Authenticate: Bearer error="invalid_token", error_description="The signature key was not found"
In my project, I share the same login with two different portals, and users of one portal cannot access the other.
To solve this I created claims for user authorization, in my Startup.cs I have the ...