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

I got the following exception this morning, when I upgraded to 5.1. This happens to every tests. Some configuration problem must be going on here.
 

failed: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "c2.resources" was correctly embedded or linked into assembly "TypeMock" at compile time, or that all the satellite assemblies required are loadable and fully signed.
   System.Resources.MissingManifestResourceException
   Message: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "c2.resources" was correctly embedded or linked into assembly "TypeMock" at compile time, or that all the satellite assemblies required are loadable and fully signed.
   Source: mscorlib
   StackTrace:
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at System.Resources.ResourceManager.GetObject(String name)
   at c2.a()
   at c2..ctor(Int32 A_0)
   at be.f()
   at TypeMock.MockManager.Init(Boolean collectAllCalls)
   at TypeMock.MockManager.Init()
   at TypeMock.MockManager.f(Type A_0)
   at TypeMock.MockManager.Mock(Type type, Constructor mockConstructors)
   at TypeMock.MockManager.MockObject(Type type, Constructor mockConstructors, Object[] args)
   at TypeMock.MockManager.MockObject[TMockedType](Constructor mockConstructors)
   at cb.StubFirstLevel[T](BindingFlags flags)
   at cb.Instance[T](Members behavior)

 

asked by nsoonhui (59.1k points)
edited by Bar

13 Answers

0 votes
I am using Typemock 5.1, VS 2008 SP1, Windows XP.
answered by nsoonhui (59.1k points)
edited by Bar
0 votes
Hi Soon,

This is a pretty odd exception, one I haven't encountered so far. I may need a couple of details before I try to reproduce it:

- what version of Typemock did you have prior to the upgrade?
- what test runner are you using? can you try using another and see if the same error happens (for instance try TestDriven.NET instead of MSTest)
- does this happen also with tests containing only pre-version 5.0 calls (I.E not AAA)?

Thanks,
Doron,
Typemock Support
answered by doron (17.2k points)
0 votes
Hi Soon,

This is a pretty odd exception, one I haven't encountered so far. I may need a couple of details before I try to reproduce it:

- what version of Typemock did you have prior to the upgrade?
- what test runner are you using? can you try using another and see if the same error happens (for instance try TestDriven.NET instead of MSTest)
- does this happen also with tests containing only pre-version 5.0 calls (I.E not AAA)?

Thanks,
Doron,
Typemock Support


1. I was using Typemock 5.0
2. I was using TestDriven.net with MbUnit for this case
3. Yes, the problem occurs on Natural mock and reflective mock as well.
 

answered by nsoonhui (59.1k points)
edited by Bar
0 votes
Additional info: I run the same project, with the same setting ( TypeMock 5.1, MBUnit, TestDriven.net, .Net 3.5 SP1 ) on different machine and that difference machine doesn't give me any problem.

So I think this is a machine specific issue.
answered by nsoonhui (59.1k points)
edited by Bar
0 votes
Extra information: I am using TestDriven version 2.0.15.2202.
NUnit 2.4.8.0
answered by nsoonhui (59.1k points)
edited by Bar
0 votes
Hi Soon,

I think it's there's an older version making problems here.

Uninstall 5.1, and go to the GAC (C:windowsssembly). Remove any "TypeMock" and "Configuration" that may have remained from older version. Also remove and files from older installations of Typemock (on c:Program files and if it's a 64 bit machine on c:Program files (x86)).

Then reinstall 5.1.

Let me know if it worked.
answered by gilz (14.5k points)
0 votes
Hi Soon,

I think it's there's an older version making problems here.

Uninstall 5.1, and go to the GAC (C:windowsssembly). Remove any "TypeMock" and "Configuration" that may have remained from older version. Also remove and files from older installations of Typemock (on c:Program files and if it's a 64 bit machine on c:Program files (x86)).

Then reinstall 5.1.

Let me know if it worked.

gilz, I did what you told and yet the same problem still persists.
 

answered by nsoonhui (59.1k points)
edited by Bar
0 votes

Here's how I fixed the problem:

I inserted in my own personal license and the problem was solved. Before this that computer just had a trial version of TypeMock installed.
 

answered by nsoonhui (59.1k points)
edited by Bar
0 votes
I am also getting the same error, but I don't have a licence to install yet as I'm still on the trial.

I've tried the uninstall solution suggested by gilz but that didn't work.

I've been using Isolator 5.1 and didn't do any upgrades. Auto update was turned on though so could something have been updated in the background?

I'm using Resharper 4.1 as my test runner, but have also tried with the NUnit runner (v.2.4.6) and get the same error in both.


UPDATE:

My collegue also started having the same problem, after poking around in Reflector he found this bit of code:

[I edited out the code sample]
(Ohad, Typemock Support )

Funnily enough, from today we both have 7 days left on our trial licence.

It appears as though we've installed a version of TypeMock that has the c2.resources file missing and TypeMock is now trying to initialize this resource. I'm guessing it's some kind of licence reminder.

Anyone have any suggestions for a possible fix or workaround?
answered by philbo (140 points)
0 votes
Hi
The Isolator auto updater does not install nothing in the background.
It only notifies you when there is a newer version.

I just so your message update and it indeed its looks like this is the source of the
problem :oops: Thanks!
We will fix it of course and send a solution offline.
answered by ohad (35.4k points)
...