Click here to Skip to main content
15,891,607 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: newbie question..plz help Pin
CWIZO15-Mar-06 2:31
CWIZO15-Mar-06 2:31 
GeneralRe: newbie question..plz help Pin
sunny74715-Mar-06 3:39
sunny74715-Mar-06 3:39 
GeneralRe: newbie question..plz help Pin
Dave Kreskowiak15-Mar-06 5:45
mveDave Kreskowiak15-Mar-06 5:45 
GeneralRe: newbie question..plz help Pin
sunny74715-Mar-06 7:40
sunny74715-Mar-06 7:40 
AnswerRe: newbie question..plz help Pin
Guffa15-Mar-06 8:29
Guffa15-Mar-06 8:29 
Questiondate and time picker Pin
bhavz6915-Mar-06 1:07
bhavz6915-Mar-06 1:07 
Question"SendKeys" in TextBox and RichTextBox (C#) Pin
conrado714-Mar-06 11:19
conrado714-Mar-06 11:19 
QuestionHanging RPC Listeners under a .NET service in COM object Pin
liRetro14-Mar-06 10:56
liRetro14-Mar-06 10:56 
This is a re-post of an article I put in the COM section. It refers to .NET, COM and RPC so it's kind of hard to get coverage by people with appropriate skillsets.

Here is the problem:
As soon as I installed XPSP2 the startup code in a COM object instantiated by a .NET Service hangs. This in turn cause the service to hang.

Observations:
The COM object is instantiating an RPC Listener when it hangs. It specifically hangs on an endpoint registration, though raaaarely it continues through after getting an error code. The function in question is RpcServerUseProtseqEp and it returns 1740 (duplicate endpoint) or hangs. I am very sure the endpoint is NOT already registered.

If I manually start my service it will work.
If I delay the service start by 5 minutes (in code) it will start.
If I add almost every service dependency I can it will still hang.
If I have another service start the COM object (query a web page in background) it starts fine!!

This all seems to work fine under 2000 SP4 and under the previous XP. I may just require a service environment (if it works under 2003), but I would really like to fix this behavior. This requires .NET, COM & RPC familiarity so I may have to move this to another forum.

Assert(this);

-- modified at 11:21 Monday 3rd April, 2006

Ok, found the fix for this. The RPC listener code was initiated in the DllMain section of the COM object. The DllMain section is a bad section to put any init code in due to lots of system locks etc... being set when that is called. Evidently XPSP2 has added some that were not there before and a previously working app. can now lock up.
QuestionHow do they figure out the number of characters? Pin
kenn_rosie14-Mar-06 7:22
kenn_rosie14-Mar-06 7:22 
GeneralRe: How do they figure out the number of characters? Pin
Guffa14-Mar-06 7:44
Guffa14-Mar-06 7:44 
GeneralRe: How do they figure out the number of characters? Pin
kenn_rosie14-Mar-06 7:54
kenn_rosie14-Mar-06 7:54 
AnswerRe: How do they figure out the number of characters? Pin
Guffa14-Mar-06 8:50
Guffa14-Mar-06 8:50 
QuestionCan't Find Int32.Parse Through System.Reflection? Pin
TheZeusJuice14-Mar-06 4:34
TheZeusJuice14-Mar-06 4:34 
AnswerRe: Can't Find Int32.Parse Through System.Reflection? Pin
IdUnknown14-Mar-06 5:13
IdUnknown14-Mar-06 5:13 
GeneralRe: Can't Find Int32.Parse Through System.Reflection? Pin
TheZeusJuice14-Mar-06 5:19
TheZeusJuice14-Mar-06 5:19 
QuestionPaint TabControl Pin
meninafeliz14-Mar-06 3:35
meninafeliz14-Mar-06 3:35 
AnswerRe: Paint TabControl Pin
mejojo14-Mar-06 5:23
mejojo14-Mar-06 5:23 
Questionopening url when a button is clicked Pin
bhavz6914-Mar-06 3:13
bhavz6914-Mar-06 3:13 
AnswerRe: opening url when a button is clicked Pin
Vasudevan Deepak Kumar14-Mar-06 4:26
Vasudevan Deepak Kumar14-Mar-06 4:26 
GeneralRe: opening url when a button is clicked Pin
bhavz6914-Mar-06 4:58
bhavz6914-Mar-06 4:58 
QuestionBindingContext - Combobox issue Pin
Chris Richner14-Mar-06 0:52
Chris Richner14-Mar-06 0:52 
Question.NET install on W98 fails registering enterpriseservices.dll Pin
Dave Midgley13-Mar-06 23:06
Dave Midgley13-Mar-06 23:06 
AnswerRe: .NET install on W98 fails registering enterpriseservices.dll Pin
Dave Kreskowiak14-Mar-06 1:19
mveDave Kreskowiak14-Mar-06 1:19 
GeneralRe: .NET install on W98 fails registering enterpriseservices.dll Pin
Dave Midgley14-Mar-06 3:14
Dave Midgley14-Mar-06 3:14 
GeneralRe: .NET install on W98 fails registering enterpriseservices.dll Pin
Dave Kreskowiak14-Mar-06 13:56
mveDave Kreskowiak14-Mar-06 13:56 

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.