PjotrH
PjotrH
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
oh, and a TCP connection test to localhost -Port 1433 in powershell is positive
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
Tried another couple of variants. All error: 40. So maybe the first one, Server=DESKTOP-5BORAFJ, is closer
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
Server=localhost,1433 produces this: Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) So, closer? But still not working. Something wrong with the server config? (If that's the case why can I connect from two other applications?)
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
---> System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
Same with Server=localhost
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
@Jimmacle if I use Server=DESKTOP-5BORAFJ, I get this: Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
And this is the JDBC string I'm using in DBeaver with user sa/password: jdbc:sqlserver://;serverName=localhost;databaseName=master (this does work)
13 replies
CC#
Created by PjotrH on 8/11/2024 in #help
Dotnet API and local DB connection string
For reference, this is the connection string VS SQL object explorer gives me: Data Source=DESKTOP-5BORAFJ;User ID=sa;Password=**;Connect Timeout=30;Encrypt=False;Trust Server Certificate=True;Application Intent=ReadWrite;Multi Subnet Failover=False (Tried it, doesn't work)
13 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
sure
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
gotcha
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
idk if that's relevant
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
Noticing something else in my env variables: %USERPROFILE%.dotnet\tools --- C:\Users\peter.dotnet doesn't have any tools folder
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
but I can generate the project so clearly that works
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
setting it to C:\Program Files\dotnet\sdk\7.0.203\Sdks after installing 7.0 sdk
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
only thing I can think of now is that I had to manually set my environment variable for the 7.0 SDK to generate a project
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
Nah still nothing
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
brb rebooting
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
Not that I know of. Gonna make sure
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
57 replies
CC#
Created by PjotrH on 5/1/2023 in #help
❔ ✅ Swagger page doesn't load in fresh generated 7.0 .net webapi
57 replies