VS2019 to VS2022 Web Deploy Fails

Selden McCabe 1 Reputation point
2022-09-19T21:12:16.363+00:00

I have an asp.net website that was developed in VS2019. When I build and deploy to our web server, it works.

The active platform in the configuration manager is x86.

Our web server is Microsoft Windows Server 2012 R2 Standard 64-bit (6.3.9600)

If I load the same code into VS2022, it compiles and runs on my local machine. But if I deploy to our web server, it doesn't work. After I deploy to our web server, I open MS Edge and enter the website URL. Instead of seeing the normal start page, the browser remains blank, and the spinner on the top left keeps spinning. Forever.

Any tips on how to diagnose what the problem is?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,599 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Selden McCabe 1 Reputation point
    2022-09-20T12:23:21.887+00:00

    I think I solved my own problem, but I'm not sure why it worked.

    I noticed the project had a reference to Microsoft.Jet.OLEDB.4.0 which I think is 32 bit. There also was some old code that was no longer called using this reference. When I removed that code, and removed the reference, then I could build and deploy the project with VS2022 and it worked.

    Why would this prevent the website from running on the server? And why weren't there any error messages?


  2. Selden McCabe 1 Reputation point
    2022-09-22T12:57:26.49+00:00

    Thank you, that's a good suggestion. If you are talking about the IIS logs, I've looked at them, but don't know what I'm looking for.

    Do you have any suggestions for a tool that might help?