Home > Archive > MS SQL Server Notification Services > October 2005 > Why can't i use NSOtherLogger class in my custom formatter class?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Why can't i use NSOtherLogger class in my custom formatter class?
Eagle

2005-10-27, 8:00 am

Hello!

I wrote my custom formatter class and used NSOtherLogger from
Microsoft.SqlServer. NotificationServices
.Common namespace.
If event is generated then message will be created in Event Log -
" StrongNameIdentityPe
rmission exception".
How can i use this class?

Joe Webb

2005-10-27, 8:00 am

Hi -

Does this thread help?

http://groups.google.com/group/micr...f2c846
49



--
Joe Webb
SQL Server MVP
http://www.sqlns.com


~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/t...il/-/0972688811

I support PASS, the Professional Association for SQL Server.
(www.sqlpass.org)



On 17 Oct 2005 04:58:02 -0700, "Eagle" <madbummer@gmail.com> wrote:

>Hello!
>
>I wrote my custom formatter class and used NSOtherLogger from
>Microsoft.SqlServer. NotificationServices
.Common namespace.
>If event is generated then message will be created in Event Log -
>" StrongNameIdentityPe
rmission exception".
>How can i use this class?

Eagle

2005-10-27, 8:00 am

Thanks for your reply, Joe!

I saw this thread and it didn't help me. :(

I tried to use different variants with <supportedRuntime>, installed
versions of .NET (1.0 and 1.1), versions of compilers (csc.exe from
..NET 1.0 and .NET 1.1) and etc ...

It's work if i extract public key from
Microsoft.SqlServer. NotificationServices
.dll assembly and use it for
signing my custom formatter assembly with attribute [assembly:
AssemblyDelaySign(tr
ue)]. Then i run command "sn -Vr formatter.dll" ...
This method turn off verification of StrongName for my assembly, but i
think that it's not best variant.

I tried to decompile Microsoft.SqlServer. NotificationServices
.dll and
saw that NSOtherLogger class has StrongNamePermission
attribute with
"PublicKey" property.

It's mean that this class can use only by men who have microsoft key
pair. :-\
Interesting why ?? Is it correct?

Very many other helpful classes has this attribute. These classes
hasn't "internal" attribute and i want to use their. How can i cheat
this problem?

Thanks for read my gibberish :)

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com