All Questions
124
questions
0
votes
1
answer
87
views
why sometimes first api request after some idle time take over 15s?
i have some api in .net core
configured everything i can so apppol is not recycled / always running etc
but still if i wait 10/15min betwen requests
first call takes >15s
and each next one 10ms
i ...
0
votes
0
answers
232
views
Connection pooling issue with SQL Server and .NET Core app
I have a .NET Core 3.1 solution comprising two web apps and two console apps. They all share a single database. However, one of the web apps, named MobileApi, which serves mobile devices, periodically ...
0
votes
0
answers
44
views
How to host ASP.NET MVC or Web.Api project on IIS without publishing? I'm using Visual studio 2022 and .Net8 [duplicate]
I create an ASP.NET MVC 4 project and just build it in Visual Studio 2022.
Then I opened IIS and add an application under the site/Default Web Site with 'TestMvc' Alias.
Application pool is ...
0
votes
2
answers
91
views
How to disconnect request for API after time out?
I hosted a ASP.NET Core web API 6 in IIS 10. Due to huge number of requests coming for API, there is a time out error generated from the API.
How can I cancel requests after time out?. The problem is, ...
0
votes
1
answer
78
views
When using WebDeploy to deploy ASP.NET website to IIS, can I only create appsettings.Production.json if it does not exist?
My project contains both appsettings.json and a default appsettings.Production.json files. However an admin may edit the Production file manually on the server and it would get overwritten if I ...
0
votes
0
answers
57
views
Reading Json file is slow when uploading to IIS
I uploaded .Net core/ Angular project into IIS. I have a code to write into json file and read from json file.
In the localhost, It is not taking a second to write/read Json file, but after upload and ...
1
vote
1
answer
130
views
Cannot deploy a Web API ASP.NET Core on IIS [duplicate]
I already read/watch multiple tutorials about deploying an API on ISS.
I did it step by step, multiple times but I still got the same issue....
'the requested page cannot be accessed because the ...
0
votes
2
answers
81
views
IIS Add Application Under Website With Different Port
I have website created under IIS 10 named MyWeb that runs under port 5000.
I need to create an application under it, to host a .NET 6 and I need this app to listen to port 6000, can this be done?
My ...
0
votes
0
answers
41
views
What could be causing a parser error in an Ironspeed website after moving to a new server?
I am trying to move old working ironspeed websites to new server,
they all worked correctly except for one which is showing parser error as below:
Parser Error
Description: An error occurred during ...
0
votes
0
answers
209
views
ASP .NET Core - Windows authentication on IIS and problem with Domains
The problem is:
I have application which running on IIS with windows authenticate enabled, and others disabled. We have 2 domains, lets call them Domain A(internal) and Domain B(external). Domain A ...
0
votes
0
answers
149
views
.NET How to get Domain\Username on server?
I have middleware in startup.cs and I need to get user domain and if his domain is in allowed domains i will send him to windows authentication, if not he must go through web login. This is code:
...
1
vote
0
answers
508
views
Can't debug ASP.NET Core code - code type is 'x64' so debugger does not load symbols for managed code
I have several ASP.NET Core websites (.NET 7), and each of them run fine on both my local dev computer's IIS and remote server's IIS.
When I debug a website, I use Visual Studio's Attach to process ...
0
votes
1
answer
442
views
ASP.NET Core 6.0 MVC app works locally but doesn't when deployed to IIS & results in Http error 500
I have an ASP.NET Core 6.0 MVC app which runs perfectly fine locally. I then use Web Deploy and publish the app 'successfully' to IIS.
Although the website will just show the browser's generic http ...
1
vote
2
answers
766
views
How to set hosting environment for a specific website?
My site is running under IIS among a dozen others. I want to set its hosting environment to Staging, but I can't use ASPNETCORE_ENVIRONMENT environment variable to set it, because of the ...
0
votes
1
answer
321
views
VS 2022 + .NET Core 3.1 Web app can't debug under IIS profile
I receive the following error when trying to debug the .net core web app under the IIS profile.
launchSettings.json is as follows and the PC IP is correct. (192.168.31.107)
"cqrs" site is ...