Parallel error in pgsql version

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/13/2007 11:48:25 AM
Gravatar
Total Posts 488

Parallel error in pgsql version

Using pgsql version from svn.

When refreshing 2 pages in parallel after recompile (producing simultaneous requests), one of the requests fails with an unhandled exception:


--------------------------------------------------------------------------------
The operation is not allowed on non-connected sockets.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The operation is not allowed on non-connected sockets.

Source Error:


Line 116: throw new NpgsqlException(asyncConnectException.Message, asyncConnectException);
Line 117:
Line 118: Stream stream = new NetworkStream(socket, true);
Line 119:
Line 120:


Source File: F:\Billing\mojoPortal SVN\npgsql\NpgsqlClosedState.cs Line: 118

Stack Trace:


[IOException: The operation is not allowed on non-connected sockets.]
System.Net.Sockets.NetworkStream.InitNetworkStream(Socket socket, FileAccess Access) +1180123
System.Net.Sockets.NetworkStream..ctor(Socket socket, Boolean ownsSocket) +47
Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context) in F:\Billing\mojoPortal SVN\npgsql\NpgsqlClosedState.cs:118

[NpgsqlException: The operation is not allowed on non-connected sockets.]
mojoPortal.Web.Global.HandleException(Exception ex) in F:\Billing\mojoPortal SVN\Web\Global.asax.cs:351
mojoPortal.Web.Global.Application_Error(Object sender, EventArgs e) in F:\Billing\mojoPortal SVN\Web\Global.asax.cs:275
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.HttpApplication.RaiseOnError() +182


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
5/21/2007 3:52:06 PM
Gravatar
Total Posts 18439

Re: Parallel error in pgsql version

does the error continue if you keep refreshing both browsers or it just happens in this one scenario right after re-compile?

I will try to get the newest npgsql version sometime soon and maybe that will fix it.

5/23/2007 6:13:47 AM
Gravatar
Total Posts 18439

Re: Parallel error in pgsql version

Recompiling is just a good way to reproduce it. I am not sure it cannot happen in other cases.

Trying the latest version of npgsql is reasonable. If that will not help, I shall try to debug.

5/23/2007 6:23:45 AM
Gravatar
Total Posts 488

Re: Parallel error in pgsql version

That was me. Seems to be another bug?

What did I do:

1. Logged in and started writing the reply message (yesterday).

2. Today (about 20 hours passed) I just completed the message and clicked "send".

3. The result is: message from "Guest", I am not logged in.

P.S. There were some problems with my internet connection during that time, maybe that also influenced tthe situation.

5/29/2007 7:46:03 AM
Gravatar
Total Posts 488

Re: Parallel error in pgsql version

1. About the bug described in the last post - it's just for information as I cannot reproduce it.

2. Still waiting for the latest version of pgsql in mojoPortal svn.

5/31/2007 4:11:30 PM
Gravatar
Total Posts 18439

Re: Parallel error in pgsql version

I've updated to pgsql version 1.0, its now in svn branches/2.x.

Let me know if it solved the problem or not.

Thanks,

Joe

6/1/2007 3:14:55 AM
Gravatar
Total Posts 488

Re: Parallel error in pgsql version

You forgot to add the new project to the solution file in svn.

The new version seems to fix the problem. Thanks for the update.

You must sign in to post in the forums. This thread is closed to new posts.