Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 713881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:00:41+00:00 2026-05-14T05:00:41+00:00

I am having problems with the following query in Castle ActiveRecord 2.12: var q

  • 0

I am having problems with the following query in Castle ActiveRecord 2.12:

var q = from o in SodisceFMClientVAR.Queryable
        where taxnos2.Contains(o.TaxFileNo)
        select o;

taxNos2 is an array of strings.

When run I get an exception:
+

InnerException {“Index was out of
range. Must be non-negative and less
than the size of the
collection.\r\nParameter name:
index”} System.Exception
{System.ArgumentOutOfRangeException}

  StackTrace  "   at

Castle.ActiveRecord.ActiveRecordBase.ExecuteQuery(IActiveRecordQuery
query)\r\n at
Castle.ActiveRecord.Linq.LinqResultWrapper1.Populate()\r\n
at
Castle.ActiveRecord.Linq.LinqResultWrapper
1.GetEnumerator()\r\n
at
NHibernate.Linq.Query1.GetEnumerator()\r\n
at
System.Linq.Buffer
1..ctor(IEnumerable1
source)\r\n at
System.Linq.Enumerable.ToArray[TSource](IEnumerable
1
source)\r\n at
prosoft.skb.insolventnostDataAccess.InsolventnostDataAccAR.GetOurUsersListLS(ICollection1
taxNos) in
C:\\svn\\skb\\insolventnostWithAR\\prosoft.skb.insolventnostDataAccess\\InsolventnostDataAR.cs:line
214\r\n at
prosoft.skb.insolventnostDataFromWS.InsolventnostFromWS.filterByOurUsers(IEnumerable
1
odprtiPostopki) in
C:\svn\skb\insolventnostWithAR\prosoft.skb.insolventnostDataFromWS\InsolventnostFromWS.cs:line
237\r\n at
prosoft.skb.insolventnostDataFromWS.InsolventnostFromWS.SyncData()
in
C:\svn\skb\insolventnostWithAR\prosoft.skb.insolventnostDataFromWS\InsolventnostFromWS.cs:line
53″ string

Does Contains even work in linq for nhibernate? I couldn’t find anything via google…
Is there a workaround?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:00:42+00:00Added an answer on May 14, 2026 at 5:00 am

    Well, I figured it out – the problem was actually in the class mapping to the table, DateTime fields needed to be DateTime ? fields.

    Weird error though…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some problems with the following Query: SELECT v.idnum ,v.full_name ,convert(varbinary(max),s.signature) as Sig
I am having problems which the following code: if(mysql_num_rows(mysql_query(SELECT user_id FROM myTable WHERE user_id
I'm following the kernel tutorial from here im having problems compiling my files. i
I'm using SQLServer 2008 and if I perform the following query: SELECT * FROM
I'm having problems with the following Linq query (demandNb is a filter option, as
i'm having problems in executing a query inside php. I have the following query
Following the Android sample for populating a ListView , I query an array from
I'm having problems compiling the following program. I'm using gcc -framework Foundation inherit8.1m and
I am using PHP 5.2 on SUN OS server. Having problems with the following
I'm having some problems with the following code: private class ClientPluginLoader : MarshalByRefObject {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.