Click here to Skip to main content
11,409,922 members (53,410 online)
   

C#

 
AnswerRe: Exasperated by MSMQ PinmvpAbhinav S23-Jan-13 23:34 
GeneralRe: Exasperated by MSMQ PinmemberGer Hayden24-Jan-13 3:51 
GeneralRe: Exasperated by MSMQ PinmemberGer Hayden26-Jan-13 1:45 
AnswerRe: Exasperated by MSMQ Pinmemberjschell24-Jan-13 9:45 
GeneralRe: Exasperated by MSMQ PinmemberGer Hayden24-Jan-13 10:21 
QuestionImporting Images onto Design Stage PinmemberASPnoob23-Jan-13 19:03 
AnswerRe: Importing Images onto Design Stage PinmvpEddy Vluggen24-Jan-13 1:40 
Questionstring[] to Microsoft.Exchange.Data.MultiValuedProperty PinmemberJD8623-Jan-13 13:22 
I'm working on writing something that will allow you to create distribution groups in Exchange 2010.

The problem I am having is I am passing string arrays to my service for the Members and ManagedBy parameters.

This is how I attempted to make this work:
var members = new MultiValuedProperty<object>();
foreach (string s in group.Members)
     members.Add(s);
 
cmd.AddParameter("Members", members);

The problem I'm having is it is returning an error because it appears it wants Microsoft.Exchange.Configuration.Tasks.RecipientWithAdUserGroupIdParameter within the MultiValuedProperty.

I'm a little confused because it then looks like the RecipientWithAdUserGroupIdParameter contains an array of RecipientIdParameter:

Error: System.ServiceModel.FaultException: System.Management.Automation.RemoteException: Cannot process argument transformation on parameter 'Members'. Cannot convert value "8caf8910-86d0-4d00-a452-8c30c0f62373 cfa01a55-6b35-4e61-bf0e-9050308623c7" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Configuration.Tasks.RecipientWithAdUserGroupIdParameter`1[Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter]]". Error: "Cannot convert the "8caf8910-86d0-4d00-a452-8c30c0f62373" value of type "Deserialized.Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter" to type "Microsoft.Exchange.Configuration.Tasks.RecipientWithAdUserGroupIdParameter`1[Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter]"." at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke() at CloudPanel.Exchange.ExchPs.RunPowershell(PSCommand pscmd, String script) at CloudPanel.Exchange.ExchPs.RunPowershell(PSCommand pscmd, String script) at CloudPanel.Exchange.ExchPs.New_DistributionGroup(DistributionGroup group, String companydn) 


Anyone have an idea what I can do to accomplish this? There are some stuff out on the web about using ICollection when reading from Exchange but i'm trying to send commands to exchange.
AnswerRe: string[] to Microsoft.Exchange.Data.MultiValuedProperty Pinmemberjibesh23-Jan-13 14:28 
GeneralRe: string[] to Microsoft.Exchange.Data.MultiValuedProperty PinmemberJD8625-Jan-13 4:41 
QuestionI need help with my drag and drop code Pinmembercdaviesp23-Jan-13 11:24 
AnswerRe: I need help with my drag and drop code Pinmemberpt140125-Jan-13 10:19 
Questionnested try catch block [modified] Pinmember000mann00023-Jan-13 7:59 
GeneralRe: nested try catch block PinmemberPIEBALDconsult23-Jan-13 8:06 
GeneralRe: nested try catch block Pinmember000mann00023-Jan-13 8:11 
GeneralRe: nested try catch block PinmemberPIEBALDconsult23-Jan-13 8:12 
AnswerRe: nested try catch block PinmemberPaulo Zemek23-Jan-13 8:23 
GeneralRe: nested try catch block Pinmember000mann00023-Jan-13 8:25 
QuestionClient is not connecting to the server PinmemberSkytten23-Jan-13 6:33 
AnswerRe: Client is not connecting to the server PinmvpOriginalGriff23-Jan-13 6:41 
GeneralRe: Client is not connecting to the server PinmemberSkytten23-Jan-13 6:55 
GeneralRe: Client is not connecting to the server PinmvpOriginalGriff23-Jan-13 7:07 
GeneralRe: Client is not connecting to the server PinmemberSkytten23-Jan-13 7:09 
GeneralRe: Client is not connecting to the server PinmvpOriginalGriff23-Jan-13 7:20 
GeneralRe: Client is not connecting to the server PinmemberSkytten23-Jan-13 7:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 25 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid