UDP socket not receiving in Windows Service

UDP socket not receiving in Windows Service

am 13.01.2008 20:38:40 von Arkej

Hello,
I wasn't able to find an answer to this:
I have an application in .net that uses a socket in UDP mode to listen for
datagrams with address reuse option. I use socket.BeginReceiveFrom method
and it's working well in a console application. When the same class is used
in a windows service no udps get received no mather what account the service
runs on. And now the weird part - if I start the console app while the
service is running( another beginreceivefrom in another process) the service
starts receiveing the udps(and the console app too). If I terminate the
console app, the service receives no more udps.
Any hint or solution would be appretiated?

Robert

Re: UDP socket not receiving in Windows Service

am 15.01.2008 15:17:40 von Arkej

Finally I found what worked for me - don't yet understand quite why but...
http://www.msnewsgroups.net/group/microsoft.public.dotnet.la nguages.csharp/topic26595.aspx

"Arkej" wrote in message
news:%23ZkvlvhVIHA.4740@TK2MSFTNGP02.phx.gbl...
> Hello,
> I wasn't able to find an answer to this:
> I have an application in .net that uses a socket in UDP mode to listen for
> datagrams with address reuse option. I use socket.BeginReceiveFrom method
> and it's working well in a console application. When the same class is
> used in a windows service no udps get received no mather what account the
> service runs on. And now the weird part - if I start the console app while
> the service is running( another beginreceivefrom in another process) the
> service starts receiveing the udps(and the console app too). If I
> terminate the console app, the service receives no more udps.
> Any hint or solution would be appretiated?
>
> Robert
>
>

Re: UDP socket not receiving in Windows Service

am 16.01.2008 00:31:19 von Arkej

have sorrow and suffering, and I will make this nation mourn
as for an only son, and the end therefore as a bitter day. Behold, the days
come, saith the Lord, that I will send a famine in the land, not a famine of
bread, nor a thirst for water, but of hearing the words of the Lord. And
they shall wander from sea to sea, and from the north even to the east; they
shall run to and fro to seek the word of the Lord, and shall not find it.

"In that day shall the fair virgins and young men faint for thirst. They
that have followed the idols of Samaria, and sworn by the god of Dan, and
followed the manner of Beersheba, shall fall, and never rise up again."

Amos 3:2: "Ye only have I known of all the families of the earth for my
people."

Daniel 12:7. Having described all the extent of the reign of the Messiah, he
says: "All these things shall be finished, when the scattering of the people
of Israel shall be accomplished."

Haggai 2:4: "Ye who, comparing this second house with the glory of the
first, despise it, be strong, saith the Lord, be strong, O Zerubbabel, and O
Jesus, the high priest, be strong, all ye people of the land, and work. For
I am with you, saith the Lord of hosts; according to t

Re: UDP socket not receiving in Windows Service

am 16.01.2008 02:09:29 von Arkej

single fact, that they cannot stay quietly in their own
chamber. A man who has enough to live on, if he knew how to stay with
pleasure at home, would not leave it to go to sea or to besiege a town. A
commission in the army would not be bought so dearly, but that it is found
insufferable not to budge from the town; and men only seek conversation and
entering games, because they cannot remain with pleasure at home.

But, on further consideration, when, after finding the cause of all our
ills, I have sought to discover the reason of it, I have found that there is
one very real reason, namely, the natural poverty of our feeble and mortal
condition, so miserable that nothing can comfort us when we think of it
closely.

Whatever condition we picture to ourselves, if we muster all the good things
which it is possible to possess, royalty is the finest position in the
world. Yet, when we imagine a king attended with every pleasure he can feel,
if he be without diversion and be left to consider and reflect on what he
is, this feeble happiness will not sustain him; he will necessarily fall
into forebodings of dangers, of revolutions which may happen, and, finally,
of death and inevitable disease; so that, if he be without what is called
diversion, he is unhappy and more unhappy than the least of his subjects who
plays and diverts himself.

Hence it comes that play and the society of w