Getting New type of Remoting Exception -
10-04-2006
, 01:36 PM
Hi for all,
For the past 1 week i am getting this error.
[SocketException (0x2746): An existing connection was forcibly closed by the
remote ost]
System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData,
Int32 type) +877
Employee.Listutil.listCompanies(String pstrAdminUserId) in
e:\Mysite\bizanddal\listutil\listutil.cs:60
Employee.listadminusers.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\Mysite\listadminusers.aspx.cs:7 2
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
My Code which is getting error
Line 58: public DataSet listCompanies(string pstrAdminUserId)
Line 59: {
Line 60: SqlConnection objConn=GetConnection();
Line 61: DataSet objlistCompaniesDs=new DataSet();
Line 62:
The Exception details is
Exception Details: System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host
I am using tcp channel and port 80 for remoting.
When i developed this project its working well.
I developed this project with windows XP.
But when we send this project to our client its throwing error like this.
Our client is using windows2003 server enterprise edition.
From my UI layer i am calling nearly 30 methods in my Datalayer.
FYR:Above code.
In which nearly 25 methods are running without anyproblem but 26 th method
is throwing exception like this.
I moved that method to an seperate file
After that also its throwing exception.
I am opening a connection inside this method and close before the end of
this method.
My main doubt is why its running in our company but why its not running in
our client configurations.
I want an urgent help for ths.
If anyne help for this then its greatfull for me
thanx |