To anyone that can help. I must admit to being pretty stumped, I have been trying to establish a connection to Microsoft Exchange using ColdFusion 8.
Its been over three weeks of banging my head against a wall and I'm at a bit of a loss. The errors returned for the code I'm using are as follows: Access to the Exchange server denied. Unable to connect to the Exchange server using HTTP/HTTPS protocol. Cannot access Exchange server as a web application at 192.168.xxx.xxx My setup: (All installed on a single DC machine with 1Gb RAM) Microsoft 2003 Server with SP2 and all updates Exchange 2000 with SP3 Coldfusion 8 (developer mode) * I have IIS 6 configured with a valid SSL certificate and I have used the keytool.exe to import a certificate into the certs file into the C:\ColdFusion8\runtime\jre\lib\security directory * I have checked the certs file and can see the correct alias for the key I imported * Outlook Web Access is up and running and fully functional both internally and externally for all users using: https://mydomain.com/exchange * The server event logs are clear and all services seem to be up and running as they should * There are no 'escape' characters in any of the usernames or passwords * Coldfusion 8 seems to be fine on other pages of my website where I use it to access MySQL, display the date and time etc... Here are the code snippits I'm using to try to establish a connection to Microsoft Exchange along with the errors they return: #1 <!--- This code produces: Access to the Exchange server denied. ---> <!--- connection parameters ---> <cfparam name="user1" default="myusername"> <cfparam name="password" default="mysecretpassword"> <cfparam name="exchangeServerIP" default="192.168.xxx.xxx"> <cftry> <!--- Open a connection to the exchange server by specifying the required user credentials ---> <cfexchangeConnection action="open" username ="#user1#" password="#password#" server="#exchangeServerIP#" protocol = "https" connection="conn1"> <cfoutput>Connection to exchange server "#exchangeServerIP#" established</cfoutput> <!--- Close connection to exchange server ---> <CFExchangeConnection action="close" connection="conn1"> <cfoutput>Connection to exchange server "#exchangeServerIP#" terminated</cfoutput> <!--- Error Information ---> <cfcatch type="any"> <cfoutput>#cfcatch.message#</cfoutput><br> </cfcatch> </cftry> #2 <!--- This code produces: Unable to connect to the Exchange server using HTTP/HTTPS protocol. ---> <cftry> <cfset atts = structNew()> <cfset atts["action"] = "open"> <cfset atts["connection"] = "variables.msxConn"> <cfset atts["username"] = "myNetBIOSdomainName\myusername"> <cfset atts["password"] = "mysecretpassword"> <cfset atts["server"] = "192.168.xxx.xxx"> <cfset atts["protocol"] = "https"> <cfset atts["formBasedAuthentication"] ="true"> <!--- <cfdump var="#atts#"> ---> <cfexchangeconnection attributeCollection="#atts#"> <cfset atts = structNew()> <cfset atts["action"] = "get"> <cfset atts["name"] = "myContacts"> <cfset atts["connection"] = "variables.msxConn"> <cfexchangecontact attributeCollection="#atts#" /> <cfexchangeconnection action="close" connection="variables.msxConn"> <cfdump var="#myContacts#" label=""> <cfform> <cfgrid format="flash" query="myContacts" name="contacts"/> </cfform> <!--- Error Information ---> <cfcatch type="any"> <cfoutput>#cfcatch.message#</cfoutput><br> </cfcatch> </cftry> #3 <!--- This code produces: Cannot access Exchange server as a web application at 192.168.xxx.xxx ---> <cftry> <cfexchangecontact action="get" name="myContacts" server="192.168.xxx.xxx" username="[EMAIL PROTECTED]" password="mysecretpassword" protocol="https" /> <cfdump var="#myContacts#" label=""> <!--- Error Information ---> <cfcatch type="any"> <cfoutput>#cfcatch.message#</cfoutput> </cfcatch> </cftry> #4 (I know 'protocol' should be https, but just thought I'd give it a go as nothing else works!) <!--- This code produces: Error connecting to the Exchange server at 192.168.xxx.xxx using HTTP protocol. ---> <cfexchangeconnection action = "open" connection = "exchangeConnection" protocol = "http" server = "192.168.xxx.xxx" mailboxname="myusername" username = "[EMAIL PROTECTED]" password = "mysecretpassword" /> Is there something silly I've missed? I must have read over 100 web pages and probably spent over 200 hours trying to make something work... Any help would be greatly appreciated, my boss has so far been very understanding, but ColdFusion 8 could just be the very mistake that looses me my job, my home, and sees me begging on the streets of Calcutta (If I could afford the air fair - which I can't) Not wanting to be too dramatic or anything... lol Many thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3291 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
