lundi 28 juin 2021

Can I Deploy a Web API and Website Project to same domain?

I have an older ASP.NET Website project I've been maintaining need to add a simple API to it. I got this working in Visual Studio 2019 and am able to browse to the website as well as hit the API. However when I try to deploy this to the final production domain on Godaddy I get the error "The directory '/App_Code/' is not allowed because the application is precompiled.".

I know the Web API project should not have an "App_Code" as that project compiles into on .DLL file.

Is this a publishing setting issue?




Aucun commentaire:

Enregistrer un commentaire