| | |
the beer house web starter kit - msdtc
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
| View Poll Results: What programing language you using? | |||
| vb.net | | 2 | 100.00% |
| c# | | 1 | 50.00% |
| j# | | 0 | 0% |
| c++ | | 0 | 0% |
| Multiple Choice Poll. Voters: 2. You may not vote on this poll | |||
![]() |
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Solved Threads: 0
Most of the asp.net shared web hosting didn't support msdtc ( Microsoft Distributed Transaction Coordinator ) , when using Thebeerhouse starter kit , you would encounter error when click submit now ( go paypal section ) & in admin list of user and order also result in error. because this all need to use msdtc to update the data. But i have modified the code. It run on godaddy.com shared hosting enviroment. my web site is won-mart, any one need help, feel free to ask me.
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Most of the asp.net shared web hosting didn't support msdtc ( Microsoft Distributed Transaction Coordinator ) , when using Thebeerhouse starter kit , you would encounter error when click submit now ( go paypal section ) & in admin list of user and order also result in error. because this all need to use msdtc to update the data. But i have modified the code. It run on godaddy.com shared hosting enviroment. my web site is won-mart, any one need help, feel free to ask me.
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
MSDTC is not technically required on the BeerHouse, just SQL forces you down that path - TBH uses nested transactions over the same connection - an outer tran to create the order ID and the inner ones to add each product to that order - comitting all transactions in one big bang at the end.
I also began coding round it and got it working by closing the tran to get the order ID and opening a new one to add each product (storing order ID in a local var and passing it through each time) - dig around in MB.TheBeerHouse.BLL.Store. But you don't want to do that -
Just add this to the end of the connection string ...
;Enlist=false
...this tells sql server not to worry about promoting transactions and just get on with the job - as long as the connection remains open you are laughing and the site will work without begging for MSDTC to be turned on. NO CODE REQUIRED!!
The up side - the web site will perform a bit quicker and you can host it anywhere.
The down side - you are not using the full promoted transaction scope of SQL 2005 and run a miniscule risk of the transaction not rolling back if it loses the connection half way through. TBH stores the order in the database anyway so the user can go to the orders page an finish at a later date.
Have fun! John ...c/o blickberry.com (work in progress)
I also began coding round it and got it working by closing the tran to get the order ID and opening a new one to add each product (storing order ID in a local var and passing it through each time) - dig around in MB.TheBeerHouse.BLL.Store. But you don't want to do that -
Just add this to the end of the connection string ...
;Enlist=false
...this tells sql server not to worry about promoting transactions and just get on with the job - as long as the connection remains open you are laughing and the site will work without begging for MSDTC to be turned on. NO CODE REQUIRED!!
The up side - the web site will perform a bit quicker and you can host it anywhere.
The down side - you are not using the full promoted transaction scope of SQL 2005 and run a miniscule risk of the transaction not rolling back if it loses the connection half way through. TBH stores the order in the database anyway so the user can go to the orders page an finish at a later date.
Have fun! John ...c/o blickberry.com (work in progress)
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: IDE for ASPX
- Next Thread: e.Item.DataItem=null in Repeater ItemCommand
Views: 2762 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol advice ajax application asp asp.net bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn chat checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dropdown dropdownmenu dynamic edit embeddingactivexcontrol feedback findcontrol flash flv folder form forms grid gridview homeedition hosting identity iframe iis index javascript jquery languages list maps menu mono mssql multistepregistration nameisnotdeclared novell object objects order problem profile ratings refer rotatepage search security serializesmo.table silverlight smartcard software sql ssl tracking typeof update validation vb vb.net view virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopment wizard xml





