Hi,
To install the assembly you compiled by your own to GAC
((include the exception management block), you have to
sign it by using your public/private key pair, .NET
framework allows only strongly named assembly to be
installed into GAC, so, get your public/private key and
sign your files.
By using Sn.exe came with .NET framework, you can get
private/public key pair, and you can also use this tool to
sign your files.
search sn.exe or "strong name" on MSDN and find out how
to.
[quoted text, click to view] >-----Original Message-----
>This is the exception thrown when I try to build a web
>setup package with the Exception Management Block output
>into the GAC and a custom action defined on the Exception
>Management output:
>
>Unable to build custom action named 'Primary output from
>Microsoft.ApplicationBlocks.ExceptionManagement
>(Release .NET)' because the file's Folder property is set
>to Global Assembly Cache.
>
>Thanks for any insight.
>
>Bryce
>
>>-----Original Message-----
>>Hello,
>>
>>I am trying to figure out how to get the Exception
>>Management Application Block to Install into the GAC
from
>>a Windows Installer Package.
>>
>>I have read the following in the documentation:
>>
>>>However, you must add the Exception Management project
>>>output or the Exception Management assembly to the
setup
>>>and deployment project as a custom action. This ensures
>>>that the ExceptionManagerInstaller class is
instantiated
>>>at installation time and as a result ensures that the
>>>necessary event sources are created.
>>
>>How do I do this??? If I add the project output to the
>>GAC, I can't add a custom action? If I add a custom
>>action, How can I install the assembly in the GAC?
>>
>>I'm not a windows installer expert by any means. I'm
>>looking for additional direction as to how to add a
class
>>to the GAC and ensure the installer class is run.
>>
>>Regards,
>>
>>Bryce
>>.
>>
>.