Access Denied

7 posts, 0 answers
  1. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 20 Jun 2011 Link to this post

    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!

  2. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 20 Jun 2011 Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
  4. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 20 Jun 2011 Link to this post

    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! 
  5. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 21 Jun 2011 Link to this post

    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
  6. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 21 Jun 2011 Link to this post

    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.
  7. Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 28 Jun 2011 Link to this post

    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
  8. brian26
    brian26 avatar
    17 posts
    Member since:
    Jan 2007

    Posted 28 Jun 2011 Link to this post

    Sure that would help alot. Thanks!
Back to Top
DevCraft R3 2016 release webinar banner