This is a migrated thread and some comments may be shown as answers.

Access Denied

6 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
brian26
Top achievements
Rank 1
brian26 asked on 20 Jun 2011, 01:51 PM
After installing JustMock on my work machine I'm getting the following error when in debug

 

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

Sort by
0
Ricky
Telerik team
answered on 20 Jun 2011, 03:19 PM
Hi brian,

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
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
brian26
Top achievements
Rank 1
answered on 20 Jun 2011, 04:06 PM
Running in elevated mode and still a no go. Have to get this up and running so boss can make choice on rather to purchase or not. I've included a photo of test and error.

Windows Server 2008 Enterprise Service Pack 2 Build 6002 (64bit);
Visual Studio 2010 

Thanks! 
0
Ricky
Telerik team
answered on 21 Jun 2011, 11:31 AM
Hi brian,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
brian26
Top achievements
Rank 1
answered on 21 Jun 2011, 07:01 PM
Still a no go! I've downloaded and installed TypeMock, Moles, Moq on this same machine without modifing any thing. Still getting the Access denied error with JustMock after setting permissions as described in the above reply. I'm in the administrators group on this windows 2008 machine. Does the Telerik.Codeweaver.Hook.dll require any certain permission? Thanks in advance.
0
Mihail
Telerik team
answered on 28 Jun 2011, 03:54 PM
Hello brian26,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
brian26
Top achievements
Rank 1
answered on 28 Jun 2011, 05:35 PM
Sure that would help alot. Thanks!
Tags
General Discussions
Asked by
brian26
Top achievements
Rank 1
Answers by
Ricky
Telerik team
brian26
Top achievements
Rank 1
Mihail
Telerik team
Share this question
or