Is it possible to host single file asp.net core 5 blazor in iis? - asp.net-core

I want to host single file asp.net core 5 blazor - published with produce single file - with iis? When I do that , IIS in windows server 2016 returns status code 500 that indicates internal server error.

Single-file deployments are not supported in IIS, This is a known limitation of in-process hosting at least in .Net 5.
Please refer below thread for more info.
https://github.com/dotnet/aspnetcore/issues/14473

500 internal error is generic issue, you may check full error message on the server. Have you installed your .net 5 bundled on server? You may refer to this tutorial https://windowswebhostingreview.com/simple-way-to-host-your-asp-net-core-in-iis/

Related

webservice stopped working after moved from Windows Sever 2012R2 to 2019

I have one old wcf developed with .Net Framework 4.0 and was hosted on Windows Sever 2012 R2.
It was working fine but after server upgrade to Windows Sever 2019, it is throwing following error:
An error occurred while making the HTTP request to
https://prod1-a1:8086/MainAuthService/Authentication.svc. This could be due to the fact that the
server certificate is not configured properly with HTTP.SYS in the
HTTPS case. This could also be caused by a mismatch of the security
binding between the client and the server.
IIS version is 10.
It is first time I am working with web service and I don't have clue. I don't have access to code but any help would be appreciable.
Finally I was able to resolve it by using full domain name with URL which has https.
https://prod1-a1:8086.pisc.com/MainAuthService/Authentication.svc.

Application Pool Crashes IIS 10 ASP.Net Core 3.2 Blazor App EF Core

I have an Asp.Net Core 3.2 Blazor Webassembly application that has been published to a server running Windows Server 2016 with IIS 10.
After publishing to the server I can browse the login page to the site, However, when I attempt to login which calls a service and signs in with Entity Framework Core 3.1.5.
However when I attempt to call a linq query on the DbContext it seems to fail (This is deduced from log files).
Interestingly, if I remote into the server whilst running a login I get a JIT popup with the following error;
In the Windows System Log can see the following error;
A process serving application pool 'myapppool(domain)(4.0)(pool)' suffered a fatal communication error with the Windows Process Activation Service. The process id was '10188'. The data field contains the error number.
It seems to sometime crashes the apppool as well so if I then refresh the page i get 502 error on the site?
Below is a screen shot of the application pool advanced settings;
The server is running Windows 2016 with Plesk Obsidian installed on it (I'm not sure if this can interfere in any way??)
Does anyone know whats going on here please?
I don’t know what’s going on since I can not reproduce your issue. Here is a workaround.
Please ensure that IIS Application pool’s Advanced Settings has set ”Enable 32-Bit Application” to true.
Check below link for troubleshooting the issue.
How to diagnose IIS fatal communication error problem

Asp.Net Core 3.0 API app requires restart frequently on IIS Windows Server 2016

I have hosted my Asp.Net Core API project on IIS on Windows Server 2016 and also installed hosting bundle for Asp.Net core apps on that; have to restart my application after few hours. Please help me to solve this.
What is the problem? Is there any error message? You need to be more specific on your issue.

Does Microsoft Application Insights support MVC 6 (.Net 5)

I'm trying to setup a prototype with an mvc 6 project and application insights. When selecting to monitor an mvc 6 website in IIS 7, it says it is monitoring but no server statistics are being sent to Azure. When I monitor any other sites on that server it works correctly. So my question is, does application insights support .Net 5 and MVC 6 running in IIS?
In the website I have installed Application Insights using the snippet of javascript provided by Microsoft Application Insights. This is working correctly and sending data to Azure.
The website is on a local Windows 2012 server. I have installed the Application Insights Status Monitor on the server and I have it pointed to the mvc 6 website. This part is not working. When I point the Server Tool to a site on the local server running a .Net 4.5 website it does submit the data correctly to Azure.
I did not add the AI part via nuget package because I am not submitting any custom alerts to Applications Insight. Right now I am just looking to get the server statistics. IE Memory, Processor usage, etc.
Asp.net vnext is not currently supported. But there are plans to support it in the near future.
There is ongoing work visible on it in github: https://github.com/Microsoft/ApplicationInsights-aspnetv5

Web Server to Host my MVC4 Web Application

Hi i'm trying to host an mvc4 web application on a web server and it is not working. Do i need to install something in particular so that it works? And what type of web server is the best for this type of situation?
You will need:
IIS, preferably IIS 7+
.Net installed on the server
make sure the framework is set correctly
Take a look here
if you have all this set up, let us know the error you are seeing.
1)IIS 7.5
2) MVC4 and Framework 4.5 should be installed
3) Also check that in ApplicationPools you set framawork 4.0 for your site (default is 2.0)
It would be better if you show a certain error you receive.
See the following Question... How to deploy an MVC 4 application to a Windows Web Server based dedicated hosting?
It seems incredabily relevant to what you are asking.
Also for future reference read https://stackoverflow.com/questions/how-to-ask before asking questions