Cannot enable a custom plugin in Windows Server 2008

  • Thread starter Thread starter Helen
  • Start date Start date
H

Helen

Guest
Hello Everyone,
I implemented a authorization plugin using C# on Windows Server 2008. After
following the steps as in
http://msdn2.microsoft.com/en-us/library/ms753902(VS.85).aspx, I got the new
plugin shown in the server (BTW, I didn't forget to use ComVisible(true)" in
AssemblyInfo.cs before I built the plugin). But when I tried to enable the
plugin from the server, I got error "0x8007005, access is denied".

I didn't work on the server directly, but using the remote desktop to
connect with the server.

I checked the security of the dll, say MyPlugin.dll, under
C:\Windows\System32\wincdows media\server, it has read & execute permissions
for System, NETWORK SERVICE, Administrators, Users. I added Administrator
but still got the error.

Any idea about how to fix it?

The other question is that I cannot delete MyPlugin.dll from
C:\Windows\System32\wincdows media\server. It says that it's open in another
program. I couldn't think of where the dll was referenced (I have run regasm
MyPlugin.dll). Any idea about this?

Thanks a lot!

Helen
 
RE: Cannot enable a custom plugin in Windows Server 2008

Problems solved! It turns out that the program doesn't have the write
permission to the log file.

About the second question, I could delete the MyPlugin.dll after I stopped
the server.

Helen


"Helen" wrote:

> Hello Everyone,
> I implemented a authorization plugin using C# on Windows Server 2008. After
> following the steps as in
> http://msdn2.microsoft.com/en-us/library/ms753902(VS.85).aspx, I got the new
> plugin shown in the server (BTW, I didn't forget to use ComVisible(true)" in
> AssemblyInfo.cs before I built the plugin). But when I tried to enable the
> plugin from the server, I got error "0x8007005, access is denied".
>
> I didn't work on the server directly, but using the remote desktop to
> connect with the server.
>
> I checked the security of the dll, say MyPlugin.dll, under
> C:\Windows\System32\wincdows media\server, it has read & execute permissions
> for System, NETWORK SERVICE, Administrators, Users. I added Administrator
> but still got the error.
>
> Any idea about how to fix it?
>
> The other question is that I cannot delete MyPlugin.dll from
> C:\Windows\System32\wincdows media\server. It says that it's open in another
> program. I couldn't think of where the dll was referenced (I have run regasm
> MyPlugin.dll). Any idea about this?
>
> Thanks a lot!
>
> Helen
 
Re: Cannot enable a custom plugin in Windows Server 2008


> GUEST wrote:
> Hello Everyone,
> I implemented a authorization plugin using C# on Windows Server

2008. After
> following the steps as in
> http://msdn2.microsoft.com/en-us/library/ms753902(VS.85).aspx, I

got the new
> plugin shown in the server (BTW, I didn't forget to use

ComVisible(true)" in
> AssemblyInfo.cs before I built the plugin). But when I tried to

enable the
> plugin from the server, I got error "0x8007005, access is

denied".
>
> I didn't work on the server directly, but using the remote desktop

to
> connect with the server.
>
> I checked the security of the dll, say MyPlugin.dll, under
> C:\Windows\System32\wincdows media\server, it has read &

execute permissions
> for System, NETWORK SERVICE, Administrators, Users. I added

Administrator
> but still got the error.
>
> Any idea about how to fix it?
>
> The other question is that I cannot delete MyPlugin.dll from
> C:\Windows\System32\wincdows media\server. It says that it's open

in another
> program. I couldn't think of where the dll was referenced (I have

run regasm
> MyPlugin.dll). Any idea about this?
>
> Thanks a lot!
>
> Helen


Glad to hear you got everything worked out.

------------------------------------------------------
Fred Reckling
Microsoft Security Outreach Team
http://www.microsoft.com/hellosecureworld/level7
 
Back
Top