server 2008 .net framework 4 503 error - .net-4.0

I just installed .net 4 on my server 2008 and I keep getting
Service Unavailable
HTTP Error 503. The service is unavailable.
messages from any application I try to run as .net 4. The application pool keeps stopping. Event view shows: "The worker process failed to pre-load .Net Runtime version v4.0.30319."

I was getting this same thing on a windows core 2008 R2 box.
Running 'oclist' showed that there were some missing windows features.
To install them, i needed to run the following commands:
ocsetup NetFx2-ServerCore-WOW64
ocsetup NetFx3-ServerCore-WOW64

Problem has been solved. I uninstalled .net 4 and reinstalled using the "web platform installer". restarted and now it works.

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

How to run ASP.Net MVC 4 application on IIS 10

I upgraded my machine to windows 10 release 2.0 from Windows 7 and installed Visual Studio 2017 which I earlier used was VS 2012. My application is not working after setting up IIS 10.
Getting this below error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Is there something extra that needs to be configured for IIS 10?
From the asker in an edit to his question:
Running Visual Studio in admin mode solved the problem.

Cannot Debug WCF Rest Service

Brand new laptop. It is running Windows seven media center. IIS is installed. Anyway, I just downloaded the WCFRestService with key template and when I try to debug I get:
The operation could not be completed. Unspecified Error.
When I try to browse I get:
Unable to launch the configured Visual Studio Development Web Server.
Any ideas?
Try running Visual Studio as an admin?

Trouble with MS Remote Web Deploy II6 6

I am getting the following error when I run web deploy:
>C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3588): Web deployment task failed.
((3/25/2011 4:41:36 PM) An error occurred when the request was processed on the remote computer.)
(3/25/2011 4:41:36 PM) An error occurred when the request was processed on the remote computer. The entry type 'Unknown' was not expected at this time. The serialization stream may be corrupted.
I have successfully done this on other IIS6 machines with no issues so I don't understand what is going on. The Remote Deployment Service is running and just to see if it mattered I started the service under an administrative group. That did not help.
Any help would be great.
I found that the 2008 server with IIS 7 did not have all of the components installed. Even though Web Deployment 2.0 seemed to have been installed by the Web Platform Installer, there were components that were incomplete due to communication issues with the MS servers. In order to resolve this, I had to download the installation files on a separate machine, copy them to the server and then reinstall everything. Very vague error for such an odd issue.