count is not a member of system.array?

1,065 views
Skip to first unread message

raz230

unread,
Aug 26, 2009, 9:29:19 AM8/26/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I have a project that I am working on that is hosted in a subversion
repo. I work remotely sometimes and today is one of those days.

I updated my working copy and saw the files come down that were new
and when I opened my project I have a slew of errors on code that has
calls to "count" properties - which I have many of.

I my references are not broken - I don't see any problems under the
"My Project" references section. I'm not sure what's wrong here.

This is a copy & paste from the errors list (there are about 20 like
this)
Error 5 'Count' is not a member of 'System.Array'. C:\Documents and
Settings\Administrator\Desktop\BLAH\BLAH\Classes\Support\BLAH.vb 151
34 MOREBLAH


Does this ring a bell for anyone?

raz

Processor Devil

unread,
Aug 26, 2009, 2:29:28 PM8/26/09
to dotnetde...@googlegroups.com
well, count really isn't System.Array property :). System.Array property is Length

2009/8/26 raz230 <raz...@gmail.com>

Lee Gunn

unread,
Aug 26, 2009, 4:36:18 PM8/26/09
to dotnetde...@googlegroups.com
sounds like a LINQ thing (.Count())....are you missing a LINQ namespace perhaps (and therefore not getting the LINQ extensions) maybe it was in you web.config file before and you havent updated it???

________________________________

winmail.dat
Reply all
Reply to author
Forward
Message has been deleted
0 new messages