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
103 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unable to remove HP CP1510 deployed printer 1 44
romain user profiles for windows users 22 62
edit user account 1 30
Office 365 SSO and Shared Devices 6 41
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

920 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

14 Experts available now in Live!

Get 1:1 Help Now