question

FelipeMagnago-9791 avatar image
0 Votes"
FelipeMagnago-9791 asked SnehaAgrawal-MSFT commented

Azure web app - System cannot find the file specified

Hello guys,

I created a simple web app in ASP.NET which basically when a button is clicked
it sends a request to a web service using an API, I added the .dll as a reference,
and it is perfectly working on my local machine, I get the correct response, but when I publish it to azure
the response that I get is: "System cannot find the file specified".
It is like something is not properly deployed to azure, but I checked the bin folder and all the .dll are there
Does anyone have any ideas?

Thanks

azure-webapps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if you have chance to see previous response. If this answers your query, do click “Accept Answer” and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

Thanks for asking question! Could you please try to follow the steps found at: https://github.com/projectkudu/kudu/wiki/Make-sure-site-correctly-deploys-locally to verify that the site can successfully and correctly deploy locally. Also make sure you are using the latest Microsoft Azure SDK. Download links can be found at https://azure.microsoft.com/en-us/tools/ .

Check that you can connect to the KUDU/Scm portal for your site. The Kudu URL for your site would be in the form of https://.scm.azurewebsites.net/

Also, look for proxy or firewalls are not blocking. If possible, try deploying from another network outside of your current network and verify that the publishing credentials are correct.

For more information on troubleshooting web deploy issues for azure app services, refer to the following blog: https://blogs.msdn.microsoft.com/waws/2018/05/23/investigating-issues-using-web-deploy-for-azure-app-service/

You can also remote debug the WebApp with Visual Studio and get the more detail info about exception. You can add a sample test aspx page to test it and follow these steps might be helpful.

Let us know if you have further query or issue remains.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.