Call was rejected by callee -

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buntyindia
    New Member
    • Jun 2007
    • 101

    Call was rejected by callee -

    While creating a word doc using Javascript I am getting error "Call was rejected by callee"

    Code:
    var objWord=new ActiveXObject('Word.Application');
    objWord.Visible = "True";
    I am executing this in a ASP document on IIS 5 Server.


    Please Help...

    Regards,
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    This could possibly be caused by the Word application being busy.

    You could try waiting a while and then trying. See if this link helps.

    Comment

    • buntyindia
      New Member
      • Jun 2007
      • 101

      #3
      Originally posted by acoder
      This could possibly be caused by the Word application being busy.

      You could try waiting a while and then trying. See if this link helps.
      I am trying to open a word doc with Javascript and create a new document using mailmerge.

      Now problem is when more then one user is using the same template for mailmerge I got a error from Word "Document is locked for editing by xxx"

      Is there any way to overcome this ...or any way to keep word doc in shared way.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        More than one person can't edit the same file at the same time otherwise you'd get unexpected results. Either they use separate templates or catch the error and wait a while and try again.

        Did you manage to solve the first problem?

        Comment

        • buntyindia
          New Member
          • Jun 2007
          • 101

          #5
          Originally posted by acoder
          More than one person can't edit the same file at the same time otherwise you'd get unexpected results. Either they use separate templates or catch the error and wait a while and try again.

          Did you manage to solve the first problem?
          For the first issue "Call was rejected by callee" it was not the problem of Anti virus...

          I just make null the objword object just after making Word visible.

          Till time haven't got that problem yet and stand resolved.

          Another problem frequently disturbing is "Automation server can't create Object" and once we again login to the application it disappears and application work fine and suddenly appears again....I don't no why? what is the reason. IE all settings are on LOW

          Acoder can u plz help on this?

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by buntyindia
            Another problem frequently disturbing is "Automation server can't create Object" and once we again login to the application it disappears and application work fine and suddenly appears again....I don't no why? what is the reason. IE all settings are on LOW
            Usually, this error occurs because the ActiveX script doesn't have sufficient permissions to run. In your case, it does, so I'm not sure why you have this problem. When you login to the application, do you access an ActiveX object?

            Comment

            • buntyindia
              New Member
              • Jun 2007
              • 101

              #7
              Originally posted by acoder
              Usually, this error occurs because the ActiveX script doesn't have sufficient permissions to run. In your case, it does, so I'm not sure why you have this problem. When you login to the application, do you access an ActiveX object?
              While login we are authenticating the user with ldap using a DLL after that main page loads and there user can choose to mail merge the letters where it actually to the function

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                So does this error occur whenever you create a new ActiveX object?

                Comment

                • buntyindia
                  New Member
                  • Jun 2007
                  • 101

                  #9
                  Originally posted by acoder
                  So does this error occur whenever you create a new ActiveX object?
                  Yes when work with ActiveX to generate letters using mail merge

                  Comment

                  • acoder
                    Recognized Expert MVP
                    • Nov 2006
                    • 16032

                    #10
                    Select Tools --> Options --> Security tab --> Custom Level... button.

                    Make sure this is only set for trusted sites or Local intranet.

                    Then look at the ActiveX options and enable the disabled options, e.g. Initialize and script ActiveX control not marked as safe for scripting.

                    Comment

                    Working...