Click here to Skip to main content
13,352,157 members (78,528 online)
Rate this:
Please Sign up or sign in to vote.
i developed an application in c# and using mysql as back end. I have used ADODB for connecting to DB. I use DSN for communicating.

Now i have problem i have to install at my clients place where there are 3 machines interconnected (LAN). out of which 1 is XP, 1laptop with win7 and other Desktop with win7. Every thing working perfect on Laptop and XP machine but when i try to run Application on Desktop with win 7 it give following error. Actually i am able to connect to this desktop with win7 (this is working as server) from other two machines. Data is getting inserted properly. So i dont understand what is the problem with this server machine. I am getting following error message.

 System.Net.Sockets.SocketException: The system detected an invalid pointer address in attempting to use a pointer argument in a call
   at System.Net.Sockets.Socket.GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName)
   at System.Net.Sockets.NetworkStream.get_ReadTimeout()
   at MySql.Data.MySqlClient.TimedStream..ctor(Stream baseStream)
   at MySql.Data.MySqlClient.MySqlStream..ctor(Stream baseStream, Encoding encoding, Boolean compress)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at construction.clsConnect..ctor()
   at construction.frmNewSupplierEntryForm..ctor()
   at construction.frmMainMenu.supplierToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

************** Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the section.
The application must also be compiled with debugging

For example:
    < jitdebugging="true" />

When JIT debugging is enabled, any unhanded exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

It will be gr8 help if any one rectify my problem. I would like to mention here is that i have not at all used this "Socket" related code in the whole project. So please guide me. I am absolutely stuck up due to this problem.

Thanking you
Posted 7-Sep-12 21:19pm
Updated 7-Sep-12 21:37pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It's a defined error. This error occurs if an application passes an invalid pointer value, or if the length of the buffer is too small. For instance, if the length of an argument, which is a sockaddr structure, is smaller than the sizeof(sockaddr).

Refer: MSDN: Windows Sockets Error Codes [^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

thanks for ur reply
can u tell me the solution ... where should i make changes into my program...can u please tell me..
I have not used socket sort of thing any where in the whole project. So plz tel me
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 8 Sep 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100