L
Lord2702
Sun. Dec. 28, 2003 11:00 PM PST
TcpServerChannel ch = new TcpServerChannel(1234);
ChannelServices.RegisterChannel(ch);
or
string host;
host = Dns.GetHostName();
Console.WriteLine(host);
I am trying to run the above lines of code, which requires System.Net
namespace. But I am getting following errors. as soon it tries to create
`new` TcpServerChannel or access Dns.GetHostName().
I also, read many knowledge base articles on MSDN, but could not find any
positive answer which will solve my problem. In one article on MSDN, it
says, if you have more than 50 protocol, then you may get these errors, and
MS has not yet launch the SP for this problem. But my machine is single user
and I am using it at home, and I only have TCP/IP protocol, which I use for
internet connections.
I already finished my 70-315, and 70-316. and doing study for 70-320. but
now completely frustrate, because of the following problems.
I appreciate your help, if anybody knows the cause of this problem, and
solution to it.
Microsoft has published an article QFE (Q826757). on web, but I don't know
how to get these files, or how to contact Microsoft, if anybody has these
updated files, please let me know. I am realy, realy in trouble, I am
absolutely Idle, just finding some solution on the web or on newsgroup,
Help, Please, Help. I have dialup connection.
Thank you very much,
Suhas Tambe.
======== Errors start here
===============================================================
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll
Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
It displays above error dialog with following options.
Break - Continue - Ignore - Help
After break, if you try to continue it shows following error with the same
type dialog.
----------------------------------------------------------------------------
--------------
An unhandled exception of type 'System.TypeInitializationException' occurred
in system.dll
Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.
----------------------------------------------------------------------------
--------------
An unhandled exception of type 'System.TypeInitializationException' occurred
in ConApp.exe
Additional information: The type initializer for "System.Net.Dns" threw an
exception.
============================================================================
==============
When I try to brows the server explorer in VS.NET IDE, it gives me te
following error, which is again related with above errors.
The type initializer for "System.Net.Dns" threw an exception.
The type initializer for "System.Net.Sockets.Socket" threw an exception.
============================================================================
==============
Error Message:
WINSOCK Error: No buffer space is supported.
Explanation:
An operation on a socket or pipe was not performed because the system lacked
sufficient buffer space or because a queue was full. WinSock was unable to
allocate additional memory to accommodate the function request. This error
indicates a shortage of resources on your computer. It can occur if you are
trying to run too many applications (of any kind) simultaneously on your
computer. If this error tends to occur when you run certain applications, it
might indicate that the applications do not properly return system resources
(such as memory). It might also indicate that you are not closing the
applications correctly. If this error persists, exit Windows or reboot your
computer to remedy the problem.
User Action:
Try closing unneeded applications. If you continue to get this message, exit
Windows 2000 and restart your computer.
============================================================================
==============
Computer Configuration:.....
Pentium III with 640 MB
..NET Framework 1.1 Version 1.1.4322
MSIDE 2003 Version 7.1.3088
============================================================================
==============
TcpServerChannel ch = new TcpServerChannel(1234);
ChannelServices.RegisterChannel(ch);
or
string host;
host = Dns.GetHostName();
Console.WriteLine(host);
I am trying to run the above lines of code, which requires System.Net
namespace. But I am getting following errors. as soon it tries to create
`new` TcpServerChannel or access Dns.GetHostName().
I also, read many knowledge base articles on MSDN, but could not find any
positive answer which will solve my problem. In one article on MSDN, it
says, if you have more than 50 protocol, then you may get these errors, and
MS has not yet launch the SP for this problem. But my machine is single user
and I am using it at home, and I only have TCP/IP protocol, which I use for
internet connections.
I already finished my 70-315, and 70-316. and doing study for 70-320. but
now completely frustrate, because of the following problems.
I appreciate your help, if anybody knows the cause of this problem, and
solution to it.
Microsoft has published an article QFE (Q826757). on web, but I don't know
how to get these files, or how to contact Microsoft, if anybody has these
updated files, please let me know. I am realy, realy in trouble, I am
absolutely Idle, just finding some solution on the web or on newsgroup,
Help, Please, Help. I have dialup connection.
Thank you very much,
Suhas Tambe.
======== Errors start here
===============================================================
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll
Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
It displays above error dialog with following options.
Break - Continue - Ignore - Help
After break, if you try to continue it shows following error with the same
type dialog.
----------------------------------------------------------------------------
--------------
An unhandled exception of type 'System.TypeInitializationException' occurred
in system.dll
Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.
----------------------------------------------------------------------------
--------------
An unhandled exception of type 'System.TypeInitializationException' occurred
in ConApp.exe
Additional information: The type initializer for "System.Net.Dns" threw an
exception.
============================================================================
==============
When I try to brows the server explorer in VS.NET IDE, it gives me te
following error, which is again related with above errors.
The type initializer for "System.Net.Dns" threw an exception.
The type initializer for "System.Net.Sockets.Socket" threw an exception.
============================================================================
==============
Error Message:
WINSOCK Error: No buffer space is supported.
Explanation:
An operation on a socket or pipe was not performed because the system lacked
sufficient buffer space or because a queue was full. WinSock was unable to
allocate additional memory to accommodate the function request. This error
indicates a shortage of resources on your computer. It can occur if you are
trying to run too many applications (of any kind) simultaneously on your
computer. If this error tends to occur when you run certain applications, it
might indicate that the applications do not properly return system resources
(such as memory). It might also indicate that you are not closing the
applications correctly. If this error persists, exit Windows or reboot your
computer to remedy the problem.
User Action:
Try closing unneeded applications. If you continue to get this message, exit
Windows 2000 and restart your computer.
============================================================================
==============
Computer Configuration:.....
Pentium III with 640 MB
..NET Framework 1.1 Version 1.1.4322
MSIDE 2003 Version 7.1.3088
============================================================================
==============