question

mahmudulhasan avatar image
0 Votes"
mahmudulhasan asked ajkuma-MSFT commented

Why my website not working properly if I use custom domain?

I have created an app service using the B1 tier and hosted a Blazor app for testing purposes.
After that, I've added a custom domain and configured an additional SignalR service, and pushed the app via Visual Studio.

Everything is fine, the app is up and running, I can navigate to the website using the domain.

But the problem is if I navigate to my website via the custom domain, the site doesn't work properly, the button doesn't work, SignalR seems slow, etc.

The following screenshots may help to understand properly -

Counter button and the hamburger button working if I navigate to the site using azure's free domain - https://saffron.azurewebsites.net/counter

97775-working.png

Counter button and the hamburger button is not working if I navigate to the site using my custom domain - https://saffron.pienteger.com/counter

97727-notworking.png


The problem happening on both desktop and mobile platforms. I took the screenshot using the mobile view to bring the hamburger button. Also, I've changed the browser, platform, cleared cache and cookies, but the result remained the same.

So what could be the reason and how can I solve this issue?



azure-webappsazure-webapps-custom-domains
working.png (9.1 KiB)
notworking.png (6.3 KiB)
· 11
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.

@mahmudulhasan, Thanks for the detailed description of the issue.

From my initial check, it looks like Always On is not turned on. Enable Always On and then check.
I have seen few issues with B1 tier on blazor/ just to isolate - Switch the plan -B1 -> B2 -> B1 or just switch to B2 plan.

I understand you’re reviewing the app with minimal compute for testing purposes. Look like you’re using a small instance, you can avoid the outbound TCP limits is easier to solve, as the limits are set by the size of your worker. You can see the limits in Sandbox Cross VM Numerical Limits - TCP Connections- - To avoid outbound TCP limits, you can either increase the size of your workers, or scale out horizontally.



0 Votes 0 ·

I turned the Always On -> On but the problem remained the same. And if I turn the WebSocket On too, the problem occurs to the https://saffron.azurewebsites.net/counter URL too.

0 Votes 0 ·

Thanks for the update and sharing additional details. Just want to check if switching to B2 tier showed any difference.
I'm investigating on this and will also reach out to you privately.

0 Votes 0 ·
Show more comments

This is my current configuration.


98312-current.png


0 Votes 0 ·
current.png (20.6 KiB)

@mahmudulhasan,

Also, On the App Service App, in the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” > “Availability and Performance” & "Best Practices" and review to fetch additional information to isolate further.

98303-image.png




Kindy let us know how it goes, we will follow-up with you further.

0 Votes 0 ·
image.png (41.3 KiB)

Can you be more detailed?

0 Votes 0 ·

Apologies! if it was not clear. The App Service diagnostics from Azure Portal, it reduces the chance of trial and error and expedites problem resolution by recommending potential solutions. The tile for “Diagnostic Tools” > “Availability and Performance” & "Best Practices" > has the detectors that I have highlighted ( and more). If you haven't tried these already, you may run those to fetch recommendations and possible causes.

Just as an example - For e.g SNAT Port Exhaustion would show any SNAT Port exhausion

98338-image.png


0 Votes 0 ·
image.png (27.9 KiB)
Show more comments

1 Answer

TvandenH avatar image
0 Votes"
TvandenH answered mahmudulhasan commented

Could there be some CORS limitations on your api and/or SignalR endpoint?
It was not visible in the console/network output though.

· 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.

I didn't touch the code of the app. It's the default template that Visual Studio generates on the project creation.
I created the app and pushed it to Azure to test.

Also yea, nothing shows up in the console.

0 Votes 0 ·