Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
At the time of build my project it give me a following error
[Unable to copy file from "obj\Debug\xyz.dll" to "c:\windows\Microsoft.NET\assembly\GAC_MSIL\xyz\xyz.dkk" Access to the path 'C:\Windows...xyz.dll] is denied.

how to slove this issue ?

What I have tried:

I run VS 12 as administrator. all the related files are closed before build the solution. but not works
Posted
Updated 14-Dec-17 1:14am
Comments
Mehdi Gholam 14-Dec-17 1:57am    
Check your pre and post build scripts to see what it is trying to do.
Kishor-KW 14-Dec-17 1:59am    
nothing is there in pre and post script
Richard MacCutchan 14-Dec-17 3:55am    
The message is quite clear, you are not allowed to write into that directory.

1 solution

Please Run as Admin your Visual studio.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900