data connection not working in form

R

ritesh

Hi,

I am trying to populate a dropdown say field2 based on the value
selected in another dropdown say field1.
In the first dropdown field1, name of group is selected.
In the data connection, i am using a web method exposed by a web
service which accesses the Active Directory to get the members of the
group selected in field1.

When I use the same piece of code in a console appliaction, it runs
perfectly.
But when I use the same code in web service, it gives me the following
error.

Some rules were not applied.

The query cannot be run for the following DataObject:
GetActiveDirectoryUsers
InfoPath cannot run the specified query.
The SOAP response indicates that an error occurred on the server:

System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.Runtime.InteropServices.COMException
(0x80072020): An operations error occurred.

at Service.GetActiveDirectoryUsers(String groupName) in
c:\Inetpub\wwwroot\BE.ESB.COTWS\App_Code\Service.cs:line 713
--- End of inner exception stack trace ---


The error is occuring at the place in my web service where I call the
FindAll() for the DirectorySearcher object.

Could anybody help me out with this?

Regards,
ritesh
 

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