Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1535

Unable to host the application

$
0
0

I recently updated my ASP.NET web API from targeting .NET Framework 4.5.2 to 4.7. The application runs perfectly fine locally, but I'm facing issues when deploying it to a Windows Server 2022 VM.

Here's what I've done so far:

  1. I published the application to a folder.
  2. Manually copied the publish folder to the VM.
  3. Connected the VM to IIS and deployed the application.

However, I am unable to run the application on the server but can run it locally from vs at the same I am able run previous version of API that hosted in another port. I have ensured that .NET Framework 4.8 is installed on the server, which I understand should support .NET 4.7 applications.

I'm not sure what could be causing the issue or how to troubleshoot it further. Any guidance or suggestions would be greatly appreciated.network call to the API

Steps I did so far

  • I've ensured that .NET Framework 4.8 is installed on the server. However, the application only works over HTTP, not HTTPS.

  • I've removed URL rewrite rules from the web.config, which seemed to help, but HTTPS still doesn't work.

  • I am using the same certificate that was used in the application when the project was targeting .NET Framework 4.5.

CertificateBindings

I have added correct port and certificate bindingPort binding and certificate assigning

And this certificate was working fine using the same certificate here is causing some issue


Viewing all articles
Browse latest Browse all 1535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>