Can't use TransactionScope

Posts   
 
    
Markiemac
User
Posts: 132
Joined: 25-Apr-2006
# Posted on: 16-Jan-2008 16:01:44   

Hi, (Using VS 2005/VB/Adapter V2.5/SQL Server 2005/WinForm)

Am trying to use TransactionScope but since my Imports System does not show a namespace for Transaction, it's undefined.

Does anyone have any idea why I can't see a System.Transaction namespace confused

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Jan-2008 16:42:07   

It seems to me that you are using .NET Compact Framework. Would you please check this out?

Markiemac
User
Posts: 132
Joined: 25-Apr-2006
# Posted on: 16-Jan-2008 17:45:49   

Groan frowning

You're right! Can't believe it, but yes I've been using the wrong framework.

Are there any issues with unistalling then installing the right one?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Jan-2008 10:21:29   

Are there any issues with unistalling then installing the right one?

What do you mean by that?

Markiemac
User
Posts: 132
Joined: 25-Apr-2006
# Posted on: 17-Jan-2008 19:04:43   

Sorry Walaa, re-installations usually spell trouble but I checked my backup machine and it has both Framework 2 and the Compact version, so I'll just do a normal install.

Thanks

Markiemac
User
Posts: 132
Joined: 25-Apr-2006
# Posted on: 19-Jan-2008 20:26:02   

Well after a couple of days away, I've just spent hours trying to change the framework target from Compact Framework 2 to Framework 2. Can't see or find out how to do this, though there must be a way. disappointed

Can anyone help. Am using VS2005 + VB.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 21-Jan-2008 09:50:13   

If you are speaking about the generated code, you can change the target platform in the code generation window. Also make sure you reference the correct ORMSupportClasses... dll

But if you are asking how to convert a VS CF project to another project, I'd say you'd better create a new project and strat copying files around.

Markiemac
User
Posts: 132
Joined: 25-Apr-2006
# Posted on: 21-Jan-2008 12:19:19   

Walaa wrote:

... But if you are asking how to convert a VS CF project to another project, I'd say you'd better create a new project and strat copying files around.

Ohhh frowning

Thanks for responding!