473,473 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CDO Message Object ERROR

dwa
We're trying to use the CDO Message object to send an SMTP message with
..NET. Testing the code on a machine with FAT32 file system, everything
works fine. Running under XP or Win2K with NTFS, we receive a message to
the effect: "Unable to access CDO.Message object".

This would seem to be some kind of permissions problem - the same code works
just fine if dropped into a console app. Has anyone solved this problem
before?

Thanks in advance for your input....

-- da
Nov 17 '05 #1
4 1829
A few things to check:

1) Make sure that the ASPNET account has read access to the CDO Library
(usually CDOSYS.DLL in the System32 directory).
2) Make sure that the ASPNET account has update access to the
c:\inetpub\mailroot directory and its subs.

If either one of these isn't done, you will get the unable to access error.

Jeff

"dwa" <da****@oriondevel.com> wrote in message
news:uc****************@TK2MSFTNGP11.phx.gbl...
We're trying to use the CDO Message object to send an SMTP message with
.NET. Testing the code on a machine with FAT32 file system, everything
works fine. Running under XP or Win2K with NTFS, we receive a message to
the effect: "Unable to access CDO.Message object".

This would seem to be some kind of permissions problem - the same code works just fine if dropped into a console app. Has anyone solved this problem
before?

Thanks in advance for your input....

-- da

Nov 17 '05 #2
dwa
Jeff,

Thanks for your reply. This sounded too reasonable to be
true. Unfortunately it doesn't to make any difference.

I Gave *all* users (including ASP.NET) complete
permissions to the CDO files and *all* users complete
permissions to the mailroot and subs - but still get the
error message.

I think maybe it's time to write my own SMTP mail class!

Maybe I have to give complete permissions on all of
system32 to ASP.NET? Any other thoughts?

Thanks,

-- dwa
-----Original Message-----
A few things to check:

1) Make sure that the ASPNET account has read access to the CDO Library(usually CDOSYS.DLL in the System32 directory).
2) Make sure that the ASPNET account has update access to thec:\inetpub\mailroot directory and its subs.

If either one of these isn't done, you will get the unable to access error.
Jeff

"dwa" <da****@oriondevel.com> wrote in message
news:uc****************@TK2MSFTNGP11.phx.gbl...
We're trying to use the CDO Message object to send an SMTP message with .NET. Testing the code on a machine with FAT32 file system, everything works fine. Running under XP or Win2K with NTFS, we receive a message to the effect: "Unable to access CDO.Message object".

This would seem to be some kind of permissions problem - the same code
works
just fine if dropped into a console app. Has anyone

solved this problem before?

Thanks in advance for your input....

-- da

.

Nov 17 '05 #3
Hi Dwa,

Based on my research and experience, I agree with you that it should be a
permission issue since the same code works fine in the console application.

Please try to impersonate the same User account of the console application
for All the Requests of an ASP.NET Application. Please refer to the
following article for the detailed information.

INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/default...b;en-us;306158

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #4
You can make the aspnet account an administrator temporarily. If that fixes
the problem, you then know it is access related; you just have to figure out
where the error is.

One other thing to check is the version of CDO installed on the system. I
remember having a similiar problem and tracked it back to the system having
an old version of CDO installed (on purpose, as it turned out).

Jeff

"dwa" <da****@oriondevel.com> wrote in message
news:04****************************@phx.gbl...
Jeff,

Thanks for your reply. This sounded too reasonable to be
true. Unfortunately it doesn't to make any difference.

I Gave *all* users (including ASP.NET) complete
permissions to the CDO files and *all* users complete
permissions to the mailroot and subs - but still get the
error message.

I think maybe it's time to write my own SMTP mail class!

Maybe I have to give complete permissions on all of
system32 to ASP.NET? Any other thoughts?

Thanks,

-- dwa
-----Original Message-----
A few things to check:

1) Make sure that the ASPNET account has read access to

the CDO Library
(usually CDOSYS.DLL in the System32 directory).
2) Make sure that the ASPNET account has update access to

the
c:\inetpub\mailroot directory and its subs.

If either one of these isn't done, you will get the

unable to access error.

Jeff

"dwa" <da****@oriondevel.com> wrote in message
news:uc****************@TK2MSFTNGP11.phx.gbl...
We're trying to use the CDO Message object to send an SMTP message with .NET. Testing the code on a machine with FAT32 file system, everything works fine. Running under XP or Win2K with NTFS, we receive a message to the effect: "Unable to access CDO.Message object".

This would seem to be some kind of permissions problem - the same code
works
just fine if dropped into a console app. Has anyone

solved this problem before?

Thanks in advance for your input....

-- da

.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: dmiller23462 | last post by:
My brain is nuked....Can anybody tell me right off the bat what is wrong with this code? Along with any glaring errors, please let me know the syntax to display a message (Response.Write would be...
1
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
4
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
2
by: Desmond | last post by:
Hi, I would really appreciate if somebody could give some advise on this. I've a ASP.NET application that is supposed to send emails and it is tested to be working well on IIS 5.0 and tested...
1
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). ...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
1
by: Michael | last post by:
Hello, I've read a lot of threads on this subject, but they typically go back to a problem with the smtp server configuration. In my case, everything works great until I uncomment the one line...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
7
by: teddarr | last post by:
I have an assignment I've been working on for a few days now. I need some help with the last detail. The program is supposed to create 5 objects with varying floating-point parameter lists. The...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.