Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

System.Transactions vs System.Data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken - 19 Jun 2007 19:42 GMT
I used the classes (SqlCommand, SqlConnection)  of part of System.Data
namespace.
I got an error which mentioned "Could not load file or assembly  assembly
'System.Transactions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089 or noe of its dependencies.

What should I do to fix this issue?

Strange enough, this application works fine other boxes except one box
John Saunders [MVP] - 19 Jun 2007 20:46 GMT
>I used the classes (SqlCommand, SqlConnection)  of part of System.Data
> namespace.
[quoted text clipped - 3 lines]
>
> What should I do to fix this issue?

What happens when you add a reference to System.Transactions?
Signature

John Saunders [MVP]

Ken - 22 Jun 2007 23:18 GMT
It start working for a while then stop working.
and when I debug remotely, then it mentioned "Could not load file or
assembly  assembly
'System.Transactions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089 or none of its dependencies.

>>I used the classes (SqlCommand, SqlConnection)  of part of System.Data
>> namespace.
[quoted text clipped - 5 lines]
>
> What happens when you add a reference to System.Transactions?
John Saunders [MVP] - 23 Jun 2007 16:44 GMT
> It start working for a while then stop working.
> and when I debug remotely, then it mentioned "Could not load file or
> assembly  assembly
> 'System.Transactions, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=B77A5C561934E089 or none of its dependencies.

Ok, does it always work when you debug locally? If so, check whether both
systems have the same exact System.Transactions. In particular, make sure
the version, culture, and PublicKeyToken are exactly the same on both
systems.

Also, things don't usually change for no reason. Try to characterize the
times it stops working. For instance, does it stop working at a particular
time of day? Is there anything interesting in either the Application or
System event logs on either the local or remote systems when it stops
working?

I'm not as deep on this area of the CLR as I'd like to be, so these are
general troubleshooting tips. If these don't get you anywhere, you should
consider posting this question in the microsoft.public.dotnet.framework.clr
or microsoft.public.vsnet.debugging newsgroups (not both at the same time,
please).
Signature

John Saunders [MVP]

>>>I used the classes (SqlCommand, SqlConnection)  of part of System.Data
>>> namespace.
[quoted text clipped - 6 lines]
>>
>> What happens when you add a reference to System.Transactions?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.