[Solved] .NetCore project reference telerik testing framework build success but run failed with exception

0 Answers 7 Views
Execution
Jun
Top achievements
Rank 1
Iron
Iron
Iron
Jun asked on 22 Jul 2026, 11:55 AM

Hi Team,

Please see below details:

The project file is .net core framework

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <AssemblyTitle>netframework_telerik.testCore</AssemblyTitle>
    <Product>netframework_telerik.testCore</Product>
    <Copyright>Copyright    2025</Copyright>
    <AssemblyVersion>1.0.0.0</AssemblyVersion>
    <FileVersion>1.0.0.0</FileVersion>
    <IsTestProject>true</IsTestProject>
    <RunSettingsFilePath>$(MSBuildProjectDirectory)\test.runsettings</RunSettingsFilePath>
    <LangVersion>10.0</LangVersion>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Machine.Specifications" Version="1.1.3" />
    <PackageReference Include="Machine.Specifications.Runner.VisualStudio" Version="2.10.3" />
    <PackageReference Include="Machine.Specifications.Should" Version="1.0.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="System.Threading.AccessControl" Version="8.0.0" />
  </ItemGroup>

  <!-- Telerik references for .NET 9.0 (uses NetCore versions) -->
  <ItemGroup>
    <Reference Include="ArtOfTest.WebAii">
   <HintPath>C:\Program Files (x86)\Progress\Test Studio\Bin\ArtOfTest.WebAii.dll</HintPath>
    </Reference>
    <Reference Include="ArtOfTest.WebAii.Messaging">
      <HintPath>C:\Program Files (x86)\Progress\Test Studio\Bin\NetCore\ArtOfTest.WebAii.Messaging.dll</HintPath>
      <Aliases>Messaging</Aliases>
    </Reference>
  </ItemGroup>

  <!-- Copy NetCore Telerik DLLs to output -->
  <ItemGroup>
    <None Include="C:\Program Files (x86)\Progress\Test Studio\Bin\NetCore\ArtOfTest.*.dll">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <Visible>false</Visible>
    </None>
    <None Include="C:\Program Files (x86)\Progress\Test Studio\Bin\NetCore\Telerik.*.dll">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <Visible>false</Visible>
    </None>
  </ItemGroup>
</Project>



The test code is like

 private Establish context = () =>
 {
     // Use fully qualified name for BrowserType to resolve ambiguity
     var settings = new Settings
     {
         Web =
         {
             DefaultBrowser = global::ArtOfTest.WebAii.Core.BrowserType.Chrome,
             KillBrowserProcessOnClose = true,
             RecycleBrowser = false
         },
         UnexpectedDialogAction = UnexpectedDialogAction.HandleAndContinue
     };

     _manager = new Manager(settings);
     _manager.Start();
     _manager.LaunchNewBrowser();
     _browser = _manager.ActiveBrowser;
 };

 private Because of = () =>
 {
     // Navigate to the TruView QA login page
     _browser.NavigateTo("Telerik Test Studio Getting Started - Telerik Test Studio");
     _browser.WaitUntilReady();
 };



the code could build success, just run fail with exception in line _manager = new Manager(settings);

the exception is

 When navigating to truview login page it should have page loaded
   Source: LoginTest.cs line 49
   Duration: < 1 ms

  Message: 
Method not found: 'Void System.Threading.Mutex..ctor(Boolean, System.String, Boolean ByRef, System.Security.AccessControl.MutexSecurity)'.

  Stack Trace: 
System.MissingMethodException: Method not found: 'Void System.Threading.Mutex..ctor(Boolean, System.String, Boolean ByRef, System.Security.AccessControl.MutexSecurity)'.
TraceInfo.cctor()
Manager.CreateLog(Settings settings)
Manager.Init(Settings settings)
Manager.ctor(Settings settings)
<.ctor>b__7_0() line 31
RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)


Can you help to confirm if we can fix it to run case success?

Another question is about C:\Program Files (x86)\Progress\Test Studio\Bin\NetCore, will this folder will help to run telerik automation with .net core project?

Thanks,

Jun

Ivaylo
Telerik team
commented on 23 Jul 2026, 08:29 AM

No answers yet. Maybe you can help?

Tags
Execution
Asked by
Jun
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or