web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

New Toolkit - 'Strong Type' generation gives 'Access denied' error

(0) ShareShare
ReportReport
Posted on by 265

Is anyone able to generate early Bound classes with the latest beta of the toolkit?

I right-click on an entity, select 'Create Class for Entity', fill in all of the fields and get this error:

"Access to the path 'CRMSDKTemp' is denied."

Any ideas?

*This post is locked for comments

I have the same question (0)
  • MSCRM Guru Profile Picture
    600 on at

    Make sure to run your IDE as an administrator, alternatively make sure that you "Unblock" the SDK file before installing it.

    Good luck.

  • Ben Walker Profile Picture
    265 on at

    Hi Guru,

    thanks for the suggestions.

    Running in administrator mode gets me a little further.

    If I select a single entity to generate for, I get this error:

    Could not find a part of the path:

    'C:\Code\Application\\ADSS\Dev-branhc-NewToolkit\Plugins\CRMSDKTemp\Bsp_Ads_Candidate.cs'

    If I select more than one entity (by right-clicking on Entities and selecting 'Create Class for Entities' and then selecting multiple entities for generation), then if I let it create all types in one file I get the same error, wheras if I select 'Create a class per item', the process completes without any errors, but it does not actually create any files!

    Your other suggestion is to unblock the SDK file before installing it. However, the SDK is installed from an exe file, not a zip file, so I don't think this is an issue. Let me know if I've misunderstood.

    Thanks,

    Ben

  • MSCRM Guru Profile Picture
    600 on at

    Hey,

    Can you double check your current user has full permissions over that location?

    Also, is this code / location under source control of any kind? I've seen similar permission related issues around VSTS Workspaces with different users on the same machine.

    Thanks,

    G

  • Ben Walker Profile Picture
    265 on at

    Hi G,

    I have full permissions on that location. I'm logged in as an administrator on the machine and I'm running the IDE as an admin. The full location does not exist - there is no folder called CRMSDKTemp in that path - I'm assuming that the tool is trying to create it as part of the class creation routine.

    The code is under VSTS source control. This PC has never been used by anyone other than myself so it's not related to different users.

    Cheers,

    B

  • MSCRM Guru Profile Picture
    600 on at

    Can you try to create that folder?

    Try to create a new simple solution under C:\Temp and see if that works.

    G

  • Ben Walker Profile Picture
    265 on at

    I created a completely new solution.

    When I try and generate an early bound class, it does create the folder CRMSDKTemp in the folder of the project I specify in the dialogue box. The folder is marked as read-only.

    Even if I then mark that folder (and contents) as not read-only, I always get this error:

    Could not find file 'C:\EarlyBoundGeneratorTests\Plugins\CRMSDKTemp\Bsp_Ads_Candidate.cs'.

    If I un-tick the 'Create a class per item' then, as before, the process runs without error, but no files created.

  • MSCRM Guru Profile Picture
    600 on at

    Can you please confirm version of Visual Studio and Toolkit?

  • Ben Walker Profile Picture
    265 on at

    I'm using Visual Studio 2015 Enterprise, Toolkit version is 1.3.2000.8489.

  • MattB-MSFT Profile Picture
    on at

    We have seen this happen a few times and are trying to rundown why this is occurring.  

    Could you tell us how you got to this error... meaning.. had you ( in the same vs session ) already created a Strong type named class once.. and were trying to replace it?  or had it errored during the first create?

    thanks

  • Ben Walker Profile Picture
    265 on at

    The error occurred the first time I tried to do a create of a strongly typed class.

    I was able to recreate the error within a completely new solution, so that it was the first thing I tried after creating the solution itself. Happy to share as much info as required.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans