Setup And Getting Started Forum


Error for the first time run CMS

 
Pls help me to solve this error:
There is already an open DataReader associated with this Command which must be closed first.
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: There is already an open DataReader associated with this Command which must be closed first.
Source Error:
Line 46:                 string url = HttpContext.Current.Request.Url.Authority.ToLower();
Line 47:                 IEnumerable<Portal> portals = _inmemorycacheService.Get(PortalsHolder, () => _portalRepository.ListPortals());
Line 48:                 return portals.Where(portal => portal.URLAuthority.Equals(url)).FirstOrDefault();
Line 49:             }
Line 50: 
Source File: C:\Users\xxx\Desktop\MvcCms\MvcCms.Core\Cache\CacheService.cs    Line: 48



9 months 21 days ago by phuonglewis

Replies

Reply posted by jon 9 months 17 days ago View Branch And Reply
Check out the link below, I think you will need to open your mvccmsdatamodel.edmx file in the xml editor and change your ProviderManifestToken value to 2005 since you are using sql 2005
 
 
http://sivapinnaka.spaces.live.com/Blog/cns!B027EF7E7070AD69!144.entry
Reply posted by phuonglewis 9 months 16 days ago View Branch And Reply
Yeah, this is it! Thank you so much! I solved my problem :)
 1 2 3 4