Nirav Madariya
Nirav Madariya

Reputation: 1508

ASP.Net web app running locally with IIS Server not running on Azure

I have simple ASP.Net web app in which there is Socket connection implementation. It is working in local IIS Server, but not working when deployed on Azure.

Source Code on GitHub.

Upvotes: 0

Views: 381

Answers (1)

Bruce Chen
Bruce Chen

Reputation: 18465

It is working in local IIS Server, but not working when deployed on Azure.

I previously followed this tutorial to build my web application with WebSockets. Per my understanding, you need to enable the Web sockets option under the "SETTINGS > Application settings" of your Azure web App on Azure Portal. Moreover, here is a similar tutorial about Introduction to WebSockets on Windows Azure Web Sites, you could refer to it.

UPDATE:

For using SSL for WebSockets under Azure Web Apps, you could just connect to wss://{your-appname}.azurewebsites.net (WebSockets over HTTPS). Azure Web Sites supports SSL even on free sites by using a default SSL certificate for *.azurewebsites.net. Details you could follow this tutorial.

TEST:

enter image description here

Additionally, if it does not work in your web app, you could leverage the Log stream under the MONITORING section of your app service on Azure Portal to retrieve the detailed error message to narrow this issue.

Upvotes: 1

Related Questions