Deploying an application that uses System.Web.Mail.SmtpMail

R

RMG

System.Web.Mail.SmtpMail appears to rely upon CDO. Such
code therefore works fine on my development box which has
Outlook 200 installed. But when the application is
deployed to the production server (running W2K Server) the
code fails. Do I have to install Outlook or an Exchange
client on the production box? Or can CDO be deployed
separately? And shouldn't .net indicate this depandancy
during complilation of the deployment project? Many thanks.
 
M

MSFT

Hello,

From the description, your application with SMTPMail worked well on you
development computer but failed on a Windows 2000 computer. In fact,
System.Web.Mail.SmtpMail use the Collaboration Data Objects for Windows
2000 (CDOSYS) message component. For more information on this components:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/exchanchor/
htms/msexchsvr_cdowin2000.asp?frame=true

Regarding the problem, I think it is not necessary to insatll Outlook on
the server. You may check if this component installed well on the server
and if your application has enough permission to use it. For example, an
administrator permission.

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top