Problem in upgrading from .Net 2.0 beta to 2.0 professinal

B

Beenish Sahar Khan

Hello,
I am developing an application in C#, which was previously in .Net 2005
Beta, then it was working perfectly fine, but from the time I have upgraded
it to .Net 2005 Professional, its continously giving me error on the
following line,
transaction = Connection.BeginTransaction();


System.Data.SqlClient.SqlException: New transaction is not allowed because
there are other threads running in the session.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
bulkCopyHandler, TdsParserStateObject stateObj)
at
System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[]
buffer, TransactionManagerRequestType request, String transactionName,
TransactionManagerIsolationLevel isoLevel, Int32 timeout,
SqlInternalTransaction transaction, TdsParserStateObject stateObj)
at
System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest
transactionRequest, String transactionName, IsolationLevel iso,
SqlInternalTransaction internalTransaction)
at
System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransaction(TransactionRequest
transactionRequest, String name, IsolationLevel iso, SqlInternalTransaction
internalTransaction)
at
System.Data.SqlClient.SqlInternalConnection.BeginSqlTransaction(IsolationLevel
iso, String transactionName)
at
System.Data.SqlClient.SqlInternalConnection.BeginTransaction(IsolationLevel
iso)
at System.Data.SqlClient.SqlConnection.BeginDbTransaction(IsolationLevel
isolationLevel)
at
System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction()

Any kind of help would be welcome.
regards,
Beenish Sahar Khan
 
K

Ken Halter

Beenish Sahar Khan said:
Hello,
I am developing an application in C#, which was previously in .Net 2005
Beta, then it was working perfectly fine, but from the time I have
upgraded
it to .Net 2005 Professional, its continously giving me error on the
following line,
transaction = Connection.BeginTransaction();

Did you follow the BETA removal instructions "to the letter"? When you
uninstall the BETA, the very last dialog contains a list of items that need
to be uninstalled, in order. That list can be copied to the clipboard and
pasted to notepad/word and printed... it makes a decent checklist as you
uninstall "the world". After uninstalling everything BETA, run your favorite
registry cleaner (compactor too if you have it). Reboot and then start to
install the RTM. You'll probably want to log on as the user that's going to
be using VS (as opposed to installing while logged on as Admin - important
for VS6.. not sure about .Net) disable any virus protection and make sure
all apps are shutdown.
 
B

Beenish Sahar Khan

Ken, thanks for your reply.
I removed Beta using a Microsoft provided utility. This same project is
running on another machine and giving the very same error. I am logged in as
admin. and all kind of settings are perfectly fine.
The problem with this error is that its occuring on some actions, while on
others application works fine, but if once this error starts coming on some
particular location, its keep on coming, reboot don't have any effect on
this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top