Base solution for your next web application
Open Closed

Error! An internal error occurred during your request! #5541


User avatar
0
naurinrr created

Hi,

I am getting an internal error when publishing my application to Azure. You can find the log file here,

[https://1drv.ms/f/s!ArBRDfNptp88hhxfthSGXC3jf6YA])

I don't understand why it is trying to insert null into the table.

Any help will be appreciated. Thanks!


11 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Check your AbpAuditLogstable to make sure the ID column is Identity

  • User Avatar
    0
    naurinrr created

    Hmm what is the recommended way to create the database in cloud? I created a db and then imported data from a local db which was created by the Migrator project.

  • User Avatar
    0
    naurinrr created

    I was able to use dotnet ef migrations script --idempotent --output "script.sql" to generate a script to run on my database. The problem now is that several of the jquery libraries are not working after publishing!!

    See errors [https://1drv.ms/u/s!ArBRDfNptp88hh51SqbXzkua_Zte])

    The link to the live site is <a class="postlink" href="https://progentestwebmvc20180824015653.azurewebsites.net">https://progentestwebmvc20180824015653. ... bsites.net</a>

    You can login to default tenancy using username admin and default password: 123qwe. I have not changed that yet.

    Thanks in advance.

  • User Avatar
    0
    maliming created
    Support Team

    Here are the documents you can refer to <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#migrator-console-application">https://aspnetzero.com/Documents/Develo ... pplication</a>

  • User Avatar
    0
    ryancyq created
    Support Team

    <cite>Naurinrr: </cite> I was able to use dotnet ef migrations script --idempotent --output "script.sql" to generate a script to run on my database. The problem now is that several of the jquery libraries are not working after publishing!!

    See errors [https://1drv.ms/u/s!ArBRDfNptp88hh51SqbXzkua_Zte])

    The link to the live site is <a class="postlink" href="https://progentestwebmvc20180824015653.azurewebsites.net">https://progentestwebmvc20180824015653. ... bsites.net</a>

    You can login to default tenancy using username admin and default password: 123qwe. I have not changed that yet.

    Thanks in advance.

    You can check if your account-layout-libs.min.js is available, at the specified location (_/view-resources/Areas/Petra/Views/Bundles/app-layout-libs.min.js)

  • User Avatar
    0
    naurinrr created

    Thanks for your reply. I checked the output from npm run create-bundles and it choked while minifying the app-layout-libs,

    Processing wwwroot/view-resources/Areas/Petra/Views/_Bundles/app-layout-libs.js
      Bundled
    Object reference not set to an instance of an object.
    

    However the app-layout-libs.js is available under the path on azure server even if not minified. Its the same locally so I don't understand why it works locally but does not work after publishing.

  • User Avatar
    0
    ryancyq created
    Support Team

    @naurinrr , it could be similar to the issue report at <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1510">https://github.com/aspnetzero/aspnet-ze ... ssues/1510</a>

    Can you try the approach mentioned in <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1508#issuecomment-409541165">https://github.com/aspnetzero/aspnet-ze ... -409541165</a> ?

  • User Avatar
    0
    naurinrr created

    Thanks so much! that was exactly the problem. I am now having issues with SignalR.

    [https://1drv.ms/u/s!ArBRDfNptp88hh8o_U3tf_rY_XIs])

    I found a few hacks but not sure which one to use. Any idea how to get around this?

  • User Avatar
    0
    ryancyq created
    Support Team

    @naurinrr seems that your server doesn't allow websocket connection.

    I assumed that you are using azure service. Can you try the approach mentioned here ? <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1426#issuecomment-405954104">https://github.com/aspnetzero/aspnet-ze ... -405954104</a>

  • User Avatar
    0
    naurinrr created

    Oops! All done!

  • User Avatar
    0
    ryancyq created
    Support Team

    Great :D