Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to publish the aspx files which are in local machines? Pin
meeram39510-Mar-09 7:22
meeram39510-Mar-09 7:22 
Questionhow to save excel file in database? Pin
anujbanka17848-Mar-09 21:06
anujbanka17848-Mar-09 21:06 
AnswerRe: how to save excel file in database? Pin
Jack Li8-Mar-09 22:24
Jack Li8-Mar-09 22:24 
QuestionWeb config connection? Pin
Karthick_gc8-Mar-09 20:54
Karthick_gc8-Mar-09 20:54 
AnswerRe: Web config connection? Pin
Padmanabh Ganorkar8-Mar-09 21:01
Padmanabh Ganorkar8-Mar-09 21:01 
AnswerRe: Web config connection? Pin
Jack Li8-Mar-09 22:32
Jack Li8-Mar-09 22:32 
AnswerRe: Web config connection? Pin
gregor109-Mar-09 3:58
gregor109-Mar-09 3:58 
QuestionAsynchronous Operation in UdpClient in ASP.Net Pin
M. J. Jaya Chitra8-Mar-09 20:14
M. J. Jaya Chitra8-Mar-09 20:14 
Dear All,

I have a web application from which I need to send an UDP datagram.

When I send the data through Synchronous mode it is working fine.

When I use asynchronous operation it is throwing the below error:

"A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied "

The code used is:
Asynchronous:
 senderOfMessage = new UdpClient();
 IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Parse(serverIP), Convert.ToInt32(serverPort));

 byte[] message = ASCIIEncoding.ASCII.GetBytes("Test Message");

senderOfMessage.BeginSend(message, message.Length, new AsyncCallback(OnSend), remoteEndPoint);


Synchronous:
//senderOfMessage.Send(message, message.Length, remoteEndPoint);


Kindly help me to get rid of this issue.

Thanks a lot in advance.

Best Regards,
M. J. Jaya Chitra

AnswerRe: Asynchronous Operation in UdpClient in ASP.Net Pin
N a v a n e e t h8-Mar-09 20:31
N a v a n e e t h8-Mar-09 20:31 
GeneralRe: Asynchronous Operation in UdpClient in ASP.Net Pin
M. J. Jaya Chitra8-Mar-09 20:39
M. J. Jaya Chitra8-Mar-09 20:39 
QuestionTo read excel Pin
Krishna Varadharajan8-Mar-09 20:06
Krishna Varadharajan8-Mar-09 20:06 
AnswerRe: To read excel Pin
Christian Graus8-Mar-09 20:35
protectorChristian Graus8-Mar-09 20:35 
GeneralRe: To read excel Pin
Krishna Varadharajan8-Mar-09 20:44
Krishna Varadharajan8-Mar-09 20:44 
AnswerRe: To read excel Pin
Jack Li8-Mar-09 22:54
Jack Li8-Mar-09 22:54 
Questionexception in stored procedure Pin
NRHSR8-Mar-09 19:47
NRHSR8-Mar-09 19:47 
AnswerRe: exception in stored procedure Pin
N a v a n e e t h8-Mar-09 19:49
N a v a n e e t h8-Mar-09 19:49 
AnswerRe: exception in stored procedure Pin
monu nair8-Mar-09 19:50
monu nair8-Mar-09 19:50 
AnswerRe: exception in stored procedure Pin
Christian Graus8-Mar-09 19:50
protectorChristian Graus8-Mar-09 19:50 
GeneralRe: exception in stored procedure Pin
_Maxxx_8-Mar-09 20:43
professional_Maxxx_8-Mar-09 20:43 
GeneralRe: exception in stored procedure Pin
NRHSR8-Mar-09 22:55
NRHSR8-Mar-09 22:55 
GeneralRe: exception in stored procedure Pin
_Maxxx_8-Mar-09 23:57
professional_Maxxx_8-Mar-09 23:57 
GeneralRe: exception in stored procedure Pin
NRHSR9-Mar-09 0:33
NRHSR9-Mar-09 0:33 
Questionabout gridview [modified] Pin
prateekfgiet8-Mar-09 19:38
prateekfgiet8-Mar-09 19:38 
AnswerRe: about gridview Pin
N a v a n e e t h8-Mar-09 19:47
N a v a n e e t h8-Mar-09 19:47 
AnswerRe: about gridview Pin
Christian Graus8-Mar-09 19:49
protectorChristian Graus8-Mar-09 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.