ASP.NET Compilation Error on Windows Server 2019 with .NET 4.8 and IIS10

DmitriyKobrinskiy-0284 0 Reputation points
2023-03-31T12:54:58.2566667+00:00

Hello folks,

I have strange behavior when migrating from ws2016 to ws2019. Both servers are supposed to host a WCF service, but the service is not running on the 2019.

Error output is also not particularly informative. We already did a clean install (2019) but it didn't help.

error

Thanks!

Windows development Internet Information Services
Windows for business Windows Server User experience Other
Developer technologies ASP.NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-04-03T12:56:55.39+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to ASP.NET exception error cs1504.

    The filesystem has already removed the file "Global.asax.cs." I believe a yellow warning icon is displayed next to the file in the Visual Studio solution. Windows Explorer should be used to verify that the file is present in those places.

    1. Please Clean every project individually (Right click> Clean).
    2. PleaseR ebuild every project individually (Right click> Rebuild).
    3. Then Rebuild the startup project.

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.