Solved

CDO CreateMHTMLBody times out on .asp, but not .htm/.html/etc

Posted on 2004-09-13
5
622 Views
Last Modified: 2008-01-09
I believe I am using CDO.Message, and specifically CreateMHTMLBody, correctly.  In the snippet below, I get the desired behaviour with the following values of "url":

- "http://www.google.ca"
- "http://localhost/testfile.htm"
- "http://127.0.0.1/testfile.htm"
- "http://my-compujter-name/testfile.htm"

But if I try one of the following (which is, of course, just what I need):

- "http://localhost/testfile.asp"
- "http://127.0.0.1/testfile.asp"
- "http://my-computer-name/testfile.asp"

The operation times out.  No entry is made in my machine's Event Log.  We use a proxy server which is bypassed for local addresses, and I tried adding the appropriate entries for the variables cdoURLProxyServer (the IP of the server) and cdoURLProxyBypass (to "<local>") but that didn't change anything.  I also tried setting the Flags parameter to cdoSuppressAll, no dice.  Any experts out there who can help?

snippet:

...
    Set oMailConfig = New CDO.Configuration
    Set Flds = oMailConfig.Fields
    With Flds
      .item(cdoSendUsingMethod) = cdoSendUsingPort
      .item(cdoSMTPServer) = "myMailServer"
      .item(cdoSMTPConnectionTimeout) = 60
      .item(cdoSMTPServerPort) = 25
      .item(cdoSMTPAuthenticate) = cdoAnonymous
      .Update
    End With
   
    Set oMail = New CDO.Message
    With oMail
      Set .Configuration = oMailConfig
            .To = recipients
            .From = sender
            .subject = subject
            .CreateMHTMLBody url
            .Send
    End With
...

0
Comment
Question by:barryfandango
  • 2
5 Comments
 
LVL 3

Author Comment

by:barryfandango
ID: 12048117
I think I've discovered the source of the problem.  This code is running in a VB6 COM component called by an ASP webpage.  If i change the variable "url" to point to a test ASP page on another web server on the network, it works properly.  If i point "url" to an .aspx (ASP.NET) file running on the _same_ server, it works.  Thus it appears that the ASP process is locked up using the COM component and will not break to render the page I am trying to attach.

Any ideas, experts?  Looks like an old-fashioned deadlock to me but perhaps there's a way around it.
0
 
LVL 3

Author Comment

by:barryfandango
ID: 12559726
I think a refund is in order here, as I never received any response.  I don't want to risk negative feedback, especially in those menacing capitalized letters!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12848591
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now