मेरे वेबहोस्ट पर एक ब्रेकडाउन हुआ है। अब आखिर में यह फिर से है, और मुझे अभी तक पता नहीं है कि तकनीशियन क्या तय करते हैं। समस्या अब है मैं त्रुटि प्राप्त:एंटिटी फ्रेमवर्क जब डेटाटेडर बंद हो जाता है तो 'पढ़ें' को कॉल करना
Calling 'Read' when the data reader is closed is not a valid operation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Calling 'Read' when the data reader is closed is not a valid operation.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Calling 'Read' when the data reader is closed is not a valid operation.]
System.Data.Common.Internal.Materialization.Shaper`1.StoreRead() +93
System.Data.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +30
System.Linq.Enumerable.Single(IEnumerable`1 source) +119
System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__2(IEnumerable`1 sequence) +5
System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable`1 query, Expression queryRoot) +25
System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +43
System.Linq.Queryable.Count(IQueryable`1 source) +240
BusinessLayer.Car.GetCarCount() in xxx
UserControls_SiteInfo.Page_Load(Object sender, EventArgs e) +225
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
मैं कुछ भी नहीं बदला है, तो यह कुछ अनुमतियों हो सकता है? मैं अभी भी उसी डेटाबेस के साथ अपने डेटाबेस पर लॉग ऑन कर सकता हूं, इसलिए यह लॉगिन जानकारी नहीं है। किसी के पास कोई विचार है?
अद्यतन: मुझे पता चला है कि जब मैं IQuery को सूची में परिवर्तित करने का प्रयास करता हूं तो मुझे त्रुटि मिलती है। मुझे पहले कभी त्रुटि नहीं मिली, क्या इससे आप में से कोई भी एक सुराग देता है जो गलत हो सकता है?
जब आप प्रत्यक्ष SQL क्वेरी करते हैं तो क्या होता है? (linq-to-sql का उपयोग नहीं कर रहा है) –
मुझे पता चला है कि यह मेरे डेटाबेस या नेटवर्क के साथ मेरे वेबहोस्ट में एक त्रुटि है, इसलिए इसमें इकाई ढांचे के साथ कुछ भी नहीं है। – Dofs
'ILI' के लिए' IENumerable' को बदलना मेरे लिए समस्या का समाधान मैं एक स्पोक – safhac