Print Page | Close Window

Problem with OOB in Silverlight

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2647
Printed Date: 29-Jul-2026 at 8:30pm


Topic: Problem with OOB in Silverlight
Posted By: mseeli
Subject: Problem with OOB in Silverlight
Date Posted: 02-May-2011 at 4:33am
I am working on a fairly large solution(24 Projects altogether, C#). 

So far I have been testing the application only in browser, where it all works fine. 

I have now tried to run it OOB (from within VisualStudio 2010). The application starts but then just hangs. I can see that it stops working the fist time it tries to get data from the Server. 

I have no idea of what to do to find the error. 

I have created a simple DevForce application that reads from the NorthwindIB Database and this one works fine out of browser. I then compared the properties of the the two solutions they are identical (Port 9009 etc.)

Can you give me some ideas about where to look next?

Thank you 

Markus Seeli



Replies:
Posted By: mseeli
Date Posted: 02-May-2011 at 5:04am
I managed to get an exception after a couple of minutes of waiting. (Sorry for the German, but it should be readable)

{IdeaBlade.EntityModel.EntityServerConnectionException: Die HTTP-Anforderung an "http://localhost:9009/EntityService.svc/sl" hat den zugeteilten Timeout überschritten. Die diesem Vorgang zugeteilte Zeit kann einen Anteil eines längeren Timeouts darstellen. ---> System.TimeoutException: Die HTTP-Anforderung an 


"http://localhost:9009/EntityService.svc/sl" hat den zugeteilten Timeout überschritten. Die diesem Vorgang zugeteilte Zeit kann einen Anteil eines längeren Timeouts darstellen. ---> System.Net.WebException ---> System.Net.WebException
   bei System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   bei System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   bei System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   bei System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   bei System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   bei proxy_2.EndGetEntityServerName(IAsyncResult )
   bei IdeaBlade.EntityModel.RemoteEntityServiceProxy.GetEntityServerName(String dataSourceExtension, String compositionContextName)
   bei IdeaBlade.EntityModel.RemoteEntityServerProxyBase.Connect(ConnectAction action)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei IdeaBlade.EntityModel.EntityManager.AsyncConnection_Completed(Object sender, AsyncEventArgs e)
   bei IdeaBlade.EntityModel.BaseOperation.BaseOnCompleted()
   bei IdeaBlade.EntityModel.BaseOperation.IdeaBlade.EntityModel.IHasAsyncEventArgs.OnCompleted()
   bei IdeaBlade.EntityModel.AsyncProcessor`1.<>c__DisplayClass2.<.ctor>b__0(TArgs args)
   bei IdeaBlade.EntityModel.AsyncProcessor`1.Signal()
   bei IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)}


Posted By: mseeli
Date Posted: 02-May-2011 at 6:17am
I checked the server is running at:

http://localhost:9009/EntityService.svc

I start the application, the oob-windows opens and is empty and stays empty.  - when i then click on the development server in the system tray and tell it to open in browser the application opens in a browser and works fine.


Posted By: mseeli
Date Posted: 05-May-2011 at 5:40am
I found the problem:

I am using Caliburn and Caliburn initializes the rootview after it has done the entire MEF initialization. I was trying to access my database before the rootview was set and somehow DevForce does not like this. 

This problem only shows up in OOB-Mode, within the browser the late init of the rootview is not a problem.

I solved the problem by showing a splash-screen before I access the db via DevForce. 


Posted By: sbelini
Date Posted: 05-May-2011 at 8:59am
Thanks for the update mseeli,
 
At first we suspected it could be the OOB app hanging when trying to make a connection to a secure WCF, but I couldn't reproduce it here.
 
I was about to check if it had anything to do with SL5 Beta being installed on the machine, but you saved me that trip.
Silvio.



Print Page | Close Window