Upgrade .NET Framework 4.5 to 4.8 - Web Application Returning 404 Error - .net-4.5

I have attempting to upgrade a web application that uses .NET Framework 4.5 to 4.8.
The application runs on a server that both compiles and runs the application, so I installed the .NET Framework 4.8 Developer Pack. I restarted the server and it has booted up successfully.
TeamCity successfully built and compiled the application and Octopus successfully deployed as per usual. However, when I now attempt to access the website, I get a 404 at the login page.
Looking at the folder structure, the file is definitely there. The code builds and runs successfully on my local machine, allowing me to login and perform any function on the system.
Is there something that I have missed running or doing on the server to get this to work?
Edit: Request for IIS Configuration
The configuration of this hasn't changed since I've upgrade the .NET Framework but here is what I have. If this isn't the configuration that is being asked about, please let me know.
Bindings
Everything else has been left as the default values.

Related

How do you specify the patch version a .NET Core 3.1 app should target (500.31 ANCM error in localhost AND IIS)?

I have a .NET Core 3.1 application that has a target framework of 'netcoreapp3.1'. When I try to debug this application or run it from IIS I get a 'HTTP Error 500.31 - Failed to load ASP.NET Core runtime' message. The body then goes on to say that I must install .NET Core 3.1.27, which is the latest patch version. I have done this on IIS and the site is working but why is this the case that the app must run on the latest patch version? I have never gotten this error before and I certainly haven't kept up with every single patch version. I have not downloaded the latest patch on my local machine and still cannot debug the app. Is there a way to tell it to run on the most recent patch available? For example, I do have patch 3.1.25, so why can't it run on that?
Thanks.

could not reach CMS from JBOSS

I have ran into something interesting. We are upgrading our SAP BO from 4.2 SP2 to 4.2 SP5. So we have a java application which runs on JBoss connects to the BO reports.
So as part of upgrade I have updated all my SAP jars and tried connecting to the new CMS. To test out initially i used the below code and ran it using main method I was able to connect to the CMS and get the Session.
ITrustedPrincipal trustedPrincipal = sessionMgr.createTrustedPrincipal("user1", "myCMS:6400");
session = sessionMgr.logon(trustedPrincipal);
But when I run the same code on JBoss, I get
Could not reach CMS 'myCMS:6400'. Specify the correct host and port
and check for network issues
Can some one please suggest what I am doing wrong?

HTTP Error 500.19 - Internal Server Error web config .net core web api

Detailed Error Information:
Module:
IIS Web Core
Notification:
BeginRequest
Handler:
Not yet determined
Error Code:
0x8007000d
Config Error:
Config File:
\?\C:\inetpub\wwwroot\webapi\web.config
can you help me?
I had similar challenge with an aspnet.core web application. I took these steps
1. I installed the Windows Server Hosting (.exe) from https://www.microsoft.com/net/download/windows
2. I granted full permission to the application directory
Hope this solved your problem
I had this same error, but different fix in case it helps someone. I thought sure that I had installed the .NET Core Runtime on the server. Turns out it wasn't actually there. Another sign that it's not installed is that in IIS Administrator, at the machine node, the Modules panel does not have the AspNetCoreModule registered (and indeed there was no aspnetcore.dll at \System32\inetsrv). Once I installed the .NET Core Runtime and restarted IIS, the application worked.
Another tip: installing the .NET Core SDK does not install the runtime components, including for IIS hosting. You must install specifically the Runtime to support apps on IIS.

Deploying ASP.Net 4.0 website on IIS 6.0

I recently upgraded an ASP.Net 2.0 website to ASP.Net 4.0 using VS2010 upgrade option.
Website works fine in cassini and even on our Windows 2003 server with IIS 6.0
But it will not come up on the client's environment.
Client too has a Windows Server 2003 with IIS 6.0 and .NEt Framework 4.0 installed.
I have registered ASP.NEt 4.0 with IIS 6.0 using
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis –ir
also configured the website with .NEt framework 4.0 like below
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>ASPNET_REGIIS -norestart -s "W3SVC
/1/ROOT/Website"
I have assigned the website a separate apppool dedicated to it.
I have tried restarting IIS and the machine but to no avail.
I have verified that under "Website Extensions" ASP.NEt 4.0 is allowed and also checked the site's configuration to confirm that .aspx among other is mapped to .NEt 4.0
I have given the internet user read access to the website directory.
I have been getting
"Server Application not available"
I also getting the following in the event log
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/Website
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Access is denied.
Another one after this event is
Failed to execute request because the App-Domain could not be created.
Error: 0x80070005 Access is denied.
Website uses Active Reports 6.0 and elmah. That's it.
I would appreciate any tips/pointers to figure this issue out.
Thanks
I could not get the above scenario to work.
So I downgraded the website to .Net 3.5 which uses Framework 2.0 and this made deployment painless.
Not sure what it was about asp.net 4.0 and IIS 6.0 but I could not get to work in the client't environment even though I had it working in our test environment.
If you end up getting in a similar situation again (or for anyone else landing on this from a search), try granting the IIS User access to the 'Temporary ASP.Net Files' folder (under a relavant folder in C:\Windows\Microsoft.Net).
I've run into this a couple of times and that generally seems to work at least in my development environment. You'll likely want to do a bit more research before applying this in production.

ASP.NET Ajax client framework failed to load

We developed an web application using visual studio 2008. In my development PC, the application is working fine. In production server I am getting the following exception "ASP.NET AJAX CLIENT FRAMEWORK FAILED TO LOAD". What should I do to make it work?
Thanks,
P.Gopalakrishnan.
I'd start with making sure all of the appropriate service packs are applied and that the 3.5 framework is actually installed on the box.
Also, make sure any assembly you reference that isn't part of your deployment is gac'd on the machine. Check version numbers.
All else being equal, I'd guess the server is just way out of date on it's updates.