Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > server.createobject("cdo.message") from asp is giving error Server.CreateObject Failed

Reply
Thread Tools

server.createobject("cdo.message") from asp is giving error Server.CreateObject Failed

 
 
ashish
Guest
Posts: n/a
 
      08-14-2007
Dim oCon
Err.Clear
Set oCon = Server.CreateObject("ADODB.Connection")

If Err.Number = 0 Then

'//
'// Open an ADODB.Connection to the folder URL
'//
oCon.Provider = "ExOLEDB.DataSource"
Err.Clear
oCon.Open strFolderURL

If Err.Number = 0 Then

'//
'// Create CDO.Message object
'//
Dim oMsg
Err.Clear
Response.Write "<br> Open Success =" & strMsgURL & "<br>"
Set oMsg = Server.CreateObject("CDO.Message")

 
Reply With Quote
 
 
 
 
ashish
Guest
Posts: n/a
 
      08-14-2007
On Aug 14, 5:57 pm, ashish <(E-Mail Removed)> wrote:
> Dim oCon
> Err.Clear
> Set oCon = Server.CreateObject("ADODB.Connection")
>
> If Err.Number = 0 Then
>
> '//
> '// Open an ADODB.Connection to the folder URL
> '//
> oCon.Provider = "ExOLEDB.DataSource"
> Err.Clear
> oCon.Open strFolderURL
>
> If Err.Number = 0 Then
>
> '//
> '// Create CDO.Message object
> '//
> Dim oMsg
> Err.Clear
> Response.Write "<br> Open Success =" & strMsgURL & "<br>"
> Set oMsg = Server.CreateObject("CDO.Message")


Addition to above asp code,

I got 0x80040E19 error from Server.CreateObject("CDO.Message"). It
works for other exchange site, but have one site where it returns this
error

FYI, The system is Exchange 2003 SP2 with Windows 2003 SP2.

Is there any permission that i need to aware of?

I appreciate your response.

 
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
code seems not executing: giving request failed CreativeMind ASP .Net 2 04-27-2010 09:43 AM
The giving that keeps on giving sixteenmillion C Programming 0 11-19-2007 10:59 PM
ASP.NET 2.0 in IIS is giving me error. washoetech ASP .Net 5 10-10-2005 10:07 AM
HttpWebRequest is giving: "Error on HTTP request: The remote server returned an error: (403) Forbidden." edsuslen@yahoo.com ASP .Net 2 09-27-2005 12:17 PM
<asp:Image control giving an invalid cast specified error Dave Moore ASP .Net Web Controls 1 12-14-2003 10:27 PM



Advertisments