DevLabs > DevLabs Forums > Pex > PEX explorations fails
Ask a questionAsk a question
 

AnswerPEX explorations fails

  • Friday, November 06, 2009 2:45 PMrdefeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I follow thorught the Capatalise tutorial, e.g.
    create the class library,
    added the code and compiled it,
    Created paramaterised test stubs,
    however Run Pex Explorartions results in am error "createion of fixutre of type AssemblyName.StringExtenrionsTest Fail"
    --- Description
    creation of fixture of type AnotherTry.StringExtensionsTest failed
     
    creation of fixture of type AnotherTry.StringExtensionsTest failed
     
    --- Exception details
     
    System.Security.VerificationException: Operation could destabilize the runtime.      at System.Void AnotherTry.StringExtensionsTest..ctor()
     
     
    The Output window is as follows!!

    launching pex

    starting...

    \\data\users\rdefeo\Visual Studio 2008\Projects\AnotherTry\AnotherTry.Tests\bin\Debug\AnotherTry.Tests.dll

    "C:\Program Files\Microsoft Pex\bin\Microsoft.Pex.exe" "\\data\users\rdefeo\Visual Studio 2008\Projects\AnotherTry\AnotherTry.Tests\bin\Debug\AnotherTry.Tests.dll" /membernamefilter:M:Capitalize! /methodnamefilter:Capitalize! /namespacefilter:AnotherTry! /typefilter:StringExtensionsTest! /x64failsilently /targetclrversion:v2.0.50727 /targetclrversion2 /donotopenreport /reportlevel:None /reportrootpath:"\\data\users\rdefeo\Visual Studio 2008\Projects\AnotherTry\AnotherTry.Tests\bin\Debug\reports" /testframework:NUnit /testlanguage:cs /testprojectfile:"\\data\users\rdefeo\Visual Studio 2008\Projects\AnotherTry\AnotherTry.Tests\AnotherTry.Tests.csproj" /testprojectnotupdate /testprojectskip

    using waiting pex process

    waiting for monitored process

    listening to monitored process (warm start)

    00:00:00.0> starting execution

    00:00:00.0> reflecting tests

    00:00:00.3> AnotherTry.Tests

    00:00:00.3> StringExtensionsTest

    00:00:00.3> Capitalize(String)

    !error! [execution] creation of fixture of type AnotherTry.StringExtensionsTest failed

    !warning! [execution] could not generate any test in 0 runs

    00:00:00.4> [finished] execution time 00:00:00.3906150.

    -- 0 critical errors, 1 errors, 1 warnings.

    -- 0 generated tests, 0 failing, 0 new, 0 inconclusive.

    [coverage] skipping coverage reports...

    [reports] skipping html reports

    EXPLORATION FAILED

     

    monitored process exited with DefaultFailure (-1000)

    finished


    I have already installed and removed and re-installed
    Do you have any idea what the problem is?????? 

    •  

Answers

  • Saturday, November 07, 2009 7:56 AMPeliMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I suspect the issue is due to the fact that you are running from a network share.

        \\data\users\ Studio 2008\Projects\AnotherTry\AnotherTry.Tests\bin\Debug\

    .NET processes launched from a share have different security settings that might produce this issue.
    rdefeo\Visual
    Jonathan "Peli" de Halleux - Give us your input about Pex!
    • Marked As Answer byrdefeo Sunday, November 08, 2009 10:43 PM
    •  

All Replies

  • Saturday, November 07, 2009 7:56 AMPeliMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I suspect the issue is due to the fact that you are running from a network share.

        \\data\users\ Studio 2008\Projects\AnotherTry\AnotherTry.Tests\bin\Debug\

    .NET processes launched from a share have different security settings that might produce this issue.
    rdefeo\Visual
    Jonathan "Peli" de Halleux - Give us your input about Pex!
    • Marked As Answer byrdefeo Sunday, November 08, 2009 10:43 PM
    •  
  • Sunday, November 08, 2009 10:44 PMrdefeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thank you, it was you were correct, the product looks fantastic!!!!!