skip to Main Content

How To Fix?

How can I solve this problem in Visual Studio?
When I try to create a new class, it gives the same error

2

Answers


  1. Hum, I would suggest that you tap windows key, type in visual studio, and select run as administrator.

    It looks like the folder/directory has/requires elevated rights.

    So, then try this:

    enter image description here

    So, it looks like that folder was created – perhaps having run VS with Admin rights.

    Try the above.

    If not, check the folder – it should be a local drive folder.

    A typical folder location for such project? NOT WHERE you have the project/folder now – it should not be in app data folder.

    Typical folder location should look like this:

     C:UsersKallasourcereposControlMISVBA
    

    And inside of the above folder, then you can find/open the sln file, say like this:

    enter image description here

    Again, in above, note the folder location.

    You need to move the location of your project folder to say my documents, or to the standard source->repos folder location.

    Login or Signup to reply.
  2. You can try Albert D. Kallal’s suggestion, his analysis makes sense.

    If his suggestions don’t work for you, you can also try turning off the antivirus software on your computer and turning off the virus and threat protection settings and firewall in Windows Security Center.

    https://developercommunity.visualstudio.com/t/VS-2022-Community-access-denied-error-wh/10108969

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search