By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,183 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,183 IT Pros & Developers. It's quick & easy.

Problem in upgrading from .Net 2.0 beta to 2.0 professinal

P: n/a
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(SqlExc eption exception,
Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
bulkCopyHandler, TdsParserStateObject stateObj)
at
System.Data.SqlClient.TdsParser.TdsExecuteTransact ionManagerRequest(Byte[]
buffer, TransactionManagerRequestType request, String transactionName,
TransactionManagerIsolationLevel isoLevel, Int32 timeout,
SqlInternalTransaction transaction, TdsParserStateObject stateObj)
at
System.Data.SqlClient.SqlInternalConnectionTds.Exe cuteTransactionYukon(TransactionRequest
transactionRequest, String transactionName, IsolationLevel iso,
SqlInternalTransaction internalTransaction)
at
System.Data.SqlClient.SqlInternalConnectionTds.Exe cuteTransaction(TransactionRequest
transactionRequest, String name, IsolationLevel iso, SqlInternalTransaction
internalTransaction)
at
System.Data.SqlClient.SqlInternalConnection.BeginS qlTransaction(IsolationLevel
iso, String transactionName)
at
System.Data.SqlClient.SqlInternalConnection.BeginT ransaction(IsolationLevel
iso)
at System.Data.SqlClient.SqlConnection.BeginDbTransac tion(IsolationLevel
isolationLevel)
at
System.Data.Common.DbConnection.System.Data.IDbCon nection.BeginTransaction()

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

Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Beenish Sahar Khan" <be**********@kolachi.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
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.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Nov 22 '05 #2

P: n/a
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.

"Ken Halter" <Ke********@Hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP14.phx.gbl...
"Beenish Sahar Khan" <be**********@kolachi.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
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.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.