• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Visual Studio unable to copy the file ‘Application.Designer.vb’ from the project template to the project. Access is denied.

Hi

I have installed visual studio community onWin 7 PCs on our network. When users log into the visual studio application,
by default the application has taken path of the students home directory to save projects , that is located on the windows 2003 file server
\\File server-a\students\16\11jsmith\visual studio 2015\Projects.

Now when students open the Visual studio –Click New project
Select Visual Basic under templates, and Windows Forms Application and click ok
They get an error which says, unable to copy the file ‘Application.Designer.vb’ from the project template to the project. Access is denied.

Please see the attached snapshot of the process of opening the application and the error message.

Please help, what needs to be done to allow access and this application to work
Any help much appreciated
Thanks in advance.
Visual-error-snap-studio.pdf
0
lianne143
Asked:
lianne143
  • 8
  • 7
7 Solutions
 
Dan McFaddenSystems EngineerCommented:
Do you have write access to the location where you are trying to store the project?  In the screenshot you reference:

"\fileserver-a\students\16\11Jsmith\visual studio 2015\Project"

Can you create either a new text file or directory in this location directly thru Explorer?

Dan
0
 
lianne143Author Commented:
Yes , I do have a write access to the Projects folder.
I went to Start >All programs>Accessories >notepad> typed few characters on the notepad and saved to the following location successfully.
Also can create a Directory as well.


"\\fileserver-a\students\16\11Jsmith\visual studio 2015\Projects"

Thanks
0
 
Dan McFaddenSystems EngineerCommented:
OK, then I would double check the path... the Location field has an improperly formatted UNC path.  You are/were missing a back slash in front of the server names.

Also, do you have access to the VS templates directory on your machine?

Dan
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
lianne143Author Commented:
My last UNC path is correct one, Initially  the posted format war not correct Apologies.

Not sure about the Visual studio templates location, this is the first time setting.
Under Program Files folder I can see Microsoft Visual studio 12.0

Under Program Files(x86) folder I can see Microsoft Visual studio 11.0
                                                                           Microsoft Visual studio 12.0
                                                                           Microsoft Visual studio 14.0
Please can you let me know the path for VS templates for the Local PC
0
 
lianne143Author Commented:
I can see under
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\

WEb Templates folder
Item Templates folder
ItemTemplatescacshe
Not sure if this is the right folder.
0
 
Dan McFaddenSystems EngineerCommented:
Here is the MSDN documentation on where the templates are located.

Link:  https://msdn.microsoft.com/en-us/library/y3kkate1.aspx

Dan
0
 
lianne143Author Commented:
Shall i  right click the Microsoft Visual studio 14.0 folder on the local PC and give full permission for User(ICT2-PC2\users)
0
 
Dan McFaddenSystems EngineerCommented:
before doing that, what are the existing permissions?

Dan
0
 
lianne143Author Commented:
The existing permissions is  for users  on this test PC is
Read &Execute
List folder contents
Read

Thanks
permis-snap2.png
0
 
Dan McFaddenSystems EngineerCommented:
As it should be.  I would not modify those permissions.  Read & Execute gives you all the access you need.

When you run VS2015, are you running it with "Run as different user?"

Also, can you manually add a file to your project, other than the temples that returns access denied?

Dan
0
 
lianne143Author Commented:
Yes I am running as a student (test user)

I opened a word document went to the "Projects folder" and saved and it saved successfully.
"\\fileserver-a\students\16\11Jsmith\visual studio 2015\Projects"



I tried with a test teacher account and the program doesn't throw any error  and the Location of home directory is same file server-a
0
 
Dan McFaddenSystems EngineerCommented:
Then the issue is that the "user" you are using doesn't have permissions.

I would verify the membership of the local group "ICT2-PC2\users"  and the membership of your "test user."

And if you run VS2015 with your account, does everything function as expected?

Dan
0
 
lianne143Author Commented:
I am the member of the domain administrator group  and VS2015 works as expected and also I tried with a teacher account and it works good.

Access denied message pops only with student account.

These type users are located in different OUs on our AD
                                            --Student OU- Students
                                                 --Staff OU- Staff
0
 
Dan McFaddenSystems EngineerCommented:
Can you post the following:

1. Is the "test user" a domain account?
2. The group membership of the account "test user"
3. The share permissions on the share at "\\fileserver-a\students"
4. The NTFS permissions on the folder that is shared as "students"

This is a share/ntfs permissions issue.

Dan
0
 
lianne143Author Commented:
Thanks Dan

All sorted
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now