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)
-
0
Check your AbpAuditLogstable to make sure the ID column is Identity
-
0
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.
-
0
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.
-
0
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>
-
0
<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)
-
0
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.
-
0
@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> ?
-
0
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?
-
0
@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>
-
0
Oops! All done!
-
0
Great :D