Activation error occured while trying to get instance of type LogWriter

后端 未结 7 2168
你的背包
你的背包 2020-12-17 14:47

I am trying to using the Logging Application block of Enterprise Library 5.0 to log simple message to the Windows event log on Win XP SP3 system using:

Logge         


        
7条回答
  •  鱼传尺愫
    2020-12-17 14:52

    I've had the same error when using a separate entlib config file.

    In Web.config, enterpriseLibrary.ConfigurationSource pointed to EntLib.config. When I used the EnterpriseLibrary.Config tool to edit EntLib.config to set up the logging database details, it put everything in EntLib.config. I got this error until I moved the connetionStrings section to Web.config.

提交回复
热议问题