Coldfusion 10 and Exchange Server 2010
I am using Coldfusion 10 and I have been trying to connect to Exchange server 2010.
I keep getting this error message: Unable to connect to the Exchange server using HTTP/HTTPS protocol. HTTP response code : 302
I have asked the Coldfusion hosting service to check the cacert for the required certificates and they said that all of the certificates for the hosted exchange server were installed.
If I use the serverVersion="2010" tag I get this error:
Could not connect to the exchange server with the credentials.Exchange Server doesn't support the requested version. |
The company that is hosting my exchange server account just recently upgraded their servers to Exchange Server 2010. When they were running Exchange Server 2007 and i was using Coldfusion 8 my script worked fine.
Any ideas why I am unable to connect to the exchange server now.
Below is the script that I am running.
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<cfoutput>
<cfset count = 0>
<cfset serverName="ex2010.gothamemail.com">
<cfset username="xxxxxxxx@xxxxxxxx.xxx">
<cfset password="xxxxxxxxxxx">
<cfexchangeconnection
action="open"
Protocol="https"
connection="myExchangeConnection"
username="#username#"
password="#password#"
server="#serverName#">
<cfexchangecontact
action = "get"
name = "current_contacts"
connection = "myExchangeConnection">
<cfexchangefilter name="MaxRows" value="2781">
</cfexchangecontact>
<cfexchangeconnection action="close" connection="myExchangeConnection" />
</cfoutput>
<table width="100%" border="1">
<tr><th>No.</th><th>UID</th><th>Firstname</th><th>Lastname</th><th>Email</th></tr>
<cfoutput query="current_contacts">
<cfset count = #count# + 1>
<tr><th>#count#</th><th>#UID#</th><th>#Firstname#</th><th>#Lastname#</th><th>#Email1#</th></tr>
</cfoutput>
</table>
<cfexchangeconnection
action="close"
connection="myExchangeConnection">
</body>
</html>
