Statlight -c showing an error on second run

Apr 15, 2011 at 10:42 AM

I'm launching it with -c key and first time tests are run ok, at next rebuilt it shows a message box & error îs written to console:

Starting Test Run: 15.04.2011 11:39:25


A Silverlight MessageBox dialog was automatically closed.
Caption: Unhandled Error in Silverlight Application
Super Secret StatLight Code: 836D4425-DB59-48BB-BA7B-03AB20A57499
Code: 2103
Category: InitializeError
Message: Invalid or malformed application: Check manifest

Dialog Message:
Message from webpage

------------------ Test Failed ------------------
Test Namespace:
Test Class:
Test Method:
Other Info: A Silverlight MessageBox dialog was automatically closed.
Caption: Unhandled Error in Silverlight Application
Super Secret StatLight Code: 836D4425-DB59-48BB-BA7B-03AB20A57499
Code: 2103
Category: InitializeError
Message: Invalid or malformed application: Check manifest

Dialog Message:
Message from webpage
-------------------------------------------------


--- Completed Test Run at: 15.04.2011 11:39:33. Total Run Time: 00:00:07.0617061

It's latest Statlight from sources...

Apr 15, 2011 at 10:44 AM

Not sure if it's the same issue, probably is.

After first run with "-debug" key it's still working tries to do something:

--- Completed Test Run at: 15.04.2011 11:42:53. Total Run Time: 00:00:10.1610160

Test run results: Total 2, Successful 1, Failed 1,
webBrowser.Stop()
System.Net.HttpListenerException (0x80004005): An operation was attempted on a nonexistent network connection
   at System.Net.HttpResponseStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.Net.HttpListenerResponse.Dispose(Boolean disposing)
   at System.Net.HttpListenerResponse.System.IDisposable.Dispose()
   at System.Net.HttpListenerResponse.Close()
   at StatLight.Core.WebServer.InMemoryWebServer.ServeRequests()
COULD NOT FIND THE AUTOMATION ELEMENT FOR processId 6012
COULD NOT FIND THE AUTOMATION ELEMENT FOR processId 6012

Coordinator
Apr 17, 2011 at 3:41 PM

Are you still getting the "Invalid or malformed application: Check manifest" error on second run? Or did this get resolved when you added a ref to unity?

Ignore the "HttpListenerException" for now. I left that in there in hopes I could figure out why it throws exceptions when disposing. At this point it's not hurting anything, only confusing people who don't know it's harmless.

Apr 18, 2011 at 8:42 AM

Even after I've fixed previous error.

One more observation: when launched with "-c" if, I press ENTER to run test again it's running OK. But when I rebuild it to let StatLight pick up new xap then error is coming up.

Jun 28, 2011 at 6:14 PM

Hi,

I have a similar problem. However, I should mention that I didn't have this problem last week and now all of the sudden I have this problem.

Did you find a solution?

Thanks,

Meisam.

Coordinator
Jun 29, 2011 at 5:45 AM

I threw something together that "might" fix the problem. Not sure though.... Please download the latest build (starting with at least build #58) from TeamCity and see if you can reproduce it. If it works great, if not, I may have to get more complicated on the file read logic and somehow determine how/when the file is done being written to by the build infrastructure.

Coordinator
Jul 2, 2011 at 4:44 AM

Hey Guys,

For the rest of this discussion thread. Could you guys make sure you follow the issue at http://statlight.codeplex.com/workitem/13747

Also, I made another change that might help out. Since I can't test, could I get you guys to verify the latest build?

Thanks