Unhandeled error code 4004 using statlight for Unit testing

Jan 10, 2011 at 2:28 PM

Hi,

I am quite stuck with using Statlight for running my Unit test xap using statlight command.I have Dot Net frameowrk 4.0 installed on my machine .I have downloaded all the Statlight files which are

Ionic.Zip.Reduced.dll,

StatLight.Client.For.April2010.xap

StatLight.Client.For.UnitDrivenDecember2009.xap

StatLight.Core.dll

StatLight.exe

 

i have placed them in my bin /debug of test project and whenver i run statlight.exe i get this error

Code: 4004   
Category: ManagedRuntimeError      
Message: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at StatLight.Client.Harness.Hosts.MSTest.UnitTestProviders.MSTest.UnitTestFrameworkAssembly.GetTestClasses()
   at Microsoft.Silverlight.Testing.UnitTesting.Metadata.UnitTestProviders.GetAssemblyProvider(UnitTestHarness harness, Assembly testAssembly)
   at Microsoft.Silverlight.Testing.Harness.UnitTestHarness.PrepareTestAssemblyTasks()
   at Microsoft.Silverlight.Testing.Harness.UnitTestHarness.Initialize()
   at Microsoft.Silverlight.Testing.Harness.UnitTestHarness.Run()
   at Microsoft.Silverlight.Testing.UnitTestSystem.Run(UnitTestSettings settings)
   at Microsoft.Silverlight.Testing.UnitTestSystem.<>c__DisplayClass1.<CreateTestPage>b__0()
   at Microsoft.Silverlight.Testing.UnitTestSystem.<>c__DisplayClass6.<PrepareTestService>b__3()
   at Microsoft.Silverlight.Testing.UnitTestSystem.<>c__DisplayClass8.<PrepareTestService>b__4(Object sender, EventArgs e)
   at Microsoft.Silverlight.Testing.Service.ProviderBase.OnInitializeCompleted()
   at Microsoft.Silverlight.Testing.Harness.TestServiceProvider.InitializeAllServices()
   at Microsoft.Silverlight.Testing.Harness.TestServiceProvider.<InitializeAllServices>b__2(Object sender, EventArgs e)
   at Microsoft.Silverlight.Testing.Service.ProviderBase.OnInitializeCompleted()
   at Microsoft.Silverlight.Testing.Service.IsolatedStorageSettingsProvider.Initialize()
   at Microsoft.Silverlight.Testing.Harness.TestServiceProvider.InitializeAllServices()
   at Microsoft.Silverlight.Testing.Service.SilverlightTestService.<AttemptServiceConnection>b__8()
   at Microsoft.Silverlight.Testing.Service.SilverlightTestService.ServiceVerifier.<>c__DisplayClassa.<Verify>b__9(ServiceResult result)
   at Microsoft.Silverlight.Testing.Service.WebTestService.UserInterfaceThreadCallback(Object state)  

 

I also tried the webserver debugging option but before dubugging could start and i could attach process this error came again.This link was not genarated on console

http://localhost:8887/GetHtmlTestPage

and the error popped up before only.(same error)

What can be probable cause because i am unable to go beyond this point.

 

Jan 11, 2011 at 12:22 PM

Hi StaxManade

Any ideas I am still facing the issue.Is is a common problem or am i missing something please let me know.

Coordinator
Jan 11, 2011 at 1:41 PM

Could you please re-try and use the "--debug" parameter and then post the output? I can't tell yet what might be your problem.