Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error when clicking link (IE only) #446

H-man opened this Issue Jun 13, 2012 · 1 comment


None yet
2 participants

H-man commented Jun 13, 2012

When trying to navigate next page with IE, signalr gives javascript error:

SCRIPT5007: Unable to set value of the property 'src': object is null or undefined
jquery.signalR-0.5.1.js, line 926 character 21

How to replicate:

  • Create testHub with dummy method
  • Create simple html page and start connection
  • Click 'test' link
        <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <script src="/Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.signalR-0.5.1.js" type="text/javascript"></script>
    <script src="/signalr/hubs" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var srv;
            srv = $.connection.testHub;
            $.connection.hub.start(function () {
    <div id='debug'></div>
    <a href="test.html">test</a>

when clicking link, browser shows error in console and doesn't go to test.html page. Then clicking second time it works as expected.

I'm using jquery 1.7.2 and signalR 0.5.1 (from nuget)

H-man commented Jun 13, 2012

I noticed that changing transport to longpolling fixes the issue.

@ghost ghost assigned davidfowl Jun 16, 2012

@davidfowl davidfowl closed this in e762cf9 Jun 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment