New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Absent Member.
Absent Member.
1196 views

Threading and Admin objects

I have a program I use to extract distribution list information into a CSV file for another program to digest. When I run the primary loop as a call in response to a button click it works fine. However, I need to run the loop as a thread. When I change the program structure to support this I get an error "object does not match target type" when I try to access the domain's list of DLs.

foreach (DistributionList dl in lists) {......

I've tried bringing in a new reference to the DL list to the method but it makes no difference.

Do I need to create a new connection to the domain within the method and then local System, domain and list references?

This is using C#, GW 8.0.2. Any thoughts?

--
Lilith
Labels (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.