Forget OpenSSL.... use MakeCert.exe from VS it is much better for windows uses.
Use this input to makecert, so that it create certificate that you import in cert store. Then you import it into trusted root cert store. And voila you have cert for testing your printer drivers.
makecert -r -pe -n "CN=XYZ Company" -sky exchange -ss my certname.cer
Friday, June 8, 2007
Thursday, June 7, 2007
Problems, just keep on coming
Problem:
EventType clr20r3, P1 kimofflinetoonline.exe, P2 0.6.0.1012, P3 464b389a, P4 kimofflinetoonline, P5 0.6.0.1012, P6 464b389a, P7 10, P8 1ab, P9 system.io.ioexception, P10 NIL.
Solution:
1. Enlarge socket timeout size both on receiving and sending side (if that do not solve problem, then use 2.)
2. This one is tricky :)
You are probably using some kind of TCP socket server, and client, and you are trying to spawn threads (with new TCP socket) at client side that access server , as fast as possible.
And after 4000-5000 spawned threads.... you get this error.
Why? Well Windows have default limitation on user created TCP sockets to around 5000.
To solve the problem, you have to add new key into registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort (as DWORD value) and to set it to value lesser then 65535 (max tcp port count).
I set it to 65534 and did not had any problems with it. This solution is working fine on real time C# server on win2003.
If this helps, great.... when you solve something like this.... post in blog, so we all can spare less time on searching for solutions, and more on coding.
keywords:
TCP/IP, how to avoid socket number limitation, .NET socket error , problems with sockets , TcpClient timeout
EventType clr20r3, P1 kimofflinetoonline.exe, P2 0.6.0.1012, P3 464b389a, P4 kimofflinetoonline, P5 0.6.0.1012, P6 464b389a, P7 10, P8 1ab, P9 system.io.ioexception, P10 NIL.
Solution:
1. Enlarge socket timeout size both on receiving and sending side (if that do not solve problem, then use 2.)
2. This one is tricky :)
You are probably using some kind of TCP socket server, and client, and you are trying to spawn threads (with new TCP socket) at client side that access server , as fast as possible.
And after 4000-5000 spawned threads.... you get this error.
Why? Well Windows have default limitation on user created TCP sockets to around 5000.
To solve the problem, you have to add new key into registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort (as DWORD value) and to set it to value lesser then 65535 (max tcp port count).
I set it to 65534 and did not had any problems with it. This solution is working fine on real time C# server on win2003.
If this helps, great.... when you solve something like this.... post in blog, so we all can spare less time on searching for solutions, and more on coding.
keywords:
TCP/IP, how to avoid socket number limitation, .NET socket error , problems with sockets , TcpClient timeout
Fancy .NET 2.0 error code
Well, today i got another issue with .NET 2.0. This one was solved once before, so... i need to find out what is the problem.... again.
Problem:
EventType clr20r3, P1 kimofflinetoonline.exe, P2 0.6.0.1012, P3 464b389a, P4 system.data, P5 2.0.0.0, P6 4333aea2, P7 25c3, P8 29, P9 system.data.sqlclient.sql, P10 NIL.
Solution:
Check your connection string for privileges, user id, and general database accesibility (firewalls , clusters .....).
Problem:
EventType clr20r3, P1 kimofflinetoonline.exe, P2 0.6.0.1012, P3 464b389a, P4 system.data, P5 2.0.0.0, P6 4333aea2, P7 25c3, P8 29, P9 system.data.sqlclient.sql, P10 NIL.
Solution:
Check your connection string for privileges, user id, and general database accesibility (firewalls , clusters .....).
Subscribe to:
Posts (Atom)