windrobin / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 1 forks source link

Test_application does not work #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the test_application
2. Run the .exe file in debug folder
3. Nothing happen. Get the application has stop working message instead

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Windows 7. I have also recompiled the code in Visual Studio 2010 but the same 
problem exist.

Please provide any additional information below.

Original issue reported on code.google.com by eza...@gmail.com on 5 Dec 2011 at 2:06

GoogleCodeExporter commented 9 years ago
I can't reproduce this at all - the test_application v6 has been downloaded 
2239 times and this is the first case of anything like this at all. 

Did you unpack the files from the archive to a folder before running the exe? 

Can you check out the source code and compile that?

Also, which version of IE are you using?

Without more information I am a bit stuck as to know what the issue is here!

Thanks.

F

Original comment by fraser.c...@gmail.com on 5 Dec 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Yes, I have unpacked the file to a folder.

I can check the source code and it compiled successfully but when I run the
exe nothing happen and I got the message the test_application has stopped
working. I did look at the error message and it mentioned something about
jut-in-time debugger launched without permission. I have tried to run the
exe as administrator as well but still the problem persist.

IE 9.

On Mon, Dec 5, 2011 at 4:25 PM, <
winforms-geplugin-control-library@googlecode.com> wrote:

Original comment by eza...@gmail.com on 5 Dec 2011 at 5:04

GoogleCodeExporter commented 9 years ago
This is odd, can I ask - when you compiled successfully what happens if you run 
the debugger (press F5) and run it via visual studio rather than launching the 
exe?

Original comment by fraser.c...@gmail.com on 5 Dec 2011 at 2:23

GoogleCodeExporter commented 9 years ago
I got this error message

'A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll' occured at line 27 of form1.cs
(this.server.Start();)

On Tue, Dec 6, 2011 at 3:24 AM, <
winforms-geplugin-control-library@googlecode.com> wrote:

Original comment by eza...@gmail.com on 6 Dec 2011 at 10:09

GoogleCodeExporter commented 9 years ago
Ah ok, are you using the 32 or 64 bit version of Windows 7? 

In any case - I believe the issue is to do with how the socket is set up for 
the server. In windows 7 (and Vista) the generated IP address for the server 
can be both IPv4 and IPv6, however the server socket is exclusively IPv4. I 
think the issue is that on windows 7 in some cases it is trying to connect an 
IPv6 address with an IPv4 socket - throwing the SocketException.

If you open form1.cs, between line 26 and line 27 and add the following as 
shown.

this.server = new Server("webroot"); //26 
this.server.IPAddress = System.Net.IPAddress.Loopback; // new line
this.server.Start(); //27

Try running this, if it does not fix the issue then the only other option is to 
comment out line 27

////this.server.Start();

Unfortunately - this will mean that you can't use the local server in that 
version on windows 7.

NB - I do plan to put a new test application up very soon (next few days) and 
this issue is fixed in the latest revision of the code.

Failing that you could grab the latest dll and reference this into your own 
test project (note that the Server class is now the GEServer class) 
http://code.google.com/p/winforms-geplugin-control-library/source/browse/trunk/b
in/Release/FC.GEPluginCtrls.dll

Finally, you could check out the latest code and build it your self if you are 
feeling brave.
"svn checkout 
http://winforms-geplugin-control-library.googlecode.com/svn/trunk/ 
winforms-geplugin-control-library-read-only" 

Original comment by fraser.c...@gmail.com on 7 Dec 2011 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 7 Dec 2011 at 1:40