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
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
15 Comments
 
LVL 28

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 28

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 28

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 28

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 28

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 28

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 28

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

690 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