A first chance exception of type 'System.UnauthorizedAccessException' occurred in Telerik.CodeWeaver.Hook.dll
I've uninstalled 2 times. This works great for my home pc. Is there any permission that I need to insure on this dll. In my project I only have a reference to Telerik.JustMock. Thanks in advance!
6 Answers, 1 is accepted
Thanks again for getting to us.
Please make sure that you are running Visual Studio in elevated mode (may be you could check your UAC settings). Also, are you running the same set of tests that you are also running in your home computer? In that regard, please check if you are not trying to mock something which is not accessible outside its assembly scope.
Kind Regards,
Ricky

Windows Server 2008 Enterprise Service Pack 2 Build 6002 (64bit);
Visual Studio 2010
Thanks!
Generally this issue occurs if a user does not have the necessary privileges to execute COM operations. To get around this please do the following:
- Run dcomcnfg to bring up Component Services window.
- Expand Component Services > Computers > My Computer > DCOM Config
- Scroll down list, right click TelerikCodeWeaver, and select properties. A 5 tabbed window named TelerikCodeWeaver Properties should be displayed.
- Select the Security tab and edit the access permission.
- Select the appropriate location, if running remotely.
- Reboot.
I found this to be a generic problem and inherited the above from this url:
http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/26accc30-9cfb-4d86-9c27-780f51929ecb/
Kind Regards,
Ricky
the Telerik team

Unfortunately we are not able to reproduce the error on our side. Is it an option to send you a custom JustMock build that has some additional logging enabled and then send us back the log file?
Best wishes,
Mike
the Telerik team
