none
pkg.LogProviders.Add

    คำถาม

  • Hello All,

         I'm using the HTML Logging Component as a basis for my own. I now need to add this logging component to several hundred packages programatically. The log provider is never recognized. To add the default logger you would use the following line:

    LogProvider provider = pkg.LogProviders.Add("DTS.LogProviderSQLServer.2");

    I added a ProgID, but still getting the same error: using System.Runtime.InteropServices;

    [

    ClassInterface(ClassInterfaceType.AutoDispatch)]
    [ProgId("MSMQLogProviderCS.MSMQLogProviderCS")]

    The log provider type "MSMQLogProviderCS.MSMQLogProviderCS" specified for log provider "{CB4160A6-E494-41E2-A3F2-463F94F3514E}" is not recognized as a valid log provider type. This error occurs when an attempt is made to create a log provider for unknown log provider type. Verify the spelling in the log provider type name.

    What do I have to do to correct this?

    Regards,

    Bryan

    14 มิถุนายน 2554 15:21

ตอบทั้งหมด