Could not connect to the web server for page


  • I am writing tests for helper classes in the app_code directory.  I am using Cassini.  Suddenly, I am getting the following error:


    Could not connect to the web server for page 'http://localhost:6721/MReportsWeb'. The remote server returned an error: (500) Internal Server Error.. Check that the web server is running and visible on the network and that the page specified exists.

    The following is one of the tests:


    [AspNetDevelopmentServerHost("%PathToWebRoot%\\MReportsWeb", "/MReportsWeb")]
    public void SessionHelper_CurrBusinessProcess_Test()
        string val = "ICE";
        MReportsWebAppCodeTestProject.SessionHelperAccessor.CurrBusinessProcess = val;
            "SessionHelper.CurrBusinessProcess was not set correctly.");

    This sets a value in Session and the reads it back.  This really was working.  Unfortunately the TestResults dir is empty.  Any suggestion?

    Tuesday, January 08, 2008 7:49 PM


  • The next day the problem disappeared


    Sunday, January 20, 2008 11:20 PM