Hi @CrispinF , I created a new project using the Pages and Blog with Home Controller as default route. I also selected MS SqlServer for the database. The site comes up in debug on my local machine, but when I publish it I get the following error: HTTP Error 502.5 - Process Failure. I believe it has to do with the database since there are no tables in the database I created on the host. I did put in the connection string information during the publish task and there is now a appsettings.production.json file in my production environment with the correct connection string. Here is the connection string (with the password redacted): "Server=.\MSSQLSERVER2017;Database=intellectable_db;UID=dbuser_ia;PWD=*;Trusted_Connection=True;MultipleActiveResultSets=true"
I believe the issue is with the publish task or some sort of startup process that I'm missing. Any guidance would be helpful.
To anyone in Asia who couldn't access cloudscribe.com recently - our apologies, and it's open again now. We tightened things up a little too much after some hacking attempts on our servers, and didn't quite get it right! Do shout here if you cannot reach the site.
Just noticed your message, would you please elaborate what type of attack it was ? is there any security vulnerability in cloudscribe that requires an fix ?
There's some weird markup generated by the component that I can't find the source for on github. The component renders
<ul class="dropdown-menu sm-nowrap" aria-labelledby="dropdown-Manage" id="sm-16171907971046475-1" role="group" aria-hidden="true" aria-expanded="false" style="width: auto; display: none; top: auto; left: 0px; margin-left: -69.9167px; margin-top: 0px; min-width: 10em; max-width: 20em;"> <li class=""><a class="dropdown-item" href="/manage/userinfo">User Info</a></li> <li class=""><a class="dropdown-item" href="/manage/changepassword">Change Password</a></li> <li class=""><a class="dropdown-item" href="/manage/twofactorauthentication">Two Factor Authentication</a></li> <li class=""><a class="dropdown-item" href="/manage/personaldata">Personal Data</a></li> </ul>
but the view for Bs4ChildDropdown should render
<ul class="childtree list-unstyled">
my knowledge of razor components is a bit spotty though so I figure I'm missing something obvious.
There is another version of Bs4ChildDropdown sitting in here:
Just guessing here - that looks very much more like the thing that is rendering your markup (since partial views can override one another, this one is most likely overriding the one in the Navigation component).
I'm slightly confused that it isn't identical to your quoted markup... something else - maybe Bootstrap - may be tweaking the final rendered result somehow?
But note that this version of the Bs4ChildDropdown does not make use of this:
@inject IStringLocalizer<cloudscribe.Web.Navigation.MenuResources> sr
which might account for your lack of localization, when you compare it to how @sr is used in the version of Bs4ChildDropdown that you were looking at.
You may be able to implement your own local override of this partial view..?