SignalR -- Error in getting to /signalR/hubs -
i trying run sample signalr code. when run inbuild webserver works fine. when host code in virtualdirectory getting following error
line 35: object null
it comes down point looks couldnt locate autogenerated signalr/hubs file ....
i have following code
<script src="scripts/jquery-1.6.4.min.js" ></script> <script src="scripts/jquery.signalr-1.0.1.min.js"></script> <script src="signalr/hubs" type="text/javascript"></script>
i have used fiddler shows me looking file in following direction
get http://myserver/signalrchat/signalr/hubs
404 not found (text/html) http://myserver/signalrchat/signalr/hubs
404 not found (text/html)
i have change following line of none of them seems work
<script type="text/javascript" src="/signalr/hubs">
<script type="text/javascript" src="~/signalr/hubs">
or
<script type="text/javascript" src="<%= resolveurl(" hubs="" signalr="">// // ]]></script>
nothing working ... suggest me on this
the virtual directory doesn't seem mapped correctly physical directory. /signalr/hubs url isn't pointing correct location in physical directory. might need modify path in routes.maphubs() ensure maps correct location in physical directory.
Comments
Post a Comment