While reading mail using imap timed out exception thrown

Properties props =new Properties();
// Properties props = System.getProperties();
props.setProperty("mail.imaps.socketFactory.class","javax.net.ssl.SSLSocketFactory");
props.setProperty("mail.imaps.socketFactory.fallback", "false");
props.setProperty("mail.imaps.port", "143");
props.setProperty("mail.imaps.socketFactory.port", "143");
props.setProperty("mail.imaps.ssl.enable","true");
props.setProperty("mail.imaps.connectiontimeout", "300000");
props.setProperty("mail.imaps.timeout", "900000");
props.setProperty("mail.imaps.connectiontimeout", "300000");
props.setProperty("mail.imaps.statuscachetimeout", "3000000");
props.setProperty("mail.imaps.connectionpooltimeout", "3000000");
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
store = session.getStore("imaps");
session.setDebug(true);
store.connect(popServer, popUser, popPassword);
// -- Try to get hold of the default folder --
folder = store.getDefaultFolder();
if (folder == null) throw new Exception("No default folder");
// -- ...and its INBOX --
folder = folder.getFolder("INBOX");
if (folder == null) throw new Exception(" sdfdfsd");
// -- Open the folder for read only --
folder.open(Folder.READ_ONLY);
// -- Get the message wrappers and process them --
Message[] msgs = folder.getMessages();
System.out.println("ava au.com.covermore.EmailReader"
+" msgs " + msgs.length);
for (int msgNum = 0; msgNum < msgs.length; msgNum++)
printMessage(msgs[msgNum]);
//processMessage(msgs[msgNum]);
nested exception is:
     java.net.ConnectException: Connection timed out: connect
     at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
     at javax.mail.Service.connect(Service.java:295)
     at javax.mail.Service.connect(Service.java:176)
     at MyMail.read111(MyMail.java:139)
     at MyMail.main(MyMail.java:50)
Caused by: java.net.ConnectException: Connection timed out: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(Unknown Source)
     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
     at java.net.PlainSocketImpl.connect(Unknown Source)
     at java.net.SocksSocketImpl.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
     at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
     at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
     at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:205)
     at com.sun.mail.iap.Protocol.<init>(Protocol.java:113)
     at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:110)
     at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:632)
     ... 4 more
Edited by: 831679 on Jan 27, 2011 2:35 AM

hi
i check all those.But my error still exists
I changed my code as follows
String host="dsds-excas.bs-ssssmanagement.com";
               String username="[email protected]";
               String password="sadsdsd";
               Properties props=new Properties();                         
               props.put("mail.imaps.timeout", "120000");               
               Session session = Session.getInstance(props);
     session.setDebug(true);     
     Store store = session.getStore("imaps");
     store.connect(host, username, password);
     System.out.println("Connected...");
     Folder inbox = store.getDefaultFolder().getFolder("INBOX");
     inbox.open(Folder.READ_ONLY);
     Message[] msg = inbox.getMessages();
     System.out.println(msg);
=============================================================
DEBUG: setDebug: JavaMail version 1.4.4
DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
DEBUG: mail.imap.statuscachetimeout: 1000
DEBUG: mail.imap.appendbuffersize: -1
DEBUG: mail.imap.minidletime: 10
DEBUG: trying to connect to host "dddddddddd.bs-sssssmanagement.com", port 993, isSSL true
javax.mail.MessagingException: Connection timed out: connect;
nested exception is:
     java.net.ConnectException: Connection timed out: connect
     at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
     at javax.mail.Service.connect(Service.java:295)
     at javax.mail.Service.connect(Service.java:176)
     at BsmMail.main(BsmMail.java:34)
Caused by: java.net.ConnectException: Connection timed out: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(Unknown Source)
     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
     at java.net.PlainSocketImpl.connect(Unknown Source)
     at java.net.SocksSocketImpl.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
     at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
     at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
     at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
     at com.sun.mail.iap.Protocol.<init>(Protocol.java:113)
     at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:110)
     at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:632)
     ... 3 more
================================================
Please help
Edited by: 831679 on Jan 28, 2011 2:29 AM
Edited by: 831679 on Jan 28, 2011 2:40 AM

