Using .GAC files on CEPC

  • Thread starter Thread starter Jim Frazer
  • Start date Start date
J

Jim Frazer

Hi,

The compact framework docs specify that .gac files have to appear in the
\windows directory. Our CEPC systems are regulary turned off and the
\windows directory reverts back to the contents specified in NK.BIN. Is it
feasible to copy these files from non-volatile storage to the \windows
directory on startup? Is it possible that the CGACUTIL.exe will search the
path specified in the HKLM\Loader registry entry?

TIA,

Jim
 
No, I don't think that you can have it search. I'd copy it on startup. If
you devices don't already provide some means of copying files from
non-volatile storage to the RAM filesystem, you need that feature...

Paul T.
 
Paul,

Thanks for the response. I do have an app that does housekeeping on boot
but haven't added the code to deal with .GAC files yet.

I've tried doing this manually for a test:

1. Boot system.
2. Copy .GAC file to \windows
3. Run cgacutil.exe /refresh
4. Run the application that uses the DLLs listed in the .GAC file.

The application reports an error "Could not load type..." for an object in
one of the DLLs in the .GAC file. The app runs fine if I leave the DLLs in
the same directory where the app resides.

Is there a special requirement for the name of the .GAC file? I haven't
found documentation for CGACUTIL.exe that gives any description of its
functions other than the mention of the /update.

Thanks,

Jim
 
last line should say /refresh

Jim

Jim Frazer said:
Paul,

Thanks for the response. I do have an app that does housekeeping on boot
but haven't added the code to deal with .GAC files yet.

I've tried doing this manually for a test:

1. Boot system.
2. Copy .GAC file to \windows
3. Run cgacutil.exe /refresh
4. Run the application that uses the DLLs listed in the .GAC file.

The application reports an error "Could not load type..." for an object in
one of the DLLs in the .GAC file. The app runs fine if I leave the DLLs
in the same directory where the app resides.

Is there a special requirement for the name of the .GAC file? I haven't
found documentation for CGACUTIL.exe that gives any description of its
functions other than the mention of the /update.

Thanks,

Jim
 
Back
Top