C
C#

help

System.Net.Sockets spookyness

Ppticrix9/28/2022
Hello! : I've been tasked with updating our web app backend to .net 6 and I am almost done. However, while it was working fine locally and on our Dev environment, I've hit a wall when trying to deploy in our QA environment. Here's what's happening : - Running our app on our QA environment gives me an error I don't get on other environment - OSes : - Dev environment runs on Windows Server 2012 R2 ; - QA runs on Windows Server 2016 ; - Local is Windows 10 Pro - When trying to connect to other processes, I get the following exception : System.PlatformNotSupportedException: 'Operation is not supported on this platform.' - Exception is triggered by System.Net.Sockets.UnixDomainSocketEndPoint - My research seems to indicate that Windows Server 2016 does not support UDS. But it isn't supported by Windows Server 2012 R2 either, where the build runs without any problem I can't get try to run in debug on WS2012 R2, since VS 2022 isn't compatible with it. But I guess this is due to what it decides to try and call via the Kestrel Server, which only has port registration on Listen(int 32) if the config specifies IP and Port, and ListenAnyIP if the config has a port, but no specific IP. So, Listen UnixSocket(...) is never explicitly called. Anyone faced something similar and know what could be happening here? Thanks!
UUUnknown User9/28/2022
6 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
yeah that would be what I'd like too haha, but what is weird is that it runs without a hitch on Windows Server 2012 R2
UUUnknown User9/28/2022
4 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
yeah, though right now I doubt my company would be willing to tear down most of our infrastructure given that, due to sucky circumstances, I am the whole backend department hahaha
UUUnknown User9/28/2022
3 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
how tho. sc query afunix returns nothing on those server. I only have it locally, since I run latest win 10 pro + wsl 2
UUUnknown User9/28/2022
Message Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
UUUnknown User9/28/2022
3 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
Hum I don't think so. We got the same Runtimes / SDKs on both machines, with the only difference currently is that we have 6.0.401 in QA and 6.0.400 in dev. Anyway, thanks for taking time to think through this too. Appreciated
UUUnknown User9/28/2022
3 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
Well, the unix domains socket are only on build > 17063. WS2016 = 14339, so no support :\
UUUnknown User9/28/2022
5 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
Yeah, but I don't need unix socket, and I don't ask for unix socket specifically in the code either, hence why I'm lost currently. Same thing :  Microsoft Windows [Version 10.0.14393]
UUUnknown User9/28/2022
5 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
Well, I'm not sure since I inherited that code, but my educated guess is that we got IPC pipes in there.
UUUnknown User9/28/2022
5 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
That's our current settings for the kestrel
Ppticrix9/28/2022
No "ListenUnixSockets" here. But let me check again if there's anything I can put to prevent the selection of those
UUUnknown User9/28/2022
2 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
yeah I know, but I don't know why it does that, or what I can do to explicitly tell kestrel that those ports sockets are not available and to not try them.
UUUnknown User9/28/2022
4 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
Ok, I'll take some time to look into that avenue. Thanks!
UUUnknown User9/28/2022
Message Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
fuck FUCK I found it your naming thing put me on the right path
UUUnknown User9/28/2022
Message Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
not type naming. There were overload of configuration above my screenshot and lo and behold :
UUUnknown User9/28/2022
4 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
someone didn't do their homework :
Ppticrix9/28/2022
I was stubbornly looking at the kestrel in Program
UUUnknown User9/28/2022
3 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
yeah I was looking for that! Even did a search
UUUnknown User9/28/2022
2 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
but it was hidden in a nuget
UUUnknown User9/28/2022
7 Messages Not Public
Sign In & Join Server To View
Ppticrix9/28/2022
yeah def, I had no log to look at, only one line with no error. Thanks for you help, made me look at things just at the right angles.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
INotifyDataErrorInfo helpWhen using the implementation for INotifyDataErrorInfo, is it possible when raising errors change evHow to pass value to parameter that require IEnumable string [Answered]Help me with the syntaxIs Array.Copy decent for copying sections of memory?I'm making a thing which relies pretty heavily on copying (not very large) sections of memory insideRelationship between Microsoft.AspNetCore.Identity.EntityFrameworkCore and AADHey guys, I read a bunch of Azure Active Directory documents and see that they recommend us not to sMSIX URI is inaccessible in AppinstallerHello, I have an Appinstaller and MSIX hosted in a public Google Cloud Storage bucket, meaning theyI'm having problems with a range of numbers and random generator (im new)I have an array of number (1-50, scaled), where one will be selected randomly and then every number EFCore Updating an item after mapping with AutomapperHey I am using Ef core to store some data in sqlite. I need to translate it to another object to shoIs it possible to allow an installer to downgrade dll's while not overwriting other app files?When creating an installer. (using Wix) Is there a way to have better control over the reinstall proIs there any way to simplify this, or a design pattern I should be following?```cs public event EventHandler<FizzbuzzDetermineNumberRequest>? DetermineNumberRequestHandlers; How to get service that not registed with interfaceHelpAssigning all StackPanel child element marginI am trying to set the margin for all elements in stackpanel from resor. Can you point out why it's Generics and type inference```cs public TDest MapTo<TSource, TDest>(TSource src) { var res = _mapper.Map<TSourcCrash of the background worker because of the SQL connectionI have a background worker running on some machine, which getting random crashes because of the SQL Minimum need data to create an EntityMy entity: ```cs public class Book : BaseEntity { public string Name { get; set; } MediatR commands and DTOs [Answered]Currently, I am passing DTOs to my controllers, I am using MediatR and it supports commands. I use tHow can I send int value from 1 program, to another via internet?```fix Hello. Is there any easy way to connect 2 programs to each other over the internet? I mean,InterfaceHi, i've this interface but there is only 1 class which doesn't need any parameter in `getAll(long iTroubleshooting Visual studio .net 6, debuggerHi, Ran in to a so strange bug/problem this week. I'm working in a multi tier solution with several✅ Amazon Review Panic!!!Hello, I am a Freshman in college who was recently selected for a technical interview at Amazon. I aSearch for text and sort by most hits.I wrote a function like this, it looks for words in the database. I would like to make it sort by th