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
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi,
for some reason I can not start the TMockRunner. I get the BadImageException. Something strange is going on with the TypeMock.dll. I checked the version and it is the .Net2.0 version like expected. I was not able to remove the dll from the GAC because windows said that another process is using that file. I checked windowsssemblygac and could not find a directory for this assembly. It seems like it is not even there. So removed it in the registry (HKLMclassesGlobal). Now when I move it back into the GAC, I still do not see a directory for the TypeMock.dll. When I'm using the gacutil /il I get following error

C:Program FilesTypeMockTypeMock.NET>"C:Program FilesComponentOne Studio.NET
2.0ingacutil" /il TypeMock.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.26
Copyright (c) Microsoft Corporation. All rights reserved.

Failed to add assembly C:Program FilesTypeMockTypeMock.NETMZ? to the cache:
The filename, directory name, or volume label syntax is incorrect.

Invalid assembly filename in input file.

Number of assemblies processed = 1
Number of assemblies installed = 0
Number of failures = 1

Any ideas?
asked by Step (3.4k points)

2 Answers

0 votes
Hi
Please use the following steps to bring back TypeMock back to life :wink:
1. Use the "Add Remove programs" in the Control panel to uninstall TypeMock.
2. Check the GAC and if you find any references of TypeMock.dll remove them as well.
3. Re-Install TypeMock.

Please tell me if it helps.

In any case after installing TypeMock, dont try to manually remove dlls from the GAC.
If you still encounter problems. Post the errors here. and we will help you.
answered by ohad (35.4k points)
0 votes
No it did not help. I tried this several times. I fixed it by coping the TypeMock directory from a different machine onto the machine that had the problem. Then it worked. The machine with the problem was a WinServer 2003, I installed TypeMock using the administrator account.
answered by Step (3.4k points)
...