Wednesday, December 14, 2011

In c# WSE security

First,Install WSE 2. From Microsoft.


Before you call for service;



svc.RequestSoapContext.Security.Tokens.Add(new UsernameToken(UserName, Password, PasswordOption.SendPlainText));

Why did not write Nlog to targets


In  NLog.config write nlog tabs; throwExceptions="true" internalLogFile="c:\nlog.txt" internalLogLevel="Trace" 

like;


<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" throwExceptions="true" internalLogFile="c:\nlog.txt" internalLogLevel="Trace" >