Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : .NET : ASP.NET : Getting IOException Signup · Login
Author Thread
Getting IOException
Posted in tutorial: Connecting to Mailbox on Gmail and Fetching List of Emails using POP3 and ASP.NET
·  astrovirgin
User
Joined: 8 Aug 2009
Total Posts: 2

Getting IOException

Posted: 11 Aug 2009
Hi,
I am getting an exception when I run the application. The details of the eception is given below...

System.IO.IOException was unhandled by user code
Message="Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
Source="System"
StackTrace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.StreamReader.ReadBuffer()
at System.IO.StreamReader.ReadLine()
at Pop3.Pop3Client.ReadLine() in c:\Documents and Settings\abhinav.RIPL\My Documents\Visual Studio 2005\WebSites\WebSite4\App_Code\Pop3.cs:line 233
at Pop3.Pop3Client.SendCommand(String cmdtext) in c:\Documents and Settings\abhinav.RIPL\My Documents\Visual Studio 2005\WebSites\WebSite4\App_Code\Pop3.cs:line 228
at Pop3.Pop3Client.FetchEmail(Int32 emailId) in c:\Documents and Settings\abhinav.RIPL\My Documents\Visual Studio 2005\WebSites\WebSite4\App_Code\Pop3.cs:line 143
at Pop3.Pop3Client.FetchEmailList(Int32 start, Int32 count) in c:\Documents and Settings\abhinav.RIPL\My Documents\Visual Studio 2005\WebSites\WebSite4\App_Code\Pop3.cs:line 155
at ASP.pop3client_aspx.Page_Load(Object source, EventArgs e) in c:\Documents and Settings\abhinav.RIPL\My Documents\Visual Studio 2005\WebSites\WebSite4\Pop3Client.aspx:line 44
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



It was working very fine some time before but when I delete some messages from my mail box it start giving error.

Please help me.....
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 595
Looks like a network related error to me
Posted: 18 Aug 2009
It looks like a network related error to me. I am not sure if this has anything to do with the software.

If you manage to solve this or come to know why you got this error in the first place, please post what you learned, here, so that other users can benefit from it.

Faisal Khan.
Stardeveloper.com
Read Blog | Follow on Facebook, Twitter
Want to leave a comment? Login or Register for free!

Users Subscribed To This Thread
Faisal Khan   astrovirgin  

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.