Topic: exception loading configuration
Hi,
I'm testing SmartInspect in a windows service written in VB.NET (VS2005)
In OnStart() method, I have the following
SiAuto.Si.LoadConfiguration(sicFile)
logConfigRefreshTimer = New ConfigurationTimer(SiAuto.Si, sicFile, 10000)my "sicFile" contains:
AppName = GPEC
Connections = file(append="true", filename="$apppath$\gpec.sil", maxparts="7", rotate="daily"), text(append="true", filename="$apppath$\gpec.log", maxparts="7", rotate="daily", pattern="%timestamp% - %level,-7% - %title%", indent="true"), pipe(reconnect="true", reconnect.interval="1")
DefaultLevel = Debug
Enabled = True
Level = DebugIf I have SmartInspect Console up and running, everything works fine
But when I have no console running, I catch the following exception
Gurock.SmartInspect.ProtocolException: Impossibile trovare il file specificato. (Eccezione da HRESULT: 0x80070002)
in Gurock.SmartInspect.Protocol.HandleException(String message)
in Gurock.SmartInspect.Protocol.ImplConnect()
in Gurock.SmartInspect.Protocol.Connect()
in Gurock.SmartInspect.SmartInspect.Connect()protocol name: pipe
protocol options: async.enabled="false", async.clearondisconnect="false", async.queue="2048", async.throttle="true", backlog.enabled="false", backlog.flushon="error", backlog.keepopen="false", backlog.queue="2048", level="debug", caption="pipe", reconnect="true", reconnect.interval="1000", pipename="smartinspect"
I understand this is due to the fact that the pipe is not open, am I right?
thank
stefano
