Solved

The query results cannot be enumerated more than once in LINQ

Posted on 2009-06-28
2
4,147 Views
Last Modified: 2013-12-17
I am getting this error while  implementing the stored procedure in LINQ.. Please see the code attached below...


Error Message : The query results cannot be enumerated more than once in LINQ...

let me know if you  want to see the method( code) ,  where I am Implementing the below mentioned code..

Please resolve it ASAP.


var q = from c in s_Validation_DL.SP_SV_COM_XOSERV_FETCH_CHARGE_ITEM_DETAILS(invoiceNumber)
 
                                where c.INV_NUMBER == invoiceNumber
 
                                select c;
 
                         foreach (var chargeItem in q)
 
                        {
 
                            if (chargeItem.IS_AQGT73200.Value)
 
                            {
 
                              }

Open in new window

0
Comment
Question by:tulasisiva
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 50 total points
ID: 24735178
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question