SOLVED...
kargenc wrote:
Need some urgent help to me,
İ am using NHibernate session in wcf it working normal transactionscope
But when i use wcf managed transaction it was error “This connection explixty or ….. commited or abort bla bla” i try so much search in net.
//[OperationBehavior(TransactionScopeRequired = true,
// TransactionAutoComplete = false)]
public ServiceResponse Add(ref LoginUser model)
{
ServiceResponse response = new ServiceResponse();
if (isvalidSession)
{
SoftLogger.writeInfo(String.Format(ResourceProvider.getRourceString(GetType(), "AddObjectCRUDInfo"), model.ToString(), model.GetType().Name));
//using (TransactionScope tx=new TransactionScope())
//{
using (IPersistManager ipm = new NHibernateManager())
{
try
{
ipm.Save(model, true);
response.ResponseStatus = ResponseStatus.Success;
}
catch (Exception ex)
{
response.ResponseStatus = ResponseStatus.Fail;
response.ResponseMessage = ex.InnerException.ToString();
}
}
//tx.Complete();
//}
}
This is work like that, but when i use OperationBehavior it throw an error.
Did you know any solution ..