Base solution for your next web application

Activities of "naurinrr"

Thanks so much! I feel like an idiot of course.

Not related to Tenant Modal but still front end issue so asking here, the metronic styles are not loading for selecting an edition. It gives failed to load resource error. I have checked that the styles are present under the path it is looking so I am not sure what is happening.

<link rel="stylesheet" href="//metronic/dist/html/default/assets/demo/default/base/style.bundle.css?v=I6VCJPzgx8kEu1QQkEPCpevlxGZKqy9bnzUxzUu6apg&amp;v=I6VCJPzgx8kEu1QQkEPCpevlxGZKqy9bnzUxzUu6apg" />

You can view the image here,

[https://1drv.ms/u/s!AipZ--KcXtD_smTx0T4v7b6kMv3-])

You can see the screehshot here [https://1drv.ms/u/s!AipZ--KcXtD_smU7xwpjUg3l3qV0])

It is getting response "failed" because it is going to a web address. Why is not looking under localhost? The metronic styles are loading correctly for other pages like dashboard and such so what is different about this one?

<a class="postlink" href="http://metronic/dist/html/default/assets/demo/default/base/style.bundle.css?v=I6VCJPzgx8kEu1QQkEPCpevlxGZKqy9bnzUxzUu6apg&v=I6VCJPzgx8kEu1QQkEPCpevlxGZKqy9bnzUxzUu6apg">http://metronic/dist/html/default/asset ... zUxzUu6apg</a>

Thanks for the hint! I am just posting the solution here in case anyone needs it. It is the style sheet reference in _Layout.cshtml under TenantRegistration that is the problem.

<link rel="stylesheet" href="@ApplicationPath/metronic/dist/html/@theme/assets/demo/@theme/base/style.bundle@(CultureHelper.IsRtl ? ".rtl":"").css" asp-append-version="true" />

I fixed it by trimming the slash at the end of

@ApplicationPath

The final code looks like below,

<link rel="stylesheet" href="@ApplicationPath.TrimEnd('/')/metronic/dist/html/@theme/assets/demo/@theme/base/style.bundle@(CultureHelper.IsRtl ? ".rtl":"").css" asp-append-version="true" />

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.

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.

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.

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?

Oops! All done!

Showing 1 to 10 of 17 entries