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
85 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 26

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 26

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
 

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 26

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 26

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 26

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 26

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 26

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

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now