Similar Messages

  • Authentication Failed Exception while reading mail using POP

    Hi,
    I am using POP3 for reading mails from mail id. When I try to read the mail from Microsoft Exchange server 2007, it is a success. But same code is giving "Authentication Failed Exception" with Microsoft Exchange server 2010.
    One more difference, I figured out. Microsoft Exchange server 2007 is having NTLM as LoginType and code works fine with it. Where as Microsoft Exchange server 2010 is having TLS as LoginType and code is giving "Authentication Failed Exception".
    Line of code which is giving exception is...
    store = session.getStore(providerPOP3);
    store.connect(host, user, password); //throws exception
    Please advice how this code can work with Microsoft Exchange server 2010 having TLS as LoginType.
    Regards,

    Thanks for your reply.
    Yes, I am using javamail 1.4.3. My code is working fine with Exchange server 2007 having NTLM.
    But when I changed the credentials as per mail id configured on Exchange Server 2010 having TLS support, it did not work. Can you please help what code change would be required to read mails from mail id configured on Exchage Server 2010 having TLS support.
    Sorry, if my point seems not understandable as I am as new with these terminologies (mail server and all) as baby with world. :)
    Thanks for supprt.

  • Read mail using java, and set the mail

    How can I read mail and set message "SEEN" with java? (javax.mail)
    IMAP supports flags; so there are no problems, just using
    msg.setFlag(Flags.Flag.SEEN, true);
    but,
    POP3 does not support flags; how can I solve this in POP3? I have searched for this problem, found that I can just check for the header "Status", but this header does not exsist. Then I tried to add this header, but again, then I got IllegalWriteException cause pop3-msg is writeprotected (yes: I opened the folder READ_WRITE); so; does anyone know how I can solve this problem?

    Hi !
    Could u plz send me the code u r having for reading mails using IMAP...actually v r trying to read mails from outlook but due to some security reasons our team has decided not to use pop3 ...
    Thanks in Advance
    sha

  • Is there a problem with Apple Mail using IMAP

    Is there a problem with Apple Mail using IMAP?  Having a problem syncing to our mail server: doesn't sync properly when multiple devices use same mail acct.  Spoken w/ mail hosting provider who says Apple Mail doesn't follow IMAP protocol properly leaving Apple Mail users to experience a variety of problems when connecting to IMAP accounts.  Among them:
    - Improper syncing
    - Proliferation of drafts during composition of an email.
    - Connections on the mail host do not close automatically and proliferate over time until the host rejects further connection requests.
    Hosting provider goes on to suggest turning off IDLE command.  In my experience turning this feature off did not improve the situation.  In fact, it created a few.
    Question: Is the hosting provider correct in faulting Apple Mail?
    Been fielding the question with a number of people.  I'm aware of three people who are experiencing similar problems, each using different mail hosts.  Tech reps at inmotionhosting.com and nexcess.com point the finger at a Apple Mail, along with an IT specialist in Los Angeles, CA, and a tech support rep at an Apple Store in Arizona who said that Apple and Google mail are aware of and coordinating to resolve the problem.
    Anyone out there have any insights into this?

    Is there a problem with Apple Mail using IMAP?  Having a problem syncing to our mail server: doesn't sync properly when multiple devices use same mail acct.  Spoken w/ mail hosting provider who says Apple Mail doesn't follow IMAP protocol properly leaving Apple Mail users to experience a variety of problems when connecting to IMAP accounts.  Among them:
    - Improper syncing
    - Proliferation of drafts during composition of an email.
    - Connections on the mail host do not close automatically and proliferate over time until the host rejects further connection requests.
    Hosting provider goes on to suggest turning off IDLE command.  In my experience turning this feature off did not improve the situation.  In fact, it created a few.
    Question: Is the hosting provider correct in faulting Apple Mail?
    Been fielding the question with a number of people.  I'm aware of three people who are experiencing similar problems, each using different mail hosts.  Tech reps at inmotionhosting.com and nexcess.com point the finger at a Apple Mail, along with an IT specialist in Los Angeles, CA, and a tech support rep at an Apple Store in Arizona who said that Apple and Google mail are aware of and coordinating to resolve the problem.
    Anyone out there have any insights into this?

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • How do I listen to music or radio while reading mail, etc?

    How do I listen to music or radio while reading mail,etc.?

    If you are using the Music App, or say, Pandora, all you do start a song or album and while you are listening, hit your home button once to go to your home page.  The music will cointinue playing and then you touch your mail icon and read mail.  The music will continue playing while you're reading mail.  Just remember to close the Music when you're finished.  To do so, double tap yourhome button and you'll the most recently used apps (task bar) on the bottom.  With your finger, hold it on any app until they all start to jiggle.  You'll see on the upper left side.  Touch the minus and the app will fully close.

  • Error -1074395975 occurred at IMAQ AVI Read Frame DirectX has timed out readin

    When i run the "Read AVI Example" on every kind of AVI file, I get the error:
    Error -1074395975 occurred at IMAQ AVI Read Frame DirectX has timed out reading or writing the AVI file. When closing an AVI file, try adding an additional delay. When reading an AVI file, try reducing CPU and disk load.

    The forums search gives two threads talking about this error:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=392042&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&requireLogin=False&thread.id=195832
    Did you allready had a look at them?

  • Timed out exception

    Hi all, I have been getting a timed out exception in my EJB layer when performing a query that will return 89,000 results.
    First, there is no issue with our Oracle database as the results are returned withing seconds when performed from the command line.
    Second, the query is a simple "select field from table where field like ?
    Third, I know that many people say "Well, just increase the JTA timeout value in the console." I agree that increasing the timeout value will make the error go away, however it does not seem to be curing the problem.
    Fourth, with rdbms debugging enabled, it appears that the persistence manager is calling the getConnection method and then timing out.
    What I find interesting is that a query of 16k rows comes back in about 5-6 seconds, but the full 89k takes about 4 minutes.
    Does anybody know what is going on in the EJB layer that is causing the query to take so long?
    Thanks.
    Steve

    Hi all, I have been getting a timed out exception in my EJB layer when performing a query that will return 89,000 results.
    First, there is no issue with our Oracle database as the results are returned withing seconds when performed from the command line.
    Second, the query is a simple "select field from table where field like ?
    Third, I know that many people say "Well, just increase the JTA timeout value in the console." I agree that increasing the timeout value will make the error go away, however it does not seem to be curing the problem.
    Fourth, with rdbms debugging enabled, it appears that the persistence manager is calling the getConnection method and then timing out.
    What I find interesting is that a query of 16k rows comes back in about 5-6 seconds, but the full 89k takes about 4 minutes.
    Does anybody know what is going on in the EJB layer that is causing the query to take so long?
    Thanks.
    Steve

  • Gmail: Mails sent to myself are marked as READ when using IMAP -how to fix?

    I just started using IMAP with my Gmail account and Apple Mail. But when I send an e-mail to myself (from my imap account to my imap account), the e-mail will of course go to my inbox but it will be marked as read.
    I don't have the option to "mark as unread" in either Apple Mail rules or Gmail filters, they both only have "mark as read".
    If I do it using Gmail webmail, then the e-mail is not marked as read, so I don't know if it's something Apple Mail is doing to my email? If I right-click it and "mark as unread", the message will be marked as unread both in my "inbox" and in my "sent mail". But I don't want to right click all my "to do mails" to make sure I see them.
    (I'm aware this is not the best workflow, but I like it..)

    Alas, I'm still having problems with Gmail. Now what happens is that I'm getting the "caution" triangle next to the account which indicates a problem. The error message when I click on that triangle is: "Unable to Connect There may be a problem with the mail server or network. Check the settings for account “Gmail” or try again. The server error encountered was: The connection to the server “imap.gmail.com” on port 587 timed out."
    Also, something else is strange. When I look in the account settings window, my password is not there. It's blank. So I enter it. A few minutes later, when I check, my password is again no longer there.
    Regarding your suggestions to move the mail folder, I really don't want to do that because I have about 20 mailboxes full of important saved messages. I can't afford to lose those. Surely there must be some other way?
    Leopard is the worst OS upgrade in Apple's history, IMO. It's caused more problems for me than I could have imagined.

  • Getting exceptions while sending mail using javamail api

    Hi to all
    I am developing an application of sending a mail using JavaMail api. My program is below:
    quote:
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class sms
    public static void main(String args[])
    try
    String strstrsmtserver="smtp.bol.net.in";
    String strto="[email protected]";
    String strfrom="[email protected]";
    String strsubject="Hello";
    String bodytext="This is my first java mail program";
    sms s=new sms();
    s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);
    catch(Exception e)
    System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
    System.exit(0);
    public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
    try
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties p=new Properties(System.getProperties());
    if(strsmtpserver!=null)
    p.put("mail.transport.protocol","smtp");
    p.put("mail.smtp.host","[email protected]");
    p.put("mail.smtp.port","25");
    Session session=Session.getDefaultInstance(p);
    Message msg=new MimeMessage(session);
    Transport trans = session.getTransport("smtp");
    trans.connect("smtp.bol.net.in","[email protected]","1234563757");
    msg.setFrom(new InternetAddress(strfrom));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));
    msg.setSubject(strsubject);
    msg.setText(bodytext);
    msg.setHeader("X-Mailer","mtnlmail");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch(Exception ex)
    System.out.println("here is error");
    ex.printStackTrace();
    It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.
    exceptions are:
    Here is exception
    quote:
    Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
    Nested exception is :
    Java.net.ConnectException:Connection refused: connect
    At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
    At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
    At javax.mail.Service .connect(Service.java:236>
    At javax.mail.Service.connect<Service.java:137>
    At sms.send<sms.java:77>
    At sms.main<sms.java:24>

    Did you find the JavaMail FAQ?
    You should talk to your ISP to get the details for connecting to your server.
    In this case I suspect your server wants you to make the connection on the
    secure port. The FAQ has examples of how to do this for GMail and Yahoo
    mail, which work similarly. By changing the host name, these same examples
    will likely work for you.

  • Getting Timed out exception while calling a web service

    Hi,
    when i am invoking a web service(using routing), the osb proxy is getting timed out before receiving the response from routed service.
    Also we are not aware of how much response time the routed service will take. so apart from increasing the connection time is there any alternate solution?
    can any one suggest.

    I do not think there is any other way apart from increasing timeouts to call a web service from OSB synchronously which is taking a long time.
    Other alternatives are either to make the service asynchronous delyed request response type, which will mean a change at the backend webservice.
    Ideally synchronous web services are designed to respond within a few seconds and not take minutes for processing. I would say that if the backend web service is taking more than a minute then they need to either tune their service performance better so it responds faster OR change it to an asynchronous service.

  • IMAP - "Timed out"

    Every since switching to Leopard (10.5) Mail 3.0 has been messed up. It keeps timing out on the IMAP accounts over and over again. Sometimes it goes through, sometimes all 8 of my accounts (same server) get the message:
    "There may be a problem with the mail server or network. Check the settings for "ACOUNT" or try again. The server error was: The connection to the server "mail.domain.com" on port 143 timed out."
    I would like to believe it is the server but since it worked perfectly before the Leopard upgrade, I am not so sure. Also, another friend, same server with 10.5 has the same issue.
    I have tried:
    - Limiting to only one account (didn't work)
    - Turning on and off IDLE support (didn't work)
    - Changing settings for when to check (didn't work)
    Any help would be great, I am at my wits end.
    BZ

    I've not used "Mail" for a year or so as it constantly popped up un-asked. I switched to Eudora and have been fine with that till I bought a new iMac and Leopard. I thought Apple might have gotten the problem fixed with this new version and tried using it. With this computer I can't receive mail as the port times out but can send OK. I can get that same mail either on Comcast's web mail, or Eudora in my other computer just fine. Comcast is no help as they don't support Mac. I thought I'd isolate the problem and re-installed a new copy of Eudora on this new computer and set it up. It both sends and receives just fine so it's not a problem with Comcast, the computer, or Eudora. Seems like it pretty much has to be with "Mail" itself.

  • Error while reading mail from inbox

    hi,
    i have created a mail program which downloads mails from the ISP. In this program i am storing the message object in a List object and send it to another class for it to continue the download process. but i am getting this error.
    javax.mail.MessagingException: Open failed;
    nested exception is:
         java.io.EOFException: Unable to lock mailbox
    i am giving the code below.
    Message mNew[]=null;
    Message m=null;
    Store store=null;
    Folder folder=null;
    do
          // this loop checks if the email connection is available
          // if not it tries to get the email connection by calling
          // the getEmailConnection
          if(!isEmailConnected)
            isEmailConnected=ecm.getEmailConnection(hostname,username,password);
          else if(isEmailConnected)
            this.store=ecm.store;
            try
              folder = store.getFolder("INBOX");
              folder.open(Folder.READ_WRITE);
              m=folder.getMessages();
                for(int i=0;i<m.length;i++)
    //              This checks if the inbox folder
    //                is of POP3 type. if it is of POP3
    //                type we get all the messages Unique Identifiers
                  if(folder instanceof com.sun.mail.pop3.POP3Folder)
                    com.sun.mail.pop3.POP3Folder pop3=(com.sun.mail.pop3.POP3Folder)folder;
                    uid=pop3.getUID(m);
    // if the list contains the unique identifier
    // then no process is executed otherwise
    // the unique ids are maintained in the list
    // called pop3List.
    if(pop3List.contains(uid))
    else
    mNew[newCount]=m[i];
    pop3List.add(uid);
    newCount++;
    * This adds the new incoming email List of addresses to the method newEmailRecieved
    * which is iin another class.
    listener.newEmailRecieved(m);
    folder.close(true);
    catch(Exception ex){System.out.println("Error Occured"+ex);}
    while(true);

    hi,
    to continue with my post, i am using POP3 provider to get the messages. any help is appreciated
    regards
    Kiran

  • Question?  while e-mailing my page skips out of view - have to scroll back -    new mouse did not help ?????? was told to buy new mouse -

    Question:  While e-mailing, without warning,  my page skips out of view - have to scroll back to view it and  continue to type - was advised to buy new mouse - duh!  same problem occurs!  HELP!

    Coould you be hitting a return key while typing?  Or one of the F keys? What is the mail program you are using?

  • Error while sending mail using script task in ssis 2008

    Hi,
        i am trying to send mail using ssis 2008 script task.for my requirement i am not able to use send mail task.
    code i have used is
    declared read only variables system::packagename
     Dim PACKAGE As String
            PACKAGE = Dts.Variables("System::PackageName").Value.ToString()
            Dim myHtmlMessage As MailMessage
            Dim mySmtpClient As SmtpClient
            myHtmlMessage = New MailMessage("[email protected]", "[email protected]", "PACKAGE STATUS", PACKAGE + "WAS FAILED")
         mySmtpClient = New SmtpClient("smtp.gmail.com")
            mySmtpClient.Credentials = New NetworkCredential("[email protected]", "mypassword")
            mySmtpClient.EnableSsl = True
            mySmtpClient.Port = 587
            mySmtpClient.Send(myHtmlMessage)
    error i am getting is
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1
    Authentication Required. Learn more at
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, 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)
       at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    can any one tell me where i am going wrong

    also getting error as follows
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1
    Authentication Required. Learn more at
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, 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)
       at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

Maybe you are looking for

  • Header and Footer Resize Issues

    When I create a Header and Footer look in adobe edge I go to resize the width of the page and the header images and texts resize fine but the images and text in the Footer area do not resize and they end up moving all around the screen.

  • Lumia 620 Video Recording Issues

    I recorded this video today (link below) with my 620 and it came out horrible. I thought it might have been the shakiness of my filming but I even tried recording a steady pan of my living room afterwards and the video and audio were still choppy. An

  • FBA Login

    Hi, I have a custom Sign In form for external users using FBA. I need to update the last login details in user list when user login with FBA(custom sign In form) Could you please suggest me that how I can update the list information when user login w

  • BILL_OF_LADING value through Ship Confirm API

    Hi All, To programmaticlaly Ship confirming a delivery, I am using WSH_DELIVERIES_PUB.DELIVERY_ACTION and passing parameter as p_sc_create_bol_flag='Y'. Instead of this, I have to take BILL_OF_LADING information from another system and pass that valu

  • Super-rip high bit-rate with x

    hi everyone, i was wondering if anybody with the x-fi notice the high bit rate. mine is that high it will not play on a cd player in .wma or .wav, with or without cmss3d, i found that the bit rate i get without cmss3d it's around about 2200bp/s. when