Found the problem, it's working now, thanks. This can be closed
Hi @ismcagdas,
I've setup a custom SignalR hub as below:
I've registered the hub in startup:
app.UseSignalR(routes =>
{
routes.MapHub<AbpCommonHub>("/signalr");
routes.MapHub<AutoRenewalHub>("/signalr-autorenewal");
});
I've created a javascript based on the javascript from chathub this is the connect method:
// Connect to the server
abp.signalr.connect = function () {
// Start the connection.
startConnection(abp.appPath + 'signalr-autorenewal', configureConnection)
.then(function (connection) {
abp.log.debug('Connected to SignalR AutoRenewal server!');
abp.event.trigger('app.autorenewal.connected');
// Call the Register method on the hub.
connection.invoke('register').then(function () {
abp.log.debug('Registered to the SignalR AutoRenewal server!');
});
})
.catch(function (error) {
abp.log.debug(error.message);
});
};
so both connect to /signalr-autorenewal
But when I run the application I get the error that the negotiation failed:
So somewhere it's missing something. Could you help me out?
Hi,
I was looking for a way to send a realtime message from the .net core backend to the client so I can change the UI when the message is received. I don't want the message to go into the notifications. The message is basically a progress notification.
I looked into the Realtime Notification but couldn't get that to work.
A small example of how to achive this would be appreciated.
Thanks Patrick
just did that and that worked for the localization of the text messages.
Now the last problem is that the jquery validation doesn't take the decimal separator and group separator for numbers into account.
The point is seen as the decimal separator because the message is 'fill in a value larger then 0' which is the minimum value.
Okay, I'm one step closer now. The messages for jquery-validation were not in the lib directory, so I added an item to the bundles.config to copy them over and that works, the messages are now in dutch.
But the decimal separator and thousand separator don't work yet.
The point is seen as the decimal separator because the message is 'fill in a value larger then 0' which is the minimum value.
Hi,
I'm using v6.9.0 of aspnet zero on .net core.
I was setting up a form for the input of a text field with a min and max length. When the form is validated on submission, the jquery validation messages are not localized. When I add a number input onto the form, jquery validation also doesn't take the current culture into account. My app is in dutch which has a , for decimal separator and a . for thousand separator. But jquery validation doesn't take the culture into account.
Aspnet zero is fully localized right? So what am I missing?
Ahh okay I see, sorry for that.
Hi,
When there is only one action in the action menu, in my case an open button. The action button is not shown, it only shows when there are two items in the action menu.
cause: datatables.record-actions.js
var _createRowAction = function (record, field, tableInstance) {
if (field.items && field.items.length > 1) {
return _createButtonDropdown(record, field, tableInstance);
} else if (field.element) {
var $singleActionButton = _createSingleButton(record, field);
if ($singleActionButton != "") {
return $singleActionButton.clone(true);
}
}
return "";
}
change
if (field.items && field.items.length > 1) {
to:
if (field.items && field.items.length > 0) {
Hi,
I've found an error in the application which can be reproduced latest version. Underneath are the steps to reproduce:
It's probably because the user is not authenticated anymore and needs to login again. Maybe it's better to redirect the user to the login page after changing the password.