Cannot access the GAC from VS.NET 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to access the GAC from VS.NET. There is a file I generate and place
together with the DLL and I need to load that text file into VS.NET.

I have tried Add Existing Item and the writing \windows\assembly\gac in the
dialog, where I receive "You do not have access to the folder
'C:\Windows\Assembly\gac'. See your administrator for access to this folder.

The thing is I am in the computer's administrator group...
 
Juan,
I want to access the GAC from VS.NET. There is a file I generate and place
together with the DLL and I need to load that text file into VS.NET.

The GAC isn't meant to store data files. Why don't you put the file
elsewhere?



Mattias
 
You can only store .NET assemblies in the GAC. Don't misuse Global Assembly
Cache.

Vagif Abilov
 
I agree that the GAC shuld not be taken for a common folder; yet, sometimes
it is necessary to place debugging files in the GAC (for instance, *.pdb
files).
Now, all I am asking is how to see the file contents of certain GAC
subfolders. Curiously enough I can travel to the GAC and its contents via the
command prompt: why doesn't VS.NET 2003 allow me access as well?

--
Thanks in advance,

Juan Dent, M.Sc.


Vagif Abilov said:
You can only store .NET assemblies in the GAC. Don't misuse Global Assembly
Cache.

Vagif Abilov
 
Hi Juan,

I agree with Vagif and Mattias's suggestion. The GAC folder is a specific
folder, we should operating on it with the gacutil tool.
Because we have a specific shell extension, so when we display in a windows
folder(explorer.exe), it will have different view from a common folder.

For symbols file for the assembly in the GAC, we can use the
"_NT_SYMBOL_PATH" environment to specified the symbols file path, and
vs.net will load them.
INFO: Set the Path of the Symbol Server in Visual Studio .NET (823242)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;823242

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top