Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CreateMHTMLBody with local ASP URL doesn't work

Reply
Thread Tools

CreateMHTMLBody with local ASP URL doesn't work

 
 
Braky Wacky
Guest
Posts: n/a
 
      11-10-2004
Here's my scenario. I have an ASP page that I call on my server, say:

http://myserver.com/firstPage.asp

In this first ASP page, I want to send a MIME email that has the
contents of another ASP page which is located on the same server. So
the code looks like:

<%
Set objCdoMesg = Server.CreateObject("CDO.Message")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = ""
objCdoMesg.From = ""
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin
 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      11-10-2004
Have a look at this:
http://support.microsoft.com/default...b;en-us;290591
it may be a similar problem.


--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Braky Wacky" <> wrote in message
news: om...
> Here's my scenario. I have an ASP page that I call on my server, say:
>
> http://myserver.com/firstPage.asp
>
> In this first ASP page, I want to send a MIME email that has the
> contents of another ASP page which is located on the same server. So
> the code looks like:
>
> <%
> Set objCdoMesg = Server.CreateObject("CDO.Message")
> objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
> objCdoMesg.To = ""
> objCdoMesg.From = ""
> objCdoMesg.Subject = "Testing MIME messages"
> objCdoMesg.Send
> %>
>
> This process will hang on the CreateMHTMLBody() method call. If I
> move the second page to another server and reference it there, it's
> fine. If I rename the second page to "secondPage.html" and leave it
> on the local server and reference it that way (the second page doesn't
> have any ASP code in it at this point, just HTML), it's fine.
>
> It seems like the only time the hang occurs is when the requested file
> is an ASP page and is located on the local server.
>
> Anyone seen anything like this? I'm running on Windows 2000 Server
> with all the current security updates. Seems like it may be something
> in the way the process(es) are running.
>
> Thanks,
> Kevin



 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      11-10-2004
Did you try using 127.0.0.1, or localhost?

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Braky Wacky" <> wrote in message
news: om...
> Here's my scenario. I have an ASP page that I call on my server, say:
>
> http://myserver.com/firstPage.asp
>
> In this first ASP page, I want to send a MIME email that has the
> contents of another ASP page which is located on the same server. So
> the code looks like:
>
> <%
> Set objCdoMesg = Server.CreateObject("CDO.Message")
> objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
> objCdoMesg.To = ""
> objCdoMesg.From = ""
> objCdoMesg.Subject = "Testing MIME messages"
> objCdoMesg.Send
> %>
>
> This process will hang on the CreateMHTMLBody() method call. If I
> move the second page to another server and reference it there, it's
> fine. If I rename the second page to "secondPage.html" and leave it
> on the local server and reference it that way (the second page doesn't
> have any ASP code in it at this point, just HTML), it's fine.
>
> It seems like the only time the hang occurs is when the requested file
> is an ASP page and is located on the local server.
>
> Anyone seen anything like this? I'm running on Windows 2000 Server
> with all the current security updates. Seems like it may be something
> in the way the process(es) are running.
>
> Thanks,
> Kevin



 
Reply With Quote
 
Braky Wacky
Guest
Posts: n/a
 
      11-11-2004
I was thinking it was probably something along those lines, i.e. a
threading issue with the process. I've since backed out of the plan
to use that functionality in favor of a reasonable workaround. Thanks
for the link. I knew I had seen something similar with XMLHTTP, but
had forgotten about it.

I may revisit, building the functionality inside of .NET with COM
interop, to see if the .NET runtime plays any nicer with it. But
that's an exercise for another day.

Kevin


"Mark Schupp" <> wrote in message news:<>...
> Have a look at this:
> http://support.microsoft.com/default...b;en-us;290591
> it may be a similar problem.
>
>
> --
> --Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
> "Braky Wacky" <> wrote in message
> news: om...
> > Here's my scenario. I have an ASP page that I call on my server, say:
> >
> > http://myserver.com/firstPage.asp
> >
> > In this first ASP page, I want to send a MIME email that has the
> > contents of another ASP page which is located on the same server. So
> > the code looks like:
> >
> > <%
> > Set objCdoMesg = Server.CreateObject("CDO.Message")
> > objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
> > objCdoMesg.To = ""
> > objCdoMesg.From = ""
> > objCdoMesg.Subject = "Testing MIME messages"
> > objCdoMesg.Send
> > %>
> >
> > This process will hang on the CreateMHTMLBody() method call. If I
> > move the second page to another server and reference it there, it's
> > fine. If I rename the second page to "secondPage.html" and leave it
> > on the local server and reference it that way (the second page doesn't
> > have any ASP code in it at this point, just HTML), it's fine.
> >
> > It seems like the only time the hang occurs is when the requested file
> > is an ASP page and is located on the local server.
> >
> > Anyone seen anything like this? I'm running on Windows 2000 Server
> > with all the current security updates. Seems like it may be something
> > in the way the process(es) are running.
> >
> > Thanks,
> > Kevin

 
Reply With Quote
 
Braky Wacky
Guest
Posts: n/a
 
      11-11-2004
Yeah, I tried that. I had high hopes for that solution. Alas, it
was not meant to be; I saw the same behavior there too. Thanks for
the suggestion though.

Kevin


"Aaron [SQL Server MVP]" <> wrote in message news:<#>...
> Did you try using 127.0.0.1, or localhost?
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Braky Wacky" <> wrote in message
> news: om...
> > Here's my scenario. I have an ASP page that I call on my server, say:
> >
> > http://myserver.com/firstPage.asp
> >
> > In this first ASP page, I want to send a MIME email that has the
> > contents of another ASP page which is located on the same server. So
> > the code looks like:
> >
> > <%
> > Set objCdoMesg = Server.CreateObject("CDO.Message")
> > objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
> > objCdoMesg.To = ""
> > objCdoMesg.From = ""
> > objCdoMesg.Subject = "Testing MIME messages"
> > objCdoMesg.Send
> > %>
> >
> > This process will hang on the CreateMHTMLBody() method call. If I
> > move the second page to another server and reference it there, it's
> > fine. If I rename the second page to "secondPage.html" and leave it
> > on the local server and reference it that way (the second page doesn't
> > have any ASP code in it at this point, just HTML), it's fine.
> >
> > It seems like the only time the hang occurs is when the requested file
> > is an ASP page and is located on the local server.
> >
> > Anyone seen anything like this? I'm running on Windows 2000 Server
> > with all the current security updates. Seems like it may be something
> > in the way the process(es) are running.
> >
> > Thanks,
> > Kevin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown error in CreateMHTMLBody Richard Schaefer ASP General 2 11-10-2006 10:39 PM
CreateMHTMLBody throws Unknown Error =?Utf-8?B?UmljaGFyZCBTY2hhZWZlcg==?= ASP .Net 0 11-10-2006 05:37 PM
Browser link to local file works when local, not work when servedfrom http lurker HTML 1 04-05-2005 05:10 AM
CreateMHTMLBody Alan Morris ASP General 0 09-19-2004 09:35 PM
CreateMHTMLBody PROBLEM =?Utf-8?B?U2FtTkVU?= ASP .Net 0 01-26-2004 06:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57