MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

Dataportal.Fetch Failed. (After Refresh all ok) #38

Open Baivga opened 9 years ago

Baivga commented 9 years ago

Hello.

For or project we are using csla 4.3.14.

I'm getting various errors. but when i refresh the page a coupple of times all the errors are gone and the page loads succesfully.

On of the errors are:

DataPortal.Fetch failed (Property load or set failed for property TextValue (Collection was modified; enumeration operation may not execute.)) 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.ServiceModel.FaultException: DataPortal.Fetch failed (Property load or set failed for property TextValue (Collection was modified; enumeration operation may not execute.))

Source Error:

Line 17: Line 18: Line 19: @Html.Partial("MenuBar", new MenuBarModel()) Line 20:

Anyone have any idea?

Baivga commented 9 years ago

Other Error: DataPortal.Fetch failed (Property load or set failed for property LangueageCode (Collection was modified; enumeration operation may not execute.))

ajj7060 commented 9 years ago

Sounds like you're using foreach in your DataPortal fetch, but the list you're interating over is being changed. I'd put a breakpoint in the start of your DP_F and step from there.

Baivga commented 9 years ago

Thanks, investigating