473,385 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

list(of Transaction) canot be converted to List(of Transaction)

Value of type 'System.Collections.Generic.List(Of StreetSavings.BusinessLayer.Providers.Transaction) '
cannot be converted to 'System.Collections.Generic.List(Of StreetSavings.BusinessLayer.Providers.Transaction) '
. Type mismatch could be due to the mixing of a file reference with a project reference to assembly
'StreetSavings'. Try replacing the file reference to 'StreetSavings.dll' in project 'SSavings3_0'
with a project reference to
'SSavings'. D:\Project\StreetSavingsProject\StreetSavings\Test Layer\SSavings\SSavings3_0Test.vb

the above error is coming

error is coming at Transactions place when
i am trying call the function like this
transactionOutput = objSSavings3_0.ProcessTransaction(Transactions, ProviderId, ProcessorId)

and actual function defination is
Public Function ProcessTransaction(ByVal ptTransactions As List(Of Transaction), ByVal ProviderID As Integer, ByVal ProcessorID As Integer) As List(Of Transaction) Implements ISSavings3_0.ProcessTransaction
but Transactions,transactionOutput i declared like this
Dim Transactions As List(Of Transaction)
Dim transactionOutput As New List(Of Transaction)

here i am doing unit testing for processtrnsaction function which is a wcf service


can anyone help me?
Sep 17 '10 #1
4 973
Plater
7,872 Expert 4TB
Sounds like two different projects are using different version of the assembly dll. Try setting your reference to not care about the version, see if that helps?
Sep 17 '10 #2
thanks plater,
ya i am using different dlls
Sep 20 '10 #3
i have another question,
if we get the above error how can we convert list(of Transaction) type in one dll to list(of Transaction) type in another dll.
Sep 20 '10 #4
Plater
7,872 Expert 4TB
Have you poked at the Reflection namespace? And perhaps Marshalling?
Sep 20 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: custard_pie | last post by:
I need help sorting a list...I just can't figure out how to sort a list and then return a list with the index of the sorted items in the list for example if the list I want to sort is I need to...
2
by: cylin | last post by:
Dear all, How do I change the codes in for-loop to print the value(m_dblXMax) in a list? Please help, thanks. ----------------------------------------------------------------------------...
3
by: George M Jempty | last post by:
Is there a good linked list implementation in the public domain? Or that someone on this group has already written that they'd like to put in the public domain, right here on this newsgroup? I've...
5
by: majm | last post by:
I'm trying to implement strongly typed lists in the 2.0 framework. I'm using VS2005 beta 2. So far, System.Collections.Generic.List appears to be the ideal solution. However, the...
4
by: matty.hall | last post by:
I have two classes: a base class (BaseClass) and a class deriving from it (DerivedClass). I have a List<DerivedClass> that for various reasons needs to be of that type, and not a List<BaseClass>....
3
by: Brian Henry | last post by:
So what is the easiest way to do this? I have one list view with a list of items (in detail view and with about 20 sub items) and a second list view that will take the items they drag from the...
14
by: fool | last post by:
Dear group, Thanks for all those who helped previously. Now I get some value printed. Is that the value of the list getting printed? Am I really polluted the list? Previous thread link...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
9
by: Stephan Steiner | last post by:
Hi I seem to have a bit of trouble understanding one bit of how generics work: In C#, every class automatically derives from object, and inherits a bunch of properties (i.e. ToString()). Thus,...
3
by: JurgenvonOerthel | last post by:
I want to replace one element in a list<stringby a list<stringand I need to obtain an iterator to the first element in the inserted list. In code: void...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.