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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Avinash Reddy
    New Member
    • Sep 2010
    • 4

    #1

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

    Value of type 'System.Collect ions.Generic.Li st(Of StreetSavings.B usinessLayer.Pr oviders.Transac tion)'
    cannot be converted to 'System.Collect ions.Generic.Li st(Of StreetSavings.B usinessLayer.Pr oviders.Transac tion)'
    . 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\Stre etSavingsProjec t\StreetSavings \TestLayer\SSav ings\SSavings3_ 0Test.vb

    the above error is coming

    error is coming at Transactions place when
    i am trying call the function like this
    transactionOutp ut = objSSavings3_0. ProcessTransact ion(Transaction s, ProviderId, ProcessorId)

    and actual function defination is
    Public Function ProcessTransact ion(ByVal ptTransactions As List(Of Transaction), ByVal ProviderID As Integer, ByVal ProcessorID As Integer) As List(Of Transaction) Implements ISSavings3_0.Pr ocessTransactio n
    but Transactions,tr ansactionOutput i declared like this
    Dim Transactions As List(Of Transaction)
    Dim transactionOutp ut As New List(Of Transaction)

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


    can anyone help me?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    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?

    Comment

    • Avinash Reddy
      New Member
      • Sep 2010
      • 4

      #3
      thanks plater,
      ya i am using different dlls

      Comment

      • Avinash Reddy
        New Member
        • Sep 2010
        • 4

        #4
        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.

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Have you poked at the Reflection namespace? And perhaps Marshalling?

          Comment

          Working...