Gettting 0x800a139e - JavaScript runtime error: SecurityError on creating websocket object in .js page

Hi Team,
I am creating a websocket object in the existing webapplication I have. When creating the object with url :    var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya'; getting error  . 0x800a139e - JavaScript runtime error: SecurityError.
var ws;
var message ;
var messageVal;
function $(id) {
    return document.getElementById(id);
function wireEvents() {
    $('sendChat').addEventListener('click', function () {
        message = $('message');
        ws.send(message.innerText);
        messageVal=message.innerText;
        message.innerText = '';
    $('btnCancelChat').addEventListener('click', function () {
        ws.close();
function Chat () {
    wireEvents();
    var conversation = $('conversation');
    var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya';
    //var url = 'ws://https://127.0.0.1:444/WebSocketsServer.ashx?name=Satya';
    ws = new WebSocket(url);
    ws.onerror = function (e) {
        conversation.appendChild(createSpan('Problem with connection: ' + e.message));
    ws.onopen = function () {
        //conversation.innerHTML = 'Client connected <br/>';
    ws.onmessage = function (e) {
        conversation.appendChild(createSpan(e.data.toString()));
    ws.onclose = function () {
        conversation.innerHTML = 'Closed connection!';
The same works fine if i create a new application i access as a HTML page on page load.
Can any one help me on this?
Thanks,
Satya Chenna

http://forums.asp.net/
The JavaScript section is at the above forum.

Similar Messages

  • Ionic Side Menu Template - Javascript JavaScript runtime error: [$injector:nomod] Module 'ngLocale' is not available!

    I am using VS 2013 ,CTP 3.1
    When I tried to run the Ionic side menu template on Emulator 8.1, the javascript console shows below exception  -
    Exception was thrown at line 9576, column 11 in ms-appx://io.cordova.myapp8724a31325644ec29a8d2d88682b7987/www/lib/ionic/js/ionic.bundle.js
    0x800a139e - JavaScript runtime error: [$injector:nomod] Module 'ngLocale' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
    http://errors.angularjs.org/1.3.6/$injector/nomod?p0=ngLocale
    There was no code changes to any of the files.
    Please advise.

    Yes. I am using the same template.
    I am not able to attach the screenshot here.
    This is the error -
    'WWAHOST.EXE' (Script): Loaded 'Script Code (MSAppHost/2.0)'. 
    Exception was thrown at line 9576, column 11 in ms-appx://io.cordova.myapp8724a31325644ec29a8d2d88682b7987/www/lib/ionic/js/ionic.bundle.js
    0x800a139e - JavaScript runtime error: [$injector:nomod] Module 'ngLocale' is not available! You either misspelled the module name or forgot
    to load it. If registering a module ensure that you specify the dependencies as the second argument.
    http://errors.angularjs.org/1.3.6/$injector/nomod?p0=ngLocale

  • Jquery in background task JavaScript runtime error: 'window' is undefined

    How do we access the window variable in backgroundtasks ?
    i need to use jquery and i get  JavaScript runtime error: 'window' is undefined

    It looks like jQuery is not written to be used from a web worker--or else you need a variant that is. This is because the global context in a background task written in JavaScript is
    WorkerGlobalScope (see
    http://www.w3.org/TR/workers/#workerglobalscope) not window, so window
    isn't defined.
    You might be able to work around a situation like this, depending on what is needed from
    window. (I'm assuming jQuery is trying to initialize its UI libraries, in which case you probably won't be able to do that from a worker/background task. They can't do UI directly.)
    If you need something from window, specifically, your running app, when it registers the background task, could also write the necessary values into the
    Windows.Storage.ApplicationData.localSettings container as background tasks can access that at any time.
    It could be possible, then, to write the necessary values from window
    into local settings, then create a window object and populate it with those values before loading jQuery. It'd be a hack, but might get you where you need to be.
    That said, because there are limitations on what you can do from a background task, and how long you can run, you might ask whether jQuery is really buying you anything in that context. I can't say, of course, but it's a reasonable question to ask before
    trying this kind of workaround.
    Kraig
    Author,
    Programming Windows 8 Apps with HTML, CSS, and JavaScript,
    a free ebook from Microsoft Press

  • JavaScript Runtime Errors in init.debug.js

    I have a custom branding solution for a SharePoint 2013 site collection in Visual Studio.  When I navigate the site collection or debug the solution, I seemingly randomly get Unhandled Exceptions in the /_layouts/15/init.debug.js.  It's rather
    0x800a03ee-JavaScript runtime error:  Expected ')' or 0x80070005 JavaScript runtime error:  Access is denied.  The first error occurs just navigating the site collection.  The second error occurs when I hover over the name with presence
    at the bottom while editing an item.  I haven't edited this script at all, so what can cause this JavaScript that is in the hive to throw exceptions, and what is a good approach to debug it in order to get to the root of the problem?

    Thank you for your response. I'm in a SharePoint 2013 development environment using IE10.  When I added the site collection as a trusted site in the local intranet zone in IE 10, I no longer get the JavaScript runtime related to the name of presence
    and Access.  When I deploy the solution, I do not get any errors.  But if I debug in Visual Studio, the solution, which is set of features that installs a master page with custom navigation, I get this error when I navigate the site collection: 
    Unhandled exception at line 6784, column 13 in layouts/15/init.debug.js?rev=z/JdnR/rlmz5Wvyfz5qrBg==
    0x800a03ee - JavaScript runtime error: Expected ')'
    The error occurs in NotifyScriptLoadedAndExecuteWaitingJobs in init.debug.js, and the call stack goes back to DeltaManager$_ScriptLoader in start.debug.js and eventually to the browserHandler, ScriptResource.axd.
    init.debug.js, correct me if I'm wrong please, is a JavaScript that SharePoint adds during debugging.  If I go in the hive and add that ')' where it breaks, then everything breaks.  Why is this error thrown, and what is the rev parameter at the
    end of the query string?
    The custom master page in the solution being installed has a line:
    <
    asp:ScriptManagerid="ScriptManager"runat="server"EnablePageMethods="false"EnablePartialRendering="true"EnableScriptGlobalization="false"EnableScriptLocalization="true"/>
    I added ScriptMode="Debug", and the errors occur during debugging.  I changed it to ScriptMode="Release", and still got the same errors.
    I'm not sure if and where in the code things are breaking, but I'm having trouble understanding why SharePoint, Visual Studio, and Internet Explorer behave in this manner.

  • JavaScript runtime error: 'WebForm_DoPostBackWithOptions' is undefined

    Hi, I am using VS2010 and Windows 7. ASP 4.  I am testing an application that has been running for 7 years.  I usually add modifications that I test every month. Now when I enter test mode in VS2010 and display the first screen
    and then hit the first button I receive "JavaScript runtime error: 'WebForm_DoPostBackWithOptions' is undefined". This is a first. I have been racking my brain to remember what I have installed or upgraded in the last month. I believe I may have
    updated  IE to 11 but I am not sure. Can anyone lead me to the correct direction? Thanks, Jim 

    Hi,
    Welcome to MSDN forum. But I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    It seems that you got the issue when you click the button on the web application manually, if yes, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support like this thread with similar issues:
    http://forums.asp.net/t/1949713.aspx?Getting+Error+on+IE11+.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JavaScript runtime error: Object doesn't support property or method 'Load'

    I'm pretty new to SharePoint 2013 apps and CSOM. I have written a simple SharePoint-hosted App in Visual Studio 2013 which attempts to display the current user's user profile picture using CSOM and JavaScript. Here is the code in my App.js file:
    $(document).ready(function () {
        var context = SP.ClientContext.get_current();
        var peopleManager = new SP.UserProfiles.PeopleManager(context);
        var userProperties = peopleManager.getMyProperties();
        context.Load(userProperties);
        context.executeQueryAsync(function (){
            if (properties) {
                var pic = userProperties.get_pictureUrl();
                $('#userProfileImage').attr("src", pic);
    I am getting error "JavaScript runtime error: Object doesn't support property or method 'Load'" on line "context.Load(userProperties);"
    I have SP.UserProfiles.js referenced, which is why this command executes successfully: var peopleManager = new SP.UserProfiles.PeopleManager(context); Is it my context object or userProperties object that is causing this error, and why? Thanks
    in advance for your help.
    Frank Foreman

    Hi,
      This method is case Sensitive, try this context.load(userProperties);

  • WebHelp 5.10.001 JavaScript runtime error

    Using WebHelp 5.10.001 (Adobe RoboHelp 11, WebHelp 5.50) and am receiving the following error:
    JavaScript runtime error: Object doesn't support property or method 'RegisterListener'
    The above occurs on js file: whproxy.js
    function RegisterListener(framename, nMessageId) {
        var wSP = getStubPage();
        if (wSP && wSP != this) {
            //return wSP.RegisterListener(framename, nMessageId);
        else {
            return false;
    So I commented it out to avoid the error being thrown. What is the fix for this?

    Could you please check that Robohelp 11 is updated to the latest update and also try to clear the cache and temp files from the machine and test the output.
    Also could you please also check to login with any other user account in your machine which has the complete admin rights on it.
    Is it possible for you to share the generated output with us or the project.
    Regards,
    Rajeev.

  • Javascript Runtime Errors

    I keep getting Javascript Runtime Errors when I visit certain web pages and it's stopping me from viewing some pages of a website. What can I do about these errors so I can browse websites without any trouble?
    Here is a screenshot of the error. Usually I get a different error, like a box actually pops up and says there is a java script error etc..., but I can also view the error another way.
    http://img.photobucket.com/albums/v630/Izzy_K/error.jpg
    Message was edited by:
    nuwogu
    Message was edited by:
    nuwogu

    this is not a Java problem but rather a javascript one !!!
    this error means that the browser your are using doesn't support a javascript object or a method.
    try firefox, IE (5x, 6x and 7x if possible).
    As I previously said, you can't handle this problem. contact the webmaster or web developer to report the javascript problem and to know the recommended browser.

  • Runtime Error ( EXPORT_NO_SHARED_MEMORY ) while creating order in CRM

    Hi All,
    i am getting runtime error while creating order in CRMD_ORDER. details of error is provided below
    Runtime Errors         EXPORT_NO_SHARED_MEMORY
    Exception              CX_SY_EXPORT_NO_SHARED_MEMORY
    Date and Time          29.01.2009 02:07:58
    Short text
         Der EXPORT-Datencluster ist zu groß für das SHARED MEMORY.
    What happened?
         The current program had to be terminated because
         a capacity limit has been reached.
    What can you do?
         Please make a note of the actions and input which caused the error.
         To resolve the problem, contact your
         SAP system administrator.
         Select the "Print" function to obtain a hardcopy of the
         current termination message.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_EXPORT_NO_SHARED_MEMORY', was
          not caught in
         procedure "CRM_EVENT_PUBLISH_OW" "(FUNCTION)", nor was it propagated by a
          RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
    The reason for the exception is:
    This is probably due to a very large dataset, for which there are
    insufficient resources in your installation.
    Das SHARED MEMORY kann Objekte nur bis zu einer bestimmten Maximalgröße
    speichern (1) und hat selbst eine beschränkte Größe (2).
    In diesem Fall wurde die Größe 2 überschritten.
    to correct the error
    Mit den Profilparametern rsdb/esm/buffersize_kb und
    rsdb/esm/large_object_size kann man diese Größen verändern.
    Informationen über diese Parameter erhalten Sie mit der
    Transaktion RZ11.
    Beachten Sie jedoch, dass aus Performancegründen ein einzelnes
    Objekt nicht den größten Teil des Puffers belegen darf, so dass die
    maximal zulässige Objektgröße erheblich unter der Gesamtgröße des
    Puffers liegt.
    The exception must either be prevented, caught within proedure
    "CRM_EVENT_PUBLISH_OW" "(FUNCTION)", or its possible occurrence must be
    declared in the
    RAISING clause of the procedure.
    To prevent the exception, note the following:

    Hello Sudhir,
    Have you set the user parameter CRM_EVENT_TRACE as one of your personal
    user settings? If this is the case, remove this parameter and the dump will no longer occur. The parameter is intended for test purposes only, for a report which evaluates
    which events are published and which function modules are called as a
    result of these events. However, depending on system settings, the
    allocated memory may be too low and lead to the short dump.
    (CRM_EVENT_TRACE is the report which can execute in SE38.)
    Regards, Gerhard

  • Runtime Error R6025 while creating text in Premiere Pro CS6

    I've looked at a number of posts on this, it seems to pop up for different reasons.
    For me, it only seems to happen, and happen inconsistently but often, when I am creating or editing text in Premiere Pro CS6
    "Microsoft Visual C++ Runtime Library
    Runtime error!
    Program: C:\Progra...
    R6025
    - pure virtual function call"
    I'm am self taught on both the PC and Premiere, and by that I mean I can get around okay, but am in no way an expert in either; so when other posts start talking coding, ain't nobody got time for that.
    I'm on a new Asus G750J
    Windows 8.1, 64-bit
    Intel Core i7-4700HQ CPU @ 2.40GHz
    (Unrelated note... why is this computer not doing GPU accerlation?)

    A search on Google leads me to guess that your registry is messed up, see this link:
    http://www.microsoftvisualcruntimelibrary.com/r6025-pure-virtual-function-call.php?tid=080 38&gclid=CJff9eXtmZoCFQJN5Qodo3H49A
    Try a registry cleaner and see what happens.

  • Runtime error DYNPRO_NOT_FOUND when creating business entity in SAP RE-FX

    Hello,
    I have a problem...
    In SAP RE-FX (Real Estate) when I try to do the most basic thing like creating a business entity (transaction REBDBE), I get a runtime error 'DYNPRO_NOT_FOUND'.
      Program                                SAPLBUSS
      Include                                  LBUSSO00
      Row                                     1.543
      Module type                          (MODULE PBO)
      Module Name                         PBO_START_SUBSCREEN
    Does anybody know how I can fix this?
    Thanks in advance!

    Hi
    look OSS Note [162119|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3136323131313926] note youe need to have market place login
    1621119 - Dump DYNPRO_NOT_FOUND in SAPLBUSS in module PBO_START_SUBSCREEN
    Regards,
    koolspy.

  • Runtime Error '1004':, Method 'Intersect' of object '_Global' failed

    Hello
    I am getting a runtime error 1004, can someone tell me why?  I am getting the runtime error on the first Application.Intercept statement.
    Thank you for your help!
    smsemail
    Private Sub Worksheet_Change(ByVal Target As Range)
    Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    If Not Application.Intersect(Target, Me.Range("A:A")) Is Nothing Then
    lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
    If lastRow < 17 Then
    Exit Sub
    End If
    If lastRow > 67 Then
    lastRow = 67
    End If
    Else
    Exit Sub
    End If
    If Not Application.Intersect(Target, Me.Range("A17:A" & lastRow)) Is Nothing Then
    Application.EnableEvents = False
    If Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("A17:A67")) = 0 Then
    Exit Sub
    End If
    If Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("B17:B67")) = 0 And _
    Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("C17:C67")) = 0 And _
    Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("D17:D67")) = 0 Then
    Exit Sub
    End If
    If CmdExecute = True Then
    Exit Sub
    End If
    If CmdClear = True Then
    Exit Sub
    End If
    Worksheets("RIPSSummary").Activate
    lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
    Set SourceRange = Application.Intersect(Range("A2:A" & lastRow), ActiveSheet.UsedRange)
    MsgBox "Source Range: " & SourceRange
    Worksheets("RIPS").Activate
    lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
    Set TargetRange = Application.Intersect(Range("A17:A" & lastRow), ActiveSheet.UsedRange)
    MsgBox "Target Range: " & TargetRange
    Exit Sub
    wsDeleted = False
    For Each acell In SourceRange.Cells
    RecordFound = True
    If Not IsEmpty(acell.Value) Then
    Set C = TargetRange.Find(acell.Value, LookIn:=x1values)
    If C Is Nothing Then
    RecordFound = False
    End If
    If RecordFound = False Then
    wsDeleted = True
    For Each Worksheet In Worksheets
    If Worksheet.Name = acell.Value Then
    Worksheet.Delete
    End If
    Next Worksheet
    End If
    End If
    Next acell
    If vbKeyDelete Or _
    vbKeyClear Then
    r = lastRow
    Do Until r < 17
    If Worksheets("RIPS").Range("A" & r).Value = "" Then
    Rows(r).Delete
    End If
    r = r - 1
    Loop
    End If
    Application.EnableEvents = True
    End If
    Application.ScreenUpdating = True
    Application.DisplayAlerts = True
    End Sub

    It should work but maybe there's something about your workbook we can't see.
    In passing generally best not to disable screenupdating, alerts or events unless need to do so. More importantly though you should ensure they always get reset. As written you have several Exit Sub's before any code that resets them. Also in case of an error
    consider resetting them in an error handler.

  • Cisco Bars - Web Error : Failed to create ASP object

    I have installed ;
    Win2003
    framework ASP .net2
    IIS
    MSDE 2000 serveur
    Cisco BARS Version 4.0.12
    When I go to http://IP/BARS
    It ask for password, then I see the usual interface, but then I go and choose a backup option and I allways have this error
    Windows Internet explorer
    Failed to create ASP Object for : _RemoteScripts/rs_BARSconfig.asp
    Firefox show that error :
    Error:
    Cannot locate proxy which supports Remote Scripting.
    Was RSEnableRemoteScripting method invoked?
    Second popup :
    Failed to create ASP object for : _RemoteScripts/rs_BARSconfig.asp

    thanks a lot, it fix my problem verry well.
    Another little one :)
    have any idea of this one here ?
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Timestamp: Sat, 4 Jul 2009 03:06:10 UTC
    Message: Object doesn't support this property or method
    Line: 269
    Char: 3
    Code: 0
    URI: http://localhost/BARS/_ScriptLibrary/rs.htm
    Message: 'rsConfig' is null or not an object
    Line: 199
    Char: 3
    Code: 0
    URI: http://localhost/BARS/BARSserverConfig.asp

  • SAP BW ERROR OCCURS WHILE CREATING ODS OBJECT

    HI TO SAP BW GURUS
    AFTER CREATING ODS OBJECT,AND ODS OBJECT STRUCTURE,WHILE ACTIVATING THE STRUCTURE I AM GETTING MESSAGE AS
    <b>message : STDO:LOG COULDNOT BE WRITTEN ON OUTPUT DEVICE T</b>
    COULD ANYONE PLS TELL ME HOW TO RECTIFY THT
    VENKAT

    Read the information message carefully. Then proceed, if you intend to have custom  "standard" texts (sort of an oxymoron, but everyplace I've been does this)...
    If you are working in a customer system, only create standard texts using the following naming convention:
    Initial letter Y or Z in the text name with any text ID
    or
    Initial letter Y or Z in the text ID with any text name

  • VBA Runtime Error 1004 "Application-defined or Object-defined error"

    I have code VBA code written in MS Access 2010 (.mbd file) to write data into an Excel file (.xls file). Below is the code to write data into that excel file. When you run this code, it always throws Error#1004 "Application-defined or Object-defined
    error". When you debug the code (F8) or run it (F5), it runs absolutely fine with out any issues. I am still not able to figure it out on what exactly the issue is. This code works fine when executed in MS Access 2007.
    Below is thr code that's getting executed and when it fails, the focus is set on the 3rd last line of the code marked in double astriek mark.
    Sub PopulateReport(appExcel As Object, testcam)
    Dim Site As String, intRec As Integer, i As Integer, cnt As Integer, intRecSet As Integer, cntr As Integer
    Dim F1 As String, F2 As String, F3 As String, F4 As String, F5 As String, F6 As String, F7 As String
    Dim F8 As String, F9 As String, F10 As String, F11 As String, F12 As String, F13 As String, CAMDate As Date
    Close
    i = 0
    cnt = 0
    cntr = 0
    Set cnn = CurrentProject.Connection
    rec.Open "SELECT * FROM Site", cnn, adOpenStatic, adLockPessimistic
    rec.MoveLast
    rec.MoveFirst
    intRec = rec.RecordCount
    Do Until cnt = intRec
    rec.MoveLast
    rec.MoveFirst
    rec.Move cnt
    Site = rec(4)
    Select Case Site
    Case "Fort Worth"
    cntr = 0
    recset.Open "SELECT * FROM Employee", cnn, adOpenStatic, adLockPessimistic
    recset.MoveLast
    recset.MoveFirst
    intRecSet = recset.RecordCount
    appExcel.Application.Goto Reference:="START_FW_CL"
    Do Until cntr = intRecSet - 1
    appExcel.Selection.EntireRow.Copy
    appExcel.Selection.EntireRow.Insert
    cntr = cntr + 1
    Loop
    appExcel.Application.CutCopyMode = False
    appExcel.Application.Goto Reference:="START_FW2_CL"
    go = appExcel.Application.Range("START_FW2_CL")
    cntr = 1
    With appExcel.Worksheets("Accts. > Clearing").[START_FW2_CL]
    Do Until recset.EOF
    **.Offset(cntr, 0) = recset(0)**
    .Offset(cntr, 1) = recset(1)
    .Offset(cntr, 2) = recset(2)
    End Sub

    What's wrong about it? It can only copy what you chose to have in the recordset. If you only want some fields or fields in a different order, replace
    SELECT * FROM  with
    SELECT Field1, Field2, etc
    CopyFromRecordset is bay far the best method and runs much faster.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

Maybe you are looking for