.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Error on sending Outlook emails

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
Hi,I am trying to send an email using Outlook in my application. When I run the application in my local machine , it works fine and sends the email using my outlook address. But when I depolyed it onto our server, which is a  Windows Server 2008, it throws an error:Description:            Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.Date/ time:            20100908_03:51:48FullErrorOutput:            System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.   at _Default.SendWelcomeEmails(String email)   at _Default.btnGrant_Command(Object sender, CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)   a

View Complete Post

More Related Resource Links

Error While sending Email using Outlook object in asp.net 4.0


Hi ,

            I am trying to send Email using Outlook object but  it gives following error :

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

I have added outlook reference "using Microsoft.Office.Interop.Outlook"  version

and i am using below code :

Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
            Microsoft.Office.Interop.Outlook._NameSpace oNameSpace = oApp.GetNamespace("MAPI");
            Microsoft.Office.Interop.Outlook.MAPIFolder oOutboxFolder =
            oNameSpace.Logon(null, null, false, false);
            Microsoft.Office.Interop.Outlook._MailItem oMailItem =

"Read Only" Access Error when checking in documents from outlook



We are accessing our sharepoint services 3.0 document library through outlook 2007.

We can open the files in word/excel etc, but when we go to check-in the document the application tells us that we only have read access to the document, and cant check the document back in to the server.

It works fine via the browser, the read only problem is only when checking out through outlook.

I have given all users full access and design access to the doc library.

Any help would be greatly appreciated.






smtp server 5.1 in xp not sending emails


hi iam using asp.net 2.0 with c#.net.

in my application when client completes its shopping email will goes to user this works fine when there is internet connection is working fine,
if  there is some problem  in internet connection if one mail stops then all the mails will be stopped even now internet works fine,

how to resend the emails using smtp server, is there any option to resend the emails automatically when internet works fine.

can you give example which helps me.

Sending more than 20 attachments with MAPI in Outlook

Dear All,   I am using MAPI to attach files to a new Outlook email (or any other default email program). It seems that with this method I cannot attach more than 20 files ! Anybody would know why ?   Thanks,   Kalos             <DllImport("MAPI32.DLL" )> _         Private  Shared  Function  MAPISendMail(ByVal  sess As  IntPtr, ByVal  hwnd As  IntPtr, ByVal  message As  MapiMessage, ByVal  flg As  Integer , ByVal  rsv As  Integer ) As  Integer         End  Function         Private  Function  SendMail(ByVal  strSubject As  String , ByVal  strBody As  String , ByVal  how As  Integer ) As  Integer             Dim  msg As  MapiMessage = New  MapiMessage()             msg.subject = strSubject             msg.noteText = strBody          &nb

SharePoint 2010 RSS Feed and Outlook Error

When I added an RSS feed from SharePoint 2010 it showed up in IE just fine. When attempting to add the RSS feed whithin outlook, i recieved this error "outlook cannot process the content from http://****.com (the web site) the link may not point to a valid source" Any thoughts?

trust outlook 2003 application object when sending email c#

i am using outlook 2003 to send email but this outlook version always not trust application option so that before send email, always prompt a security dialog box to ask me to send email or not. how can i trust all outlook application object using vs 2008 or set in outlook 2003 anyone help

Failure sending mail error in asp.net

Hi I have used gmail for sending mail localy which worked fine but when i uploaded the same file on server the "Failure sending mail." error occured.here is the code i have written:            Dim message As New MailMessage            message.From = New MailAddress("xxx@gmail.com")            message.To.Add(New MailAddress("xxx@yahoo.com"))            message.Subject = test mail""            message.Body = "Hi you have got a test mail from me!            Dim client As New SmtpClient            client.Credentials = New System.Net.NetworkCredential("xxx@gmail.com", "xxxxxxx")            client.Port = 587            client.Host = "smtp.gmail.com"            client.EnableSsl = True            client.Send(message)Pl

Sending Asynchronous emails from Asp.Net Web pages

Hey Guys, Here is my situation and hopefully someone could guide me in the right direction. I have a shared or static class in my website (App_Code folder) which has static methods to send emails asychronoulsy. So whenever there is an exception in any of my pages or classes I call these methods to send an email to support asynchronously. Now when there is an exception in a page, to route that exception asynchronously I need to have Async = "true" for that page. I have more than 50 pages and I don't want to set Async= "true" on every page as I read that it affects performance. So I was wondering if there is any way I could send emails asynchronously without having to set async = "true" on every page. Thanks for your time,   Uday.    

Error while sending email using ASP.NET 2.0 Beta 2 (Visual Studio 2005 Beta 2)

