| Socket problem |
| microsoft.public.dotnet.languages.vb |
| Hi, I am trying to write simple socket client. On connect it reads data from server and after it read something successful it needs to send something to the socket and wait for the reply again. My problem that after i read something for the first time i can not use this socket to send anymore. I don't think it is the way it is supposed to be. And even if it is there must be some workaround, isn't ... |
|
| Socket server problem |
| microsoft.public.dotnet.languages.csharp |
| I've written an async socket server app and I'm having an issue with the EndReceive() call. My begin receive call is: sockState.RemoteSocket.BeginReceive(sockState.ReceiveBuffer, 0, SocketState.BufferSize, 0, new AsyncCallback(this.ReadCallback), sockState); The ReadCallback() method begins: private void ReadCallback(IAsyncResult asyncResult) { Debug.WriteLine("SocketServer.ReadCallback: Entry"); ... |
|
| Socket.BeginReceive method |
| microsoft.public.dotnet.languages.csharp |
| I have a question for anyone out there that's used this method with any kind of success. Is it ok to call this method from the same method it will use as the callback? For example..I have a method called "ProcessReply", in this method, I call the EndReceive method, get the bytes received and translate it into a string. Then, still in the ProcessReply method, I need to call BeginReceive again to ma... |
|
| Sockets |
| microsoft.public.dotnet.languages.vb.upgrade |
| Okay, here's the error I get and the code for my class...: A connect request was made on an already connected socket Public Class StateObject Public workSocket As Socket Nothing ' Client socket. Public BufferSize As Integer 32767 ' Size of receive buffer. Public buffer(32767) As Byte ' Receive buffer. Public sb As New StringBuilder() ' Received data string. End Class Public Class SocketClient Publ... |
|
| Sockets Server / Sockets Client - unable to read data from the transport connection |
| microsoft.public.dotnet.general |
| I'm working on a client server application based on the 'How to Sockets Server and How to Sockets Client' code from the Visual Basic ..NET Resource Kit. Since I want to be able to send 'big strings' instead of 'one liners' I check the streams for terminators. I'm having problems with the connection, I've been looking and debugging for 2 weeks now (debugging with an emulator is terribly slow..) but... |
|
| Sockets Server / Sockets Client - unable to read data from the transport connection |
| microsoft.public.dotnet.languages.vb |
| I'm working on a client server application based on the 'How to Sockets Server and How to Sockets Client' code from the Visual Basic ..NET Resource Kit. Since I want to be able to send 'big strings' instead of 'one liners' I check the streams for terminators. I'm having problems with the connection, I've been looking and debugging for 2 weeks now (debugging with an emulator is terribly slow..) but... |
|
| SSL not working with Web Service |
| microsoft.public.dotnet.framework.aspnet.webservices |
| I have a web service that uses a trusted certificate (128 bit). It works well with a Windows Client or accessing it directly with the browser (from my desktop and Pocket IE). But when using a CF app it gives a WebException error with a status of ProtocolError. The Message property is just "WebException". I am perplexed. I have the high encryption pack on the iPaq (Pocket PC 2002), is there anythin... |
|
| Stop async socket service |
| microsoft.public.dotnet.framework |
| Hi all, today i am stuck with a socket operation problem i cannot solve by myself, although i think it should be done easily.... I have created a socket, bound it to an endpoint and called Socket.BeginAccept() from the main thread: System.Net.Sockets.Socket Listener; this.Listener.Bind( EndPoint ); this.Listener.Listen( 100 ); this.Listener.BeginAccept( new System.AsyncCallbac( BeginAcceptCallback... |
|
| Strange Behavior for WebRequest |
| Develop.com's DOTNET List |
| Never mind we found the problem. The solution is put the code within a try/catch block and catch the raised WebException and not just "Exception" as below try { serverResponse (HttpWebResponse) serverRequest.GetResponse(); } catch(WebException e) { //use the WebException to get access to the HTTP headers and content } Regards Vijay Original Message From: Tewari, Vijay [mailto:vijay.tewari@INTEL.CO... |
|
| Strange behaviour in WS-Proxy generation |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hi, I am trying to return an ArrayList from a Web Service: public ArrayList GetYearList() { int RangeStart Int32.Parse(ConfigurationSettings.AppSettings["YearRangeStart"]); int RangeEnd Int32.Parse(ConfigurationSettings.AppSettings["YearRangeEnd"]); ArrayList yearList new ArrayList(); for (int i RangeStart; i RangeEnd; i ) yearList.Add(i); return yearList; } When I generate the Proxy however I fin... |
|
| Stream Contents |
| microsoft.public.dotnet.framework.compactframework |
| Hello, I am reading a byte from a stream using nameStream.ReadByte (). This works fine but has the problem that it does not return until it has received a byte. As I do not necessarily know if there is always a byte to read this poses a problem. Does anyone know if there is a way to determine if there are any bytes in the stream buffer before I read from it? Thanks, Henry |
|
| Streaming files over http |
| microsoft.public.dotnet.languages.csharp |
| I am working on a project where I want to send at file from a Win CE device to a receiving PC using the HTTP protocol. For testing purpose I made a simple test app on my PC (code below). The problem is that only the first 8760 bytes of the file is transfered. I have tried several times and the received file is always 8760 bytes. I have tested with several files (10k 200k). My receiving application... |
|
| system.net.sockets riddled with bugs in rc1 |
| microsoft.public.dotnet.framework |
| As written a number of times in these newsgroups, emails to people I thought were in the know, and even to the devstudio bugs list (why on earth does one need to register there!?!?!), there are bugs in system.net.sockets. I wrote about these with Beta1, Beta2, and again when RC1 was released. Each time (except recently when it was forwarded by a good sole, then pooh poohed by the correct person) t... |
|
| system.net.sockets riddled with bugs in rc1 |
| microsoft.public.dotnet.framework.sdk |
| As written a number of times in these newsgroups, emails to people I thought were in the know, and even to the devstudio bugs list (why on earth does one need to register there!?!?!), there are bugs in system.net.sockets. I wrote about these with Beta1, Beta2, and again when RC1 was released. Each time (except recently when it was forwarded by a good sole, then pooh poohed by the correct person) t... |
|
| system.net.sockets riddled with bugs in rc1 |
| microsoft.public.dotnet.languages.csharp |
| As written a number of times in these newsgroups, emails to people I thought were in the know, and even to the devstudio bugs list (why on earth does one need to register there!?!?!), there are bugs in system.net.sockets. I wrote about these with Beta1, Beta2, and again when RC1 was released. Each time (except recently when it was forwarded by a good sole, then pooh poohed by the correct person) t... |
|
| System.Net.WebException: (MS Example) |
| microsoft.public.dotnet.framework.remoting |
| I'm running through an example of remoting in a MS book where I create a console based chat client. After scrtinizing my code over and over again, I'm sure I have it right... But it's not working I keep getting a System.Net.WebException and dont know why (im pretty new) I've seen a lot on hosting remoting in IIS but this example did not make any mention of hosting in IIS. Dd it need to be? Can any... |
|
| TCP Socket problem |
| microsoft.public.dotnet.languages.vb |
| Hello all, I have very strange error with sockets. I developed a windows service in vb.net that interacts with another machine using tcp sockets. It works perfectly on my NT workstation. When I installed it on windows 2000 server and tried to run, it gave me the following error: "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram so... |
|
| TcpClient |
| microsoft.public.dotnet.languages.vb |
| In VB6, Winsock had some events like Close, DataArrival, etc. In VB.Net, with TcpClient, how do we know when the connection is closed from the other computer? |
|
| Tcpclient |
| microsoft.public.dotnet.languages.csharp |
| Just wonder if the Tcpclient class has a sender like thing which raises an event each time a new packet has arrived if so how do i use it if not what methods are there to intercept server messages in realtime... i was thinking maybe a thread which runs a loop? not sure |
|
| tcpClient byte question |
| microsoft.public.dotnet.languages.csharp |
| I have another quick question. What method do I use to send and receive an object from a stream or do I have to use my serialize method first to make it a byte array and send that? If I have to do the send a byte[] thing, then how do I tell how many bytes to read from the ream on the other end? |
|
| tcpClient or Socket Closed |
| microsoft.public.dotnet.framework.sdk |
| When using the AsyncSocket class in C , I was able to get some events. The one I would like to get with TcpClient is the Close event. I believe this was called whenever the socket recieved a close message from the underlying tcpip subsystem. In the .NET classes, particularly tcpClient, I noticed there are no events. Is it impossible to recieve this notification? |
|
| TcpListener.Server.BeginAccept( callback, state) |
| microsoft.public.dotnet.languages.csharp |
| what is the state object suposed to be? the MSDN docs say that it is suposed to contain the atate for the socket, but i'm unsure of where to obtain the state information. I'm trying to create an asyncronuos call to the BeginAccept so i can listen for multiple socket connects, however when i call Server.BeginAccept( cb, state ) with the following code it returns null and causes an exception. object... |
|
| The real serial.cs |
| microsoft.public.dotnet.languages.csharp |
| OK does any have the rest of this one? /* * Author: Marcus Lorentzon, 2001 * d98malor@dtek.chalmers.se * * Freeware: Do not remove this header * * File: Serial.cs * * Description: Implements a Stream for asynchronous * transfers and COMM. * * Version: 0.2 * * Limitations: Curently only supports asynchronous transfers and Windows 2000. * */ namespace LoMaN.IO { using System; using System.IO; using ... |
|
| The security token could not be authenticated or authorized version 1.0 |
| microsoft.public.dotnet.framework.webservices.enhancements |
| Sorry for a re post but I didn't get a resolution to my issues first time round and there is little or no useful web references. Basically I have a simple Web Service referencing version 1 of the WSE. I have implemented the PasswordProvider interface, have added the appropriate entries ( for my password provider and the soapExtension Types ) in my web.config. On the client side I have changes the ... |
|
| There was an error during async processing running on Server 2003 |
| microsoft.public.dotnet.framework.aspnet.webservices |
| I am getting the error indicated in the subject line when calling a webservice aysnc from within my web page. InventPlanBusinessWrapper objWrapper new InventPlanBusinessWrapper(objConfig); AsyncCallback cb new AsyncCallback(myCallback); IAsyncResult asr objWrapper.BeginAddProjection(value1,cb,null); I am running on W2k3 server with Framework 1.1 Any assistance on this would be greatly appreciated.... |
|