how to edit the access right of C:\Windows\assembly\GAC_32\

M

MXC

I test website, ant get Compiler error: CS0016 Access is denied

Compiler need read files from C:\Windows\assembly\GAC_32\
I could not see the folders under C:\Windows\assembly\GAC_32\ in explorer.
and I can access these file from Command window so these files are there
I try to set the security let NETWORK SERVICE and IIS_IUSER have read right
but perperty window of assembly folder does not have security tab.

help and suggestion needed.
Thanks
 
J

Joe Morris

MXC said:
I test website, ant get Compiler error: CS0016 Access is denied

Compiler need read files from C:\Windows\assembly\GAC_32\
I could not see the folders under C:\Windows\assembly\GAC_32\ in explorer.
and I can access these file from Command window so these files are there
I try to set the security let NETWORK SERVICE and IIS_IUSER have read
right
but perperty window of assembly folder does not have security tab.

This behavior is controlled by the "desktop.ini" file in %WINDIR%\Assembly.

You can restore "normal" behavior of Explorer when displaying files and
folders in the %WINDIR%\Assembly tree by adding a Registry entry:

Key: HKLM\SOFTWARE\Microsoft\Fusion
Data: "DisableCacheViewer"=dword:1

but after browsing through the assembly folder tree I would suggest that you
delete the Registry entry. There may be parts of the system that will break
if it's not set the way that God and Bill Gates (not necessarily in that
order) decreed.

I have no idea just *why* Microsoft wanted to play games with
visibility...but given the strange way that the developers at Microsoft
designed .NET I would not be surprised to find that they did it just to show
that they could make life even more difficult for IT support staff.

If you've got a compiler that's griping about getting access to the
assemblies I would investigate whether you've got something wrong with the
compiler, a .NET installation, or maybe an SDK since the behavior of
Explorer that you describe can be found not only on Vista but also XP and
Windows 7.

Joe Morris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top