XMLHTTP, Web Services, and Permission Denied Error

C

CoryP

I have created a form that uses XMLHTTP within the code to access custom web
services. When I am in design mode and preview the form, everything works
perfectly. However, when I save the form and then double-click the XSN file
to fill it out, I receive a Permission Denied error on the xmlhttp.open
command.

I have been searching the internet for a solution for the last few hours and
have been unable to find a working solution.

Can someone please help? This is also very urgent for me because this form
is due very very soon.

Thanks,
Cory
 
C

CoryP

I solved my problem. It may not be the correct way, but it worked. Here is
how I did it:

1) Add the server where the web services are located to the Trusted Sites in
IE
2) Within Trusted Sites settings, enable access to files/scripts across
domains
3) Use regform.exe to register the form on your computer
4) Run the newly created .js file to finish registration
5) Open the form in design mode and go to Form Options > Security and change
it from Full Trust to Domain security

It doesnt make a whole lot of sense, but in the end the problem was solved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top