Base solution for your next web application
Open Closed

Azure web app throws error "An error has has occurred!" #3920


User avatar
0
omkarchoudhari created

Hi,

After publishing app on Azure, it throws error "An error has occurred!"

  1. Application builds successfully
  2. Publish process completes successfully
  3. Application woks well locally
  4. Azure DB is updated
  5. Connection string, App URLs are well defined in all configuration (JSON) files
  6. No network calls from developer tools
  7. Logging is enabled in web.config file, no logs are getting traced in Azure log file - creates blank log file
  8. 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
  9. Azure "Diagnose & solve problems" shows - Your app is healthy, Platform is healthy status

What can be the cause of problem ?


8 Answer(s)
  • User Avatar
    0
    strix20 created

    Startup errors are usually the cause here.

    Have you tried remote debugging?

  • User Avatar
    0
    ismcagdas created
    Support Team

    @omkarchoudhari,

    If your application is not writing any logs, you can check azure's logs.

  • User Avatar
    0
    robrechtbelien created

    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.

  • User Avatar
    0
    omkarchoudhari created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    omkarchoudhari created

    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 ?

  • User Avatar
    0
    omkarchoudhari created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.