Team System Developer Center > Visual Studio Team System Forums > Visual Studio Team System - Testing > Unit test with ASP.NET Host failed with remoting proxy issue
Ask a questionAsk a question
 

AnswerUnit test with ASP.NET Host failed with remoting proxy issue

  • Friday, August 07, 2009 12:43 PMbizbiz Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

    I have a unit test with ASP.NET Host that failed with that following error :

    The connection to the Web server for page 'http://localhost:9999/WebSite/ConfigurationOperation/Domaine.aspx' was lost. This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server.. Check that the Web server is still running and visible on the network.

    Maybe the TestInitialize method takes lot if time because we recreate the database and do some initialization of the web page.  I cannot avoid this initialization. 

    If I run the test on a developper machine, the test works as expected.  When I run it on a build server, sometime it works sometime not.  When I run the test with other tests in a list, the next test in the list using the same url in the host attributes will works.  I don't understand what the problem are.

    The WebSite is published on IIS 6 using an application pool (NETWORK SERVICE) and a special post (9999).  The reason why we don't create the virtual directory in the default web site is because SharePoint are install at the default web site root.  So we create another web site using another port and another application pool.  We run around 5450 tests on this server and only this two tests failed sometime.

    Can someone explain what's the best way to resolve this issue ?

    Thanks,
    Annie


    bizbiz

Answers

All Replies