While trying to send email using<code> SmtpClient obj_SmtpClient = new SmtpClient(); obj_SmtpClient.Host = ""t; obj_SmtpClient.Send(s_from, s_recipients, s_subject, s_body);</code>I get the error message:Failure sending mail. Unable to connect to the remote server An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) SystemSMTP is installed on my Windows XP Sp2 laptop. I have also tried disabling the Windows firewall but still the same error. The SMTP server is a Microsoft Exchange Server that is part of the same domain as myself. I was logged on to the domain while running the email code.There is an excellant article on ORCS web by BradKingley (http://www.orcsweb.com/articles/sending_smtp_authenticated_email.aspx) on sending authenticated email using username/password, however what I need is how to authenticate in a purely Microsoft environment. Any suggestions as to how to fix this problem, gratefully accepted.

SharePoint upload files from windows explorer and emails from outlook by drag and drop

Guys, I need to have this functionality to upload files and mails by drag and drop, now sharepoint allows it by having that folderview in IFrame which takes the dropped item, but this does not allow files with spcial characters due to http URL related issue. How can I customize or program this to allow files with special chars in name, if not possible then how can I rename before the drop is over ? thanks, ram    

sending bulk of emails


Hello guys

   I have a situation where i have to send around 50,000 emails with around 90kb attachment, each attachment will be generated by crystal reports then sent by email to the subscriber, what is the best practice for this? thanks alot

mail sending error


I am getting the following error while trying to send email using System.Net.Mail

Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821

i have tried the basic mail sending method but it gives the above error. pls find belwo code used

SmtpClient SmtpServer = new SmtpClient("");
        SmtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
        System.Net.Mail.MailMessage Mailer = new System.Net.Mail.MailMessage();

                    SmtpClient smtpClient = new SmtpClient();                 
                    Mailer.From = new MailAddress("");
                    Mailer.Subject = "";

Error while sending email using ASP.NET 2.0 -'System.Net.Mail.SmtpException: Failure sending mail


'System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)   at System.Net.Mail.SmtpReplyReader.ReadLine()   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)   at System.Net.Mail.SmtpClient.Send(MailMessage message)   --- End of inner exception stack trace ---   at System.Net.Mail.SmtpClient.Send(MailMessage message) 

 i tried many things but still awaiting solution



sometimes  i get this error

 'System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.mail.y

geving error while downloding addressbook on outlook.



i m using exchange server 2010 & 2010 office client, while i m clicking on download address bok tab it gives below error message.

The operation failed. an object cannot be found. any suggition for this issue...


Thanks in advance

Getting error after sending E-Mail (ASP.NET)


Hi, everyone!

I have a function in my asp.net page and whenever it is called it is giving me an error :(

"A page can have only one server Form tag" 

It doesn't happen when the page is loaded. only after a button is clicked.

The code is:

void send(object sender, EventArgs e){

   StringBuilder sb=new StringBuilder();

   StringWriter sw= new StringWriter(sb);

   HtmlTextWriter ht=new HtmlTextWriter(sw);


   string bodyMessage=sb.ToString();

   string subject="Testing";

   string emailTo="wjung@xxxx.net";

   string emailFrom="wjung@xxxx.net";

   try { objUtilities.SendEmail(subject,bodyMessage,emailTo,emailFrom); }

   catch (Exception ex) { label1.Text+=ex.ToString();}


I can send and receive E-Mail. but the page shows error.

Please help me, and since I am a newbie to ASP.NET please

instruct me step by step. Thank you!


error sending SOAP data to http://localhost/myWCFService/MyWCFService.svc


I am a beginner with WCF services, trying to learn. I created a WCF service where MyWCFServiceInterface has service and data contracts. MyWCFService class implements this interface and has two methods that connect to sqlServer DB to run Sprocs to fetch data. I am hosting this WCFService using IIS6.0. I created a webclient to test the service, which works fine. When I call the service using soap request I get the following error: Could not POST file MyWCFService/MyWCFService.svc on server localhost(415). error sending SOAP data to http://localhost/MyWCFService/MyWCFService.svc


Please check the following wsdl and the soap request and suggest corrections. I greatly appreciate your help. Thanks.



<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap12=&q

Sending Digitally Signed emails using C#

Hi All,

    I have a requirement of sending a digitally signed email using C#,ASP.net. I tried it several ways and atlast using ASPEmail and ASPEncrypt i was able to access certificate but iam getting the mail address as the name of the certificate holder. Iam unable to find how to read the email address from the certificate. Any support will be appreciated. Thanks in advance.
phani kumar ---help me out
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend