I'm developing a control point for a Home Automation package using the .NET SDK. I have been able to successfully detect and partially browse MediaServers on my network. I'm using the InvokeSync method from the UPnPService class to execute a "Browse" action on a MediaServer. When I do successive "Browse" actions I don't reliably get responses. The first "Browse" gets a response, but subsequent "Browse" actions respond intermittently. The InvokeSync method just hangs when there is no response.
The interesting thing is that if I insert a 15 second delay between "Browse" actions, it works perfectly. Clearly, this is a workaround, but it takes a very long time to fully browse the MediaServer on my network. Is this behavior by design, or is it a symptom of something I'm doing wrong.
A few notes on my configuration:
- My media server is Twonkyvisions' V3.1
- VB.NET is the development language in Visual Studio 2005
I would appreciate any help.