Click here to Skip to main content
11,712,792 members (79,229 online)
   

C#

 
AnswerRe: Exasperated by MSMQ Pin
Abhinav S23-Jan-13 22:34
mvpAbhinav S23-Jan-13 22:34 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden24-Jan-13 2:51
memberGer Hayden24-Jan-13 2:51 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden26-Jan-13 0:45
memberGer Hayden26-Jan-13 0:45 
AnswerRe: Exasperated by MSMQ Pin
jschell24-Jan-13 8:45
memberjschell24-Jan-13 8:45 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden24-Jan-13 9:21
memberGer Hayden24-Jan-13 9:21 
QuestionImporting Images onto Design Stage Pin
ASPnoob23-Jan-13 18:03
memberASPnoob23-Jan-13 18:03 
AnswerRe: Importing Images onto Design Stage Pin
Eddy Vluggen24-Jan-13 0:40
mvpEddy Vluggen24-Jan-13 0:40 
Questionstring[] to Microsoft.Exchange.Data.MultiValuedProperty Pin
JD8623-Jan-13 12:22
memberJD8623-Jan-13 12: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 Pin
jibesh23-Jan-13 13:28
memberjibesh23-Jan-13 13:28 
GeneralRe: string[] to Microsoft.Exchange.Data.MultiValuedProperty Pin
JD8625-Jan-13 3:41
memberJD8625-Jan-13 3:41 
QuestionI need help with my drag and drop code Pin
cdaviesp23-Jan-13 10:24
membercdaviesp23-Jan-13 10:24 
AnswerRe: I need help with my drag and drop code Pin
pt140125-Jan-13 9:19
memberpt140125-Jan-13 9:19 
Questionnested try catch block Pin
000mann00023-Jan-13 6:59
member000mann00023-Jan-13 6:59 
GeneralRe: nested try catch block Pin
PIEBALDconsult23-Jan-13 7:06
memberPIEBALDconsult23-Jan-13 7:06 
GeneralRe: nested try catch block Pin
000mann00023-Jan-13 7:11
member000mann00023-Jan-13 7:11 
GeneralRe: nested try catch block Pin
PIEBALDconsult23-Jan-13 7:12
memberPIEBALDconsult23-Jan-13 7:12 
AnswerRe: nested try catch block Pin
Paulo Zemek23-Jan-13 7:23
memberPaulo Zemek23-Jan-13 7:23 
GeneralRe: nested try catch block Pin
000mann00023-Jan-13 7:25
member000mann00023-Jan-13 7:25 
QuestionClient is not connecting to the server Pin
Skytten23-Jan-13 5:33
memberSkytten23-Jan-13 5:33 
AnswerRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 5:41
mvpOriginalGriff23-Jan-13 5:41 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 5:55
memberSkytten23-Jan-13 5:55 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:07
mvpOriginalGriff23-Jan-13 6:07 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:09
memberSkytten23-Jan-13 6:09 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:20
mvpOriginalGriff23-Jan-13 6:20 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:26
memberSkytten23-Jan-13 6: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
Web04 | 2.8.150819.1 | Last Updated 1 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid