473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Registering An Assembly with the GAC

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
Nov 15 '05 #1
2 1405
( 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 ).


Can't you keep it as a private assembly during development, and wait
with the global registration 'til later?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 15 '05 #2
I wouldn't mind doing such a thing, ( in the least ). However I am just the
intern, and the powers that be want to test with the fully signed assembly
in the GAC ( for various reasons some better than others ). Also, the
existing test system keeps all of its dll's in one spot (not in the bin
directory, and this set of tests has to blend in with all of the existing
stuff).

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:el**************@TK2MSFTNGP11.phx.gbl...
( 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 ).


Can't you keep it as a private assembly during development, and wait
with the global registration 'til later?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan Bass | last post by:
One day, out of the blue, anything COM interop related stopped building. When building any project (VB / C#) that has a COM interop interface (my own home grown projects, or a Visual Studio .Net...
2
by: glenn | last post by:
I have written a COM Server in C# and its working perfectly. I am not ready to deploy to client computers to begin the real testing and am now wondering how to perform. The part that confuses me...
3
by: Arvind P Rangan | last post by:
hi, I have compiled a .dll. steps followed is try to upload the dll to global assembly method 1: al /i:temp.dll but this gives an error method 2: gacutil /i temp.dll - this uploads dll to global...
1
by: Anthony Yott | last post by:
Folks, I have a C# .NET Assembly that is called from an MFC C++ application. The assembly is marked as COM visible so I'm accessing the assembly from MFC C++ via COM. Everything works great but...
3
by: billr | last post by:
I have created a simple .net class library AdapterLibrary.dll, which contains a single class definition AdapterLibrary.Service (code at end of posting). I have signed the assembly and I attempt...
0
by: fcaico | last post by:
I have a .NET 1.1 C# application that needs to connect to a custom web service for authentication and system access. This web service uses a custom SOAP header for security purposes. In the...
1
by: shivkumar2004 | last post by:
Hi!, I am developing a chat system using vb.net in vs 2005. I am getting the following error while registering the events. error details: System.InvalidOperationException was unhandled...
3
by: Phil | last post by:
VB2005 I have created a class library project. I have created a class using the COM class template. In the Application tab under My projects if I click on Assembly Information, the 'Make assembly...
2
by: PGP | last post by:
I have an assembly i need to register for COM interop. This assembly has other assembly dependencies that need not be visible to COM. Although, when i turn on "Register for COM Interop" in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.