New Posts New Posts RSS Feed: Problem with OOB in Silverlight
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Problem with OOB in Silverlight

 Post Reply Post Reply
Author
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post Topic: Problem with OOB in Silverlight
    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
Back to Top
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post 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)}
Back to Top
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down