When I drag & drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac?
相关问题
- How to know full paths to DLL's from .csproj f
- There was a mismatch between the processor archite
- Interface from a C DLL to .NET
- Websphere MQ C++ client crashes in VS2013- library
- How to determine file version of dll file in Compa
相关文章
- vs2017wpf项目引用dll的路径不正确的问题
- Determine if an executable (or library) is 32 -or
- Are resource files compiled as UNICODE or ANSI cod
- Does winapi's bcrypt.h actually support bcrypt
- Assimp model loading library install/linking troub
- CreateProcess STATUS_DLL_NOT_FOUND - which dll?
- .NET dll hot swap, no application restart
- The module “.dll” was loaded but the entry-point w
Use runas command to run gacutil as a user with local admin rights to register the dll to GAC.
Using Command line, use the following steps:
Open Visual Studio Command Prompt
First open Visual Studio Command Prompt (For Visual Studio 2008 the path is Programs --> Visual Studio 2008 --> Visual Studio Tools --> Visual Studio 2008 Command Prompt ) All the files mentioned in the following steps will be created in the Visual Studio 2008 Command Prompt Path. In my case it is C:\Program Files\Microsoft Visual Studio 9.0\VC
The assembly (dll) also needs to be strongly named if it's going to reside in the GAC.
http://msdn.microsoft.com/en-us/library/wd40t7ad(VS.80).aspx
You can do that with gacutil.exe. It is located in:
It is only there though, if you installed the .NET SDK (not just the .Net Redistributible). But you can copy it from your developer machine.
My guess would be that you have to do it as an administrator...try either disabling UAC, or using gacutil.exe to add your assembly.
You may not locate gacutil.exe in your windows folder while using vista. It's not included because of vista's "Logo Program blah blah" thing. Try to use windows installer to add your assemblies into gac. This is the recommended way.
And never forget this traditional ogrish proverb: "Bi siktir git cay koy".