locked
Permission denied in form script RRS feed

  • Question

  • Hi,

    I have a form client javascript in CRM form to set a datavalue (field modification) but keeps getting an "Permission Denied" all of sudden.  Any thoughts why this error occurred?  The field is not set for "read-only".

    Young

    Saturday, April 3, 2010 11:26 PM

Answers

All replies

  • Can you post the script?
    Blake Scarlavai - Sonoma Partners - http://www.sonomapartners.com/
    Sunday, April 4, 2010 12:46 AM
  • Did your script use external web service calls? or uses resources outside the CRM server web application?
    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    Sunday, April 4, 2010 9:54 AM
    Moderator
  • Hello Young,

    if the javascript is calling web services or dealing with other URLs make sure that these URLs or Web Services not called using http://localhost , it should be using the machine name and port.


    Ahmed ElNoby http://ahmedelnoby.blogspot.com
    Sunday, April 4, 2010 11:47 AM
  • Validate the current value of the javascript variable/global SERVER_URL , especially if you use it in your script.  As Ahmed states, it should not reference "localhost".
    Dave Berry
    Sunday, April 4, 2010 3:39 PM
    Moderator
  • Yes.  It is using an external web service.  It used to work but not any more.  The MSXML2.HTTP.open fails because of permission issue.  It used to pop "The page is accessing information that is not under its control.  This poses a security risk.  Do you want to continue?" but not anymore.  I guess my IE denies the permission automatically for some reason?

    Thanks in advance,

    Young

    • Edited by CRM2500 Wednesday, April 7, 2010 5:15 PM
    Monday, April 5, 2010 1:17 AM
  • First thing I would do: add the CRM site to your Trusted Sites list.


    Dave Berry
    Monday, April 5, 2010 3:47 PM
    Moderator
  • Thanks Dave,

    Yes. I did it but the error is still raised.  I think that it might be related to call the external web service from CRM.  For some reason, the form script is not allowed to call "open" method to post the external web service.

    Young

    Wednesday, April 7, 2010 2:20 PM
  • Thanks Dave,

    Yes. I did it but the error is still raised.  I think that it might be related to call the external web service from CRM.  For some reason, the form script is not allowed to call "open" method to post the external web service.

    Young

    Wednesday, April 7, 2010 2:20 PM
  • When you say "external web service", is this web service on another server? or maybe a public web service?


    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    Wednesday, April 7, 2010 2:24 PM
    Moderator
  • It is a public web service.

    Young

    Wednesday, April 7, 2010 6:22 PM
  • Are you using Javascript to communicate with the public web-service?  If so, you may need to do one of two things to make it work:

    a.) Set custom security options on the "Trusted Sites" zone to allow communication with unsecured domains while browsing a secured site; or

    b.) Use a secured/SSL interface to the public web-service


    Dave Berry
    Wednesday, April 7, 2010 6:47 PM
    Moderator
  • Hi,

    Is your script trying to get/set a value in a web page from a different domain?

    Thanks

    Joe

    Thursday, April 8, 2010 9:45 AM
  • Thursday, April 8, 2010 9:01 PM