I am working on to create MAPI profile programatically to connect Exchange Server 2013. But in exchange server 2013 due to some advanced settings [outlook anywhere] i need to add some additional properties as described in the below aricle.
I can able to retrieve the following important property values through Autodicover.
PR_PROFILE_RPC_PROXY_SERVER
PR_PROFILE_UNRESOLVED_SERVER
PR_PROFILE_RPC_PROXY_SERVER_AUTH_PACKAGE
And iam able to create profile by adding the properties. But i faced the following difficulties,
Sometimes without adding the additional properties described in the above msdn article i able to create the mapi profile and connect exchange server. In such cases, if i add the additional properties then iam unable to connect the exchange server successfully with the profile.
i am getting the MAPI error "MAPI_E_LOGON_FAILED".
And in most of the exchange server 2013 environment, if i add the additional properties then only i can able to connect exchange server successfully.
I am confused..! In what circumstance we need to add the additional MAPI properties [PR_PROFILE_RPC_PROXY_SERVER,PR_PROFILE_UNRESOLVED_SERVER,......]
to connect exchange server 2013 in a MAPI profile???
And i am unable to find the exact causes in the exchange server environments.
Iam struggling to find the solution for more than a week.
can anyone please help me on this.
If need any additional information, i am happy to provide.
NOTE: I am able to create MAPI profile to connect exchange server 2010 without any issues.