ASP.NET RC1 Update 1 in Azure Web Site - azure

I have my startup developed in ASP.NET Core RC1 and published in Azure like a web site.
Sometimes I don't know why, the web app is down. I don't know what exactly happens, but I have an error in GCI like this:
The specified CGI application encountered an error and the server
terminated the process.
I have about 100K users, but it happens in hours that I don't have a lot of users using the web.
Here you have some screenshot about the errors:
I have created an API in a version of ASP.NET 4.5 to upload images to the platform (I know about the error of uploading files in Kestrel) and I'm in a point where I don't know what happens.
I'm using Application Insight in my platform, and I have received an alert, about the service:
90% of all the failed requests had this exception: Exception
method: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess
Exception type: Microsoft.AspNet.Server.Kestrel.Networking.UvException
I am totally frustrated about how to solve the error. My web app was totally fine when I was working in ASP.NET 4.5 in AWS, but now, I have a lot of problems...
What can I do? Any idea or help? Thanks.

Related

Problem to deploy a netcore Web Api in Windows Server IIS

I'm strugguling to deploy a netcore 3.1 web api in an IIS inside a windows Server, I already tried a lot of tutorials that give some steps like this one https://codingsonata.com/deploy-asp-net-core-web-api-on-iis/ , but I'm always getting a error.
Now that is what I see:
Does anyone knows what I could try to fix it? I already tried a lot of things, change things in the webconfig, I activated everything in the Windows features but I always get this. I already spent a lot of time on it and without success. :/

Blazor server in production on azure: Works for a while then suddenly 404 on all css/script files?

I hope its okay to ask here, I could not find a specific existing thread for this.
I have developed a Blazor server application in .NET 5 for a client, and it has been hosted on azure app service (on Linux plan). We have several environments (Dev, test,prod), and the deployed app works as intended in all environments, except when deployed to the production app. It works fine for a while, but at a point something happens and the browser dev tools console says 404 not found for all the css and script files. Because it is .NET 5, application insights are not supported in Azure.
In the Program.cs's CreateHostBuilder I have added the UseStaticWebAssets, and in Configuration in Startup.cs app.UseStaticFiles.
And as mentioned, it works perfect in all other environments, and for a while it works good in production after restarting the App Service.
Any idea what might be causing this?
Thanks!
Morten

DotNet Core web app working locally but not when deployed to Azure

I am trying to build a new web app using DotNet Core.
The app is Web API + AngularJS with ui-router.
The same app was working correctly both locally and on Azure using ASP.NET 5.
When I updated, I fixed a lot of stuff and got the new app working locally.
However, on Azure, I have the following error whenever I try to do any action:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
I searched for the error online and tried to use the provided solutions but in vain (e.g.: ASP.NET Core app not working after publish to Azure).
I did not post any code here because honestly I don't know where to start and what to post. Could someone please advise?
Regards,
In case someone was facing the same issue:
I was able to detect the problem by following this link (How do I debug an ASPNET Core MVC Application Deployed in Azure)
This helped me detect that it was not able to find node_modules
I added the node_modules directory to the publishOptions -> include
It worked!
Regards,

Azure web app not working - 500

I really want to use dotnet core and azure. I used the amazing yeoman aspnet generator to scaffold out a basic app. This ran fine locally using Kestrel.
I then added the app to my github account and linked this to a new Azure Web App instance to deploy the thing. But no joy :( I get a 500 error.
Looking at the setting of the webapp it saying using .net framework 4.6 is that right or am I missing something, cannot see an option for .net core 1.0 that I expected to see??
I tried turning on logging in the setting with detailed exceptions etc but have not found anything to give me a clue as to what going on.
#Andy, Could you try access into kudu site(yoursite.scm.azurewebsites.net) and start web.cmd file in this folder (/home/site/approot)? I suggest you can try to start this command. Meanwhile, please refer to Shawn's blog 'https://wildermuth.com/2016/04/29/Deploying-ASP-NET-Core-RC1-to-Azure-App-Services '. Any information or update, please let me know.

How to get Windows azure to give me more useful error information

I've been experimenting with the new windows azure website feature, and im getting http 500 internal server errors, but the logs are giving me very generic messages, I "think" its a problem with database connections, as everything runs fine locally. Is there some way to get more usefull error messages from azure ?
Im using C# .net 4.0 and mvc 3
Can you adjust the custom errors section in the web.config to give you detailed errors all the time?

Resources