All Questions
Tagged with asp.net-core .net
2,406
questions with no upvoted or accepted answers
14
votes
0
answers
9k
views
How to set telemetryConfiguration for Application Insights for Serilog via AppSettings
For my ASP.NET 5 Web Project I want to log to Application Insights via Serilog. Now I finally got everything working, but I cannot belive this is they way to go. I hope you can help me to improve it.
...
10
votes
1
answer
1k
views
.Net Core DebugDiag Equivalent
For .Net 4.6.x, I have heavily relied upon DebugDiag 2
Anytime Production applications had high CPU issues, deadlocks, etc, I would use that tool to capture dumps of w3svc and it prints out a nice ...
10
votes
3
answers
3k
views
TestServer CreateClient and HttpClientHandler - howto?
I'm using the AspNetCore TestServer and trying to connect to an API service configured for NTLM Authentication. The service I'm connecting to needs to access the System.Security.Claims.ClaimsPrincipal....
9
votes
1
answer
6k
views
.NET 6 HttpLogging RequestBody in is always empty in log
I use HttpLogging to log requests coming to my endpoints. I would like to log the whole request. I setup the HttpLogging in Program.cs
builder.Services.AddHttpLogging(logging =>
{
logging....
9
votes
0
answers
4k
views
rzc generate exited with code 1 Microsoft.NET.Sdk.Razor.CodeGeneration.targets 3.0.0-preview8-28405-07
just upgraded from core 2 to core 3 preview
3.0.0-preview8-28405-07
there are no errors and then i build and get the cryptic error
rzc generate exited with code 1.
/usr/local/share/dotnet/sdk/...
9
votes
0
answers
2k
views
How do I dispose of a connected service in .net core 2.0?
When adding a connected service in .net core 2.0 using the WCF Web Service Reference provider to a SOAP interface the System.ServiceModel.ClientBase version 4.2.0.0 no longer has the IDisposable ...
9
votes
0
answers
2k
views
intermittent "unknown database"
We are currently trying to troubleshoot an issue running dotnet core and EF core with an AWS Aurora (mysql) db running on RDS.
We are getting "unknown database" errors in some of our selects through ...
8
votes
0
answers
2k
views
Azure App Service handling encoded plus sign in URL wrong
I have an ASP.NET Core 2.1 application that uses ASP.NET Core Identity for user management. If someone forgot their password I use the Identity SDK to generate a password reset token. Then I mail a ...
8
votes
0
answers
1k
views
How does SignInManager.GetExternalLoginInfoAsync work?
In a project im working on I found the following:
// GET: /Account/ExternalLoginCallback
[HttpGet("ExternalLoginCallback")]
[AllowAnonymous]
public async Task<IActionResult> ...
7
votes
0
answers
856
views
electronize build does not produce output in \bin\desktop folder
I try to build my electron app using the command "electronize build /target win" but no output is produced in the \bin\desktop folder
I tried to use different build targets. But only output is ...
7
votes
0
answers
2k
views
There was an error trusting HTTPS developer certificate
I installed the dotnet-dev-certs v2.1.1 tool and it generates an error when trying to trust the certificate:
When I tried trusting it via the certificate manager, it returns this error:
7
votes
0
answers
1k
views
Bypass default AuthorizeFilter in .NET Core 2.1
I recently updated my .NET Core app from 2.0 to 2.1.
I have an authorize filter that I add during startup as so:
var posBearerPolicy = new AuthorizationPolicyBuilder()
.AddAuthenticationSchemes(...
7
votes
0
answers
4k
views
Unable to connect to web server 'IIS express'. when I added a new binding in applicationhost.config
What I want to accomplish is to be able to open the web application I'm running in Visual Studio from my Android phone, so I added new binding in the file applicationhost.config with my machine's IP:
...
7
votes
0
answers
1k
views
dotnet test reports no tests available in project targeting net47
When I run dotnet test against my test projects, I get the error message
No test is available in ......dll. Make sure that test discoverer & executors are registered and platform & framework ...
7
votes
1
answer
793
views
Publishing ASP.NET vNext / DNX combined with CLR class library
I've added my 'traditional' DAL project to an ASP.NET vNext and worked/debugged with it locally without any problems. But when I tried to publish it to Azure it would not. It states '3>Publish failed ...