chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes

While trying to execute one of the test methods, it fails with the following exception:

System.InvalidOperationException: _5MSCAPTVvCE53ofLWmErNt4nvNO_._n18Eb1DF6eMsCxaJ9Z8eBYuIm18_ is inaccessible due to its protection level. Only public types can be processed.

Looking at the stack trace it is confirmed that, error is originating while mocking an object using Isolate.Fake.AllInstances method. which looks something like this.

Isolate.Fake.AllInstances<Type>(Members.ReturnRecursiveFakes, ConstructorWillBe.Ignored);

Also verified, all the classes and its  members are of type public. 

Please help.

asked by Amarendra (600 points)

1 Answer

0 votes
Hi Amarendra,

which Typemock version are you using?

And, is it client version Or server version?

Additionally, you can open a ticket in our support system.

So we can help you in a more personal way.


answered by Alon_TypeMock (8.9k points)
Thanks Alon for your response,  below are the details asked for:

Typemock version- 8.2

Getting this issue on both the versions client/Server.

Raised a support ticket with Id: #10875