Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exasperated by MSMQ Pin
Abhinav S23-Jan-13 22:34
Abhinav S23-Jan-13 22:34 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden24-Jan-13 2:51
Ger Hayden24-Jan-13 2:51 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden26-Jan-13 0:45
Ger Hayden26-Jan-13 0:45 
AnswerRe: Exasperated by MSMQ Pin
jschell24-Jan-13 8:45
jschell24-Jan-13 8:45 
GeneralRe: Exasperated by MSMQ Pin
Ger Hayden24-Jan-13 9:21
Ger Hayden24-Jan-13 9:21 
QuestionImporting Images onto Design Stage Pin
ASPnoob23-Jan-13 18:03
ASPnoob23-Jan-13 18:03 
AnswerRe: Importing Images onto Design Stage Pin
Eddy Vluggen24-Jan-13 0:40
professionalEddy Vluggen24-Jan-13 0:40 
Questionstring[] to Microsoft.Exchange.Data.MultiValuedProperty Pin
JD8623-Jan-13 12:22
JD8623-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:
C#
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:

C#
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
professionalJibesh23-Jan-13 13:28 
GeneralRe: string[] to Microsoft.Exchange.Data.MultiValuedProperty Pin
JD8625-Jan-13 3:41
JD8625-Jan-13 3:41 
QuestionI need help with my drag and drop code Pin
cdaviesp23-Jan-13 10:24
cdaviesp23-Jan-13 10:24 
AnswerRe: I need help with my drag and drop code Pin
pt140125-Jan-13 9:19
pt140125-Jan-13 9:19 
Questionnested try catch block Pin
000mann00023-Jan-13 6:59
000mann00023-Jan-13 6:59 
GeneralRe: nested try catch block Pin
PIEBALDconsult23-Jan-13 7:06
mvePIEBALDconsult23-Jan-13 7:06 
GeneralRe: nested try catch block Pin
000mann00023-Jan-13 7:11
000mann00023-Jan-13 7:11 
GeneralRe: nested try catch block Pin
PIEBALDconsult23-Jan-13 7:12
mvePIEBALDconsult23-Jan-13 7:12 
AnswerRe: nested try catch block Pin
Paulo Zemek23-Jan-13 7:23
Paulo Zemek23-Jan-13 7:23 
GeneralRe: nested try catch block Pin
000mann00023-Jan-13 7:25
000mann00023-Jan-13 7:25 
QuestionClient is not connecting to the server Pin
Skytten23-Jan-13 5:33
Skytten23-Jan-13 5:33 
AnswerRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 5:41
mveOriginalGriff23-Jan-13 5:41 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 5:55
Skytten23-Jan-13 5:55 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:07
mveOriginalGriff23-Jan-13 6:07 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:09
Skytten23-Jan-13 6:09 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:20
mveOriginalGriff23-Jan-13 6:20 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:26
Skytten23-Jan-13 6:26 

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

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