Otis wrote:
You're both looking at the .NET version number. The runtime libraries BUILD number is obtainable as described in the manual and here:
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7725
...
So please provide some more information, I can't see what's wrong now without REAL names and REAL code.
hi, sorry for answering so late.
i have a little problem by finding "runtime libraries BUILD number". in the thread you've referenced, there is only the "Runtime library version" mentioned.
And here now the realcode:
This is the first statement which "correctly" fails (already shown above)
Trans2LesEntity oT2L = new Trans2LesEntity();
oT2L.Lesson = oLesson;
oT2L.Translation = oTrans;
oDA.StartTransaction(IsolationLevel.ReadCommitted, "Translation");
try
{
oDA.SaveEntity(oT2L);
oDA.Commit();
}
catch
{
writeLogLine("ERROR !");
oDA.Rollback();
}
oDA.CloseConnection();
oDA.Dispose();
And after this, in a directly following method, this code is executed:
DataAccessAdapter oDA = new DataAccessAdapter();
LanguageEntity oLanguage = (LanguageEntity)m_oLanguageHash[strLangCode];
ForeignwordEntity oForWord = new ForeignwordEntity();
oForWord.Vocable = oVocable;
oForWord.Language = oLanguage;
// handle possible double Entry
if (oDA.FetchEntity(oForWord))
{
if (!oForWord.Word.Equals(strWord))
{
writeLogLine("ERROR - createForeignTranslations!");
}
}
else
{
oForWord.Word = strWord;
oDA.SaveEntity(oForWord);
}
oDA.CloseConnection();
oDA.Dispose();
and by executing the oDA.SaveEntity(oForWord) appears the exception for the unique key violation for the first "correctly" failed code segment. if this segment is not executed, the oDA.SaveEntity(oForWord) from the second code segment does not fail!