1
Vote

Running Echo Service

description

Hi,

When I follow the steps in the documentation (for Echo Service), or when I compile the project in 'QuickStart' folder in the download, I get the error message 'Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for socketServer: Request failed.

---> System.Security.SecurityException: Request failed.

This is in Visual Studio 2010.

file attachments

comments

Watcha wrote Jun 22, 2011 at 5:36 PM

Attached screenshot of error.

kerryjiang wrote Jun 23, 2011 at 2:18 AM

Another man reported the same issue to me, it might be caused by some security issues of your OS.
Are you using Win 7 or Win Vista?

Watcha wrote Jun 23, 2011 at 8:25 AM

Hey Kerry,

Thanks for the quick reply. I'm using Windows 7. I tried to run as administrator but that didn't work either.

I also googled the error, and there's quite a few posts suggesting it may be to do with the .NET framework version that the app is built for. I double checked that I was using .NET 4.0 in every project.

kerryjiang wrote Jun 23, 2011 at 9:07 AM

Your windows 7 show the app.config "blocked"?
Unblocking it should can fix this issue. Another user of SuperSocket fixed the same issue by this way!

Watcha wrote Jun 25, 2011 at 4:47 PM

Hi,

The app.config is not blocked (I'm not sure which one you mean either - but none of them are blocked).

Watcha wrote Jun 29, 2011 at 4:31 PM

I have just tested this on Windows Server 2003 and got exactly the same issue.

Perhaps I am missing some important step in the process? Here is how to reproduce the issue:

1 - Download the 1.4 beta zip
2 - Extract anywhere
3 - Open the QuickStart/QuickStart Solution
4 - Build solution
5 - Run QuickStart/EchoService/Bin/Debug/RunServer.Bat
6 - Press enter to start server
7 - Error

kerryjiang wrote Jun 30, 2011 at 2:30 AM

Could you try copy the downloaded zip file to other location and then unzip it?

Watcha wrote Jul 18, 2011 at 10:28 AM

Hi,

I tried copying all the files to another location, no change.

Is there any way you could email me a sample project which I can simply load into Visual Studio and run, and it runs the echo service in a command line?

Many thanks

kerryjiang wrote Jul 18, 2011 at 3:12 PM

It is sure an environment issue, and could you try on another computer?
Or check the anti-virus software running on your OS.

It must not be a code problem.

Watcha wrote Jul 18, 2011 at 10:12 PM

Watcha wrote Jun 29 at 5:31 PM
I have just tested this on Windows Server 2003 and got exactly the same issue.

I have tried it on two separate Windows 7 computers and a dedicated Windows Server 2003 machine, all produce the same error.

Perhaps the problem is that I'm using the free version of Visual Studio (Web Developer Express, Visual C Express)??

What operating system / Visual Studio version do you run it on?

kerryjiang wrote Jul 19, 2011 at 2:20 AM

I am using Windows XP/Windows Server 2008 R2 and VS2010.
Please verify your generated SuperSocket.SocketService.exe.config is correct.
You'd better try with VS2010.

kerryjiang wrote Jul 19, 2011 at 2:21 AM

If you want to try free tools, Mono 2.10 and MonoDeveloper also is ok.

jmacentee wrote Oct 12, 2011 at 3:52 PM

I just found & fixed the same error using your suggestion. Windows 7 64 bit. Compile QuickStart\EchoService. On first run: System.Security.SecurityException. Right click on QuickStart\EchoService\bin\Debug\SuperSocket.SocketService.exe.config select "Properties". Click "Unblock". Run RunServer.bat again.

kerryjiang wrote Oct 12, 2011 at 4:19 PM

Thanks for your tip!

jmacentee wrote Oct 12, 2011 at 5:11 PM

You are welcome. Thank you for the great application framework & all these examples!