logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Allwood" <graham.allw...@eborsolutions.com>
Subject RE: Error using RemotingAppender: can't find assembly log4net
Date Thu, 09 Dec 2004 16:03:23 GMT
Does your client have access to the exception class too? Just a shot in the
dark but with remoting the serialized assemblies have to be available to
both client and server.

-----Original Message-----
From: Simon Wallis [mailto:mailing@wallis.ca] 
Sent: 09 December 2004 15:16
To: Log4NET User
Subject: RE: Error using RemotingAppender: can't find assembly log4net

Now I'm using the example RemotingServer which works perfectly with the
example RemotingClient. It just bombs when I use it with my own client. Here
is the stack trace from DebugView which also shows the configuration of my
client. Again, the server works fine with the sample client, just not my

Doesn't this mean that the server is fine but something wrong with my client
setup? Why do you suppose it is giving the message, "Cannot find the
assembly log4net"?

[7100] log4net: DOMConfigurator: Configuration update mode [Merge]. 
[7100] log4net: DOMConfigurator: Logger [root] Level string is [DEBUG]. 
[7100] log4net: DOMConfigurator: Logger [root] level set to
[7100] log4net: DOMConfigurator: Loading Appender [RemotingAppender] type:
[7100] log4net: DOMConfigurator: Setting Property [Sink] to String value
[7100] log4net: DOMConfigurator: Setting Property [Lossy] to Boolean value
[7100] log4net: DOMConfigurator: Setting Property [BufferSize] to Int32
value [1] 
[7100] log4net: DOMConfigurator: Setting Property [OnlyFixPartialEventData]
to Boolean value [True] 
[7100] log4net: DOMConfigurator: Created Appender [RemotingAppender] 
[7100] log4net: DOMConfigurator: Adding appender named [RemotingAppender] to
logger [root]. 
[7100] log4net: DOMConfigurator: Hierarchy Threshold [] 
[7100] log4net:ERROR [RemotingAppender] Failed in DoAppend 
[7100] System.Runtime.Serialization.SerializationException: Cannot find the
assembly log4net, Version=, Culture=neutral,
[7100] Server stack trace: 
[7100]    at
[7100]    at
semblyInfo assemblyInfo, String name) 
[7100]    at
BinaryTypeEnum binaryTypeEnum, Object typeInformation, ObjectReader
objectReader, BinaryAssemblyInfo assemblyInfo, InternalPrimitiveTypeE&
primitiveTypeEnum, String& typeString, Type& type, Boolean& isVariant) 
[7100]    at
ryHeaderEnum binaryHeaderEnum) 
[7100]    at
[7100]    at
erHandler handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage methodCallMessage) 
[7100]    at
tream serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage) 
[7100]    at
(String objectUri, Stream inputStream, Boolean bStrictBinding,
TypeFilterLevel securityLevel) 
[7100]    at
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
[7100] Exception rethrown at [0]: 
[7100]    at
reqMsg, IMessage retMsg) 
[7100]    at
msgData, Int32 type) 
[7100]    at log4net.Appender.IRemoteLoggingSink.LogEvents(LoggingEvent[]
[7100]    at log4net.Appender.RemotingAppender.SendBuffer(LoggingEvent[]
[7100]    at log4net.Appender.BufferingAppenderSkeleton.Append(LoggingEvent
[7100]    at log4net.Appender.AppenderSkeleton.DoAppend(LoggingEvent

---------- Original Message ----------------------------------
From: "Nicko Cadell" <nicko@neoworks.com>
Reply-To: "Log4NET User" <log4net-user@logging.apache.org>
Date:  Wed, 8 Dec 2004 19:18:17 -0000

>It looks like the exception is being generated by the remoting server in
>the ObjectReader.Deserialize methods. This is then being thrown back to
>the client.
>How have you setup the remoting server listening on 8085?
>> -----Original Message-----
>> From: Simon Wallis [mailto:mailing@wallis.ca] 
>> Sent: 08 December 2004 19:08
>> To: log4net-user@logging.apache.org
>> Subject: Error using RemotingAppender: can't find assembly log4net
>> Hi, I'm trying to use the RemotingAppender. I got the client 
>> and server sample code working fine. Now I'm trying to use 
>> the appender in my own code but I'm getting an error that I 
>> can't figure out. When I run my own app (acting as the 
>> client) I see this stack trace in DebugView:

<!-- snip -->

>> Here is my config:
>> <appender name="RemotingAppender" 
>> type="log4net.Appender.RemotingAppender" >
>> 	<sink value="tcp://localhost:8085/LoggingSink" />
>> 	<lossy value="false" />
>> 	<bufferSize value="1" />
>> 	<onlyFixPartialEventData value="true" /> </appender>
>> As far as I can see, it is exactly the same as the client 
>> sample code (except mine is not in the app's .config file), 
>> yet the sample code works and mine doesn't. Other appenders 
>> work with my code, just not the RemotingAppender.
>> Simon.

View raw message