TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohammed jaseefar
NA
217
20.2k
HTTP Authentication failed;no valid issue signalR using mvc5
Apr 1 2018 4:43 AM
The following error is coming.. and updateMessages is not working...
Iam using forms authentication
WebSocket connection to 'ws://localhost:61755/signalr/connect?transport=webSockets&clientProtocol=1.5&connectionToken=j9bM%2FHHu7MwONQYggsJ93b%2BIIB9nei7%2FyNTbf2zTSjyrBIgsVcTvmtBxzYv%2FNHf%2Bbukn81m3tlQcLYIj88QbauJKiP6MtxewwcF4mWdV8jgBu1zQ09M3NB4eIrn%2BSqJe&connectionData=%5B%7B%22name%22%3A%22messageshub%22%7D%5D&tid=3' failed: HTTP Authentication failed; no valid credentials available
Script:
$(
function
() {
// Declare a proxy to reference the hub.
var
notifications = $.connection.messagesHub;
notifications.client.updateMessages =
function
() {
getAllMessages();
};
// Start the connection.
$.connection.hub.start({ transport: [
'webSockets'
,
'longPolling'
] }).done(
function
() {
getAllMessages();
}).fail(
function
(e) {
alert(e);
});
});
function
getAllMessages() {
$.ajax({
url:
'/Interview/GetInterviewQuestion'
,
contentType:
'application/json'
,
type:
'GET'
,
dataType:
'JSON'
,
cache:
false
}).success(
function
(result) {
$(
"#txtcategory"
).val(result.Category);
$(
"#txtchapter"
).val(result.Chapter);
$(
"#txtpart"
).val(result.Part);
$(
"#txtqstn"
).val(result.QuestionText);
}).error(
function
() {
});
}
Reply
Answers (
0
)
Dictionary(key,value) to get number occurrences of key
Storing User Information Between Forms