[Fatal]: 'this' type cannot be an interface itself

1 Answer 17 Views
Continuous Integration
Matt
Top achievements
Rank 1
Matt asked on 30 Apr 2024, 01:53 PM

We've started seeing the above error on our build server.  It seems to have appeared out of nowhere.

xUnit.net Console Runner v2.4.1 (64-bit Desktop .NET 4.7.2, runtime: 4.0.30319.42000)
      Discovering: IRONSolutions.Core.Tests
      Discovered:  IRONSolutions.Core.Tests
      Starting:    IRONSolutions.Core.Tests
        [FATAL ERROR] System.ArgumentException
          System.ArgumentException : 'this' type cannot be an interface itself.
          Stack Trace:
               at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeTypeHandle interfaceHandle)
               at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle interfaceHandle)
               at System.RuntimeType.GetInterfaceMap(Type ifaceType)
               at Telerik.JustMock.Core.MockingUtil.IsImplementedBy(MethodInfo interfaceMethod, MethodBase implMethod)
               at Telerik.JustMock.Core.Context.HierarchicalTestFrameworkContextResolver.MatchTestClassDispose(MethodBase method, String[] testMethodAttributes)
               at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
               at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
               at System.Linq.Enumerable.<DistinctIterator>d__64`1.MoveNext()
               at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
               at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
               at Telerik.JustMock.Core.Context.HierarchicalTestFrameworkContextResolver.GetTestMethod()
               at Telerik.JustMock.Core.Context.HierarchicalTestFrameworkContextResolver.FindTestMethod(Int32& repoIdx, RepositoryOperationsBase& entryOps)
               at Telerik.JustMock.Core.Context.HierarchicalTestFrameworkContextResolver.ResolveRepository(UnresolvedContextBehavior unresolvedContextBehavior)
               at Telerik.JustMock.Core.Context.MockingContext.ResolveRepository(UnresolvedContextBehavior unresolvedContextBehavior)
               at Telerik.JustMock.Core.MocksRepository.GetMockMixin(Object obj, Type objType)
               at Telerik.JustMock.Core.Invocation..ctor(Object instance, MethodBase method, Object[] args)
               at Telerik.JustMock.Core.ProfilerInterceptor.InterceptCall(RuntimeTypeHandle typeHandle, RuntimeMethodHandle methodHandle, Object[] data)
               at System.Environment.get_NewLine()
               at System.Exception.PrepForRemoting()
               at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
               at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
        [FATAL ERROR] System.ArgumentException
          System.ArgumentException : 'this' type cannot be an interface itself.


Has anyone seen this error before and know of a fix?  Any help would be greatly appreciated.  We're using JustMock_2023_1_117_1_Dev.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 May 2024, 09:31 AM

Hi Matt,

Due to the Orthodox Easter holidays, we are working with reduced capacity until May 7th, 2024. Please be advised that our response times may be delayed. We will address your issue as soon as we return.

Regards,
Martin
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Tags
Continuous Integration
Asked by
Matt
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or