Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2006

Tip: Looking for answers? Try searching our database.

XMLHTTP, Web Services, and Permission Denied Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CoryP - 24 Mar 2006 19:52 GMT
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
CoryP - 26 Mar 2006 23:54 GMT
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.

> 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
[quoted text clipped - 10 lines]
> Thanks,
> Cory
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.