Skip navigation
flashbrain16
Currently Being Moderated

Unable to connect to the Exchange server using HTTP/HTTPS protocol.

Aug 13, 2007 3:16 AM

hi,
i try to connect microsoft exchange server, but it give me error
Unable to connect to the Exchange server using HTTP/HTTPS protocol.

my code is pasted below............

<!--- connection parameters --->
<cfparam name="user1" default="uHRH">
<cfparam name="user2" default="uHRH">
<cfparam name="password" default="uHRH">
<cfparam name="exchangeServerIP" default="192.168.0.1">

<cftry>

<!--- Open a connection to the exchange server by specifying the required user credentials --->
<cfexchangeConnection
action="open"
username ="#user1#"
password="#password#"
server="#exchangeServerIP#"
<!--- protocol = "http"--->
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>
</cfcatch>

</cftry>

if any one know how to solve this error?

 
Replies
  • Currently Being Moderated
    Aug 13, 2007 6:36 AM   in reply to flashbrain16
    Hi,

    The "<cfexchangeConnection>" tag supports both "HTTP" and "HTTPS" connection.. So Please make sure the username has the "Outlook Web Access".

    Also try removing the <!--- protocol = "http"---> comment which you placed inside the "<cfexchangeConnection>" tag.
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 14, 2007 2:41 AM   in reply to flashbrain16
    Hi,

    Since this "302" issue is related with "Object Moved" type of error. It seems the IP you mentioned as "192.168.0.1" must be wrong (this might be your router's IP),

    So Please make sure your server IP is correct and have a try again..
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points