I found out the reason but nbot so clear.
In my remoting object I have logged connection information in EventLog using :
System.Diagnostics.EventLog.WriteEntry("Connection",
dbSettings[idx].ConnectionString);
Under Vista OS, if the source is not existing it seems that it create it in
a different way but it is loggin the information without any trouble.
Under Xp OS, if the source "Connection" is not existing, then it generate
the axception above..
is there any real difference behavour on this log ?
regards
serge
[quoted text, click to view] "calderara" wrote:
> Dear all,
>
> I have build a client server aplication calling a remote object hosted on a
> windows service using tcp chanels.
> When my client is calling a method on my remote object I get following error :
>
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. --->
> System.Security.SecurityException: The source was not found, but some or all
> event logs could not be searched. Inaccessible logs: Security.
>
> I have tried to set permision on EvenLog service key in regedit but no luck.
>
> Any idea ?
>
> regards
> serge