{"The underlying provider failed on Open."}

Mar 30, 2011 at 6:54 PM

Downloaded and ran MvcSiteMapProvider 2.3.1 Sample Application and get the following exception. Such a shame...

{"The database 'C:\\USERS\\XXXXX\\DOWNLOADS\\MVCSITEMAPPROVIDER 2.3.1 SAMPLE APPLICATION\\MVCMUSICSTORE\\APP_DATA\\MVCMUSICSTORE.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported.\r\nCould not open new database 'C:\\USERS\\XXXXX\\DOWNLOADS\\MVCSITEMAPPROVIDER 2.3.1 SAMPLE APPLICATION\\MVCMUSICSTORE\\APP_DATA\\MVCMUSICSTORE.MDF'. CREATE DATABASE is aborted.\r\nAn attempt to attach an auto-named database for file C:\\Users\\XXXXX\\Downloads\\MvcSiteMapProvider 2.3.1 Sample Application\\MvcMusicStore\\App_Data\\MvcMusicStore.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."}

   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
   at System.Data.EntityClient.EntityConnection.Open()
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MvcMusicStore.Controllers.HomeController.GetTopSellingAlbums(Int32 count) in C:\Users\XXXXX\Downloads\MvcSiteMapProvider 2.3.1 Sample Application\MvcMusicStore\Controllers\HomeController.cs:line 29
   at MvcMusicStore.Controllers.HomeController.Index() in C:\Users\v-levcra\Downloads\MvcSiteMapProvider 2.3.1 Sample Application\MvcMusicStore\Controllers\HomeController.cs:line 19
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuatio

Coordinator
Apr 5, 2011 at 6:32 AM

The example uses SQLEXPRESS located at .\SQLEXPRESS to run.