C
Carlson Quick
Hi, I am attempting to register an Assembly with the GAC programmatically
from within a C# test system I am writing. Unfortunatly the test user that
the test system is runs under does not have sufficient rights to register an
assembly. I have tried to work around this by using
WindowsIdentity.Impersonate() to emulate the administrator and then starting
a new process that runs gacutil.exe. However, it seems like the spawned
process is not using the Administrators credentials.
What I am looking for is either some way to run the gacutil as the
administrator so the dll can be registered every time the application is run
( yes its inefficient, but this Assembly is in beta and changes very often,
and as this is supposed to be an automated nightly test it has to use the
latest build ).
Alternatively, it seems to me that there should be some security setting
that lets a non-administrator register assemblies. I have looked around for
it but could not find it.
Thank you for you time
Carlson Quick
from within a C# test system I am writing. Unfortunatly the test user that
the test system is runs under does not have sufficient rights to register an
assembly. I have tried to work around this by using
WindowsIdentity.Impersonate() to emulate the administrator and then starting
a new process that runs gacutil.exe. However, it seems like the spawned
process is not using the Administrators credentials.
What I am looking for is either some way to run the gacutil as the
administrator so the dll can be registered every time the application is run
( yes its inefficient, but this Assembly is in beta and changes very often,
and as this is supposed to be an automated nightly test it has to use the
latest build ).
Alternatively, it seems to me that there should be some security setting
that lets a non-administrator register assemblies. I have looked around for
it but could not find it.
Thank you for you time
Carlson Quick