Solved

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

Posted on 2016-09-13
15
153 Views
Last Modified: 2016-09-14
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
Comment
Question by:lianne143
  • 8
  • 7
15 Comments
 
LVL 27

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 41797409
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
 

Author Comment

by:lianne143
ID: 41797438
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
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797456
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:lianne143
ID: 41797465
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
 

Author Comment

by:lianne143
ID: 41797476
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
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797477
Here is the MSDN documentation on where the templates are located.

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

Dan
0
 

Author Comment

by:lianne143
ID: 41797533
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
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797567
before doing that, what are the existing permissions?

Dan
0
 

Author Comment

by:lianne143
ID: 41797601
The existing permissions is  for users  on this test PC is
Read &Execute
List folder contents
Read

Thanks
permis-snap2.png
0
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797618
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
 

Author Comment

by:lianne143
ID: 41797778
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
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797859
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
 

Author Comment

by:lianne143
ID: 41797919
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
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 500 total points
ID: 41797958
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
 

Author Comment

by:lianne143
ID: 41798622
Thanks Dan

All sorted
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Computer account cleanup 90 127
VBA: Insert New column with specific format type 12 38
AD architecture diagram 5 30
windows server 2012 R2 DHCP clustering ? 5 17
Resolve DNS query failed errors for Exchange
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question