Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I cannot access the C:\WINDOWS\assembly\GAC Folder?

I find the path of Microsoft.Office>interop.Excel under the Solution/References is

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll

However, such a file doesn't exist on my C:\WINDOWS\assembly\GAC at all. Further, there is not GAC folder under C:\WINDOWS\assembly.

Any idea?

like image 663
q0987 Avatar asked May 31 '11 16:05

q0987


3 Answers

If you want to disable the GAC shell extension -

run regedit - navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion create DisableCacheViewer DWORD - set the value to 0x1.

After this open the assembly folder and you should see the sub folders and navigate into them.

But if you want to copy the assemblies from them -I'm not sure why? In you case you want Excel PIA's. All the Office versions also provide PIAs

Here are the PIA's for Office 2007.

like image 132
Vijay Sirigiri Avatar answered Oct 20 '22 01:10

Vijay Sirigiri


It is propably easiest to type to following in Start->Run: %windir%\assembly\gac

Some people use the subst command to map a drive letter to the GAC: SUBST [Drive letter]: “C:\Windows\assembly”

Personally I would get a hold of the Office Primary Interop Assemblies (Here is the PIA for 2010), they should contain the assembly you need

like image 28
armannvg Avatar answered Oct 19 '22 23:10

armannvg


Use the command prompt to navigate there. Windows Explorer has an extension that runs for the assembly folder, hiding some of the details.

Here is a post on how to turn it off. http://geekswithblogs.net/pavelka/archive/2006/05/05/WindowsExplorerAndTheGlobalAssemblyCache.aspx or http://weblogs.asp.net/jkey/archive/2003/02/25/3006.aspx

like image 32
Darryl Braaten Avatar answered Oct 19 '22 23:10

Darryl Braaten