Hi,
After publishing app on Azure, it throws error "An error has occurred!"
- Application builds successfully
- Publish process completes successfully
- Application woks well locally
- Azure DB is updated
- Connection string, App URLs are well defined in all configuration (JSON) files
- No network calls from developer tools
- Logging is enabled in web.config file, no logs are getting traced in Azure log file - creates blank log file
- Tried publishing app by creating publish package in local folder, and then uploading contents through FTP & also tried direct publish from Visual Studio using Azure publishing profile
- Azure "Diagnose & solve problems" shows - Your app is healthy, Platform is healthy status
What can be the cause of problem ?
8 Answer(s)
-
0
Startup errors are usually the cause here.
Have you tried remote debugging?
-
0
@omkarchoudhari,
If your application is not writing any logs, you can check azure's logs.
-
0
I Had this on occasions when the DB wasn't on the latest migration. In the app_data folder the system would write the logs and that's where I found the issue. I used Visualstudio's Schema compare to make sure that de DB has the correct schema.
-
0
We added many alerts in the appprebootstrap.cs class . But when the client is published on Azure none of the alerts show up , so obviously the client is not getting called. Server swagger is working ok. We tried remote debugging by attaching AzureDB to localhost and the client projects works just fine.
Urgent help required please since our application is azure based.
-
0
Hi @omkarchoudhari,
Can you share your application's azure Urls with <a href="mailto:[email protected]">[email protected]</a> ? Then, we can continue on email and update here when we find the problem.
-
0
Sorry for replying late. We are still stuck at this error and desperately seeking expert help. Please Visit this URL on Azure :
<a class="postlink" href="https://intimeqatest.azurewebsites.net/">https://intimeqatest.azurewebsites.net/</a>
Username : Admin Password : Welcome1
Please let us know what the problem might be ?
-
0
If need be , can we send over the build of our application and perhaps you can try deploying it to Azure ? Please let us know.
-
0
Hi @omkarchoudhari,
I think your problem is related to host application not with angular application. Becasue I cannot view swagger UI as well <a class="postlink" href="https://intimeqatest.azurewebsites.net/swagger/">https://intimeqatest.azurewebsites.net/swagger/</a>.
So there has to be some logs under App_Data folder of your published website, can you chechk that again ? The error might be related to database connection.