Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.12 KB | None | 0 0
  1. Cannot attach the file 'D:\Libraries\Documents\Visual Studio 2013\Repo\WebApp\WebApp\WebApp.Web\App_Data\aspnet-WebApp-20131019024822.mdf' as database 'aspnet-WebApp-20131019024822'.
  2.  
  3. 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.
  4.  
  5. Exception Details: System.Data.SqlClient.SqlException: Cannot attach the file 'D:\Libraries\Documents\Visual Studio 2013\Repo\WebApp\WebApp\WebApp.Web\App_Data\aspnet-WebApp-20131019024822.mdf' as database 'aspnet-WebApp-20131019024822'.
  6.  
  7. Source Error:
  8.  
  9.  
  10. Line 45: if (ModelState.IsValid)
  11. Line 46: {
  12. Line 47: var user = await UserManager.FindAsync(model.UserName, model.Password);
  13. Line 48: if (user != null)
  14. Line 49: {
  15.  
  16. Source File: d:\Libraries\Documents\Visual Studio 2013\Repo\WebApp\WebApp\WebApp.Web\Controllers\AccountController.cs Line: 47
  17.  
  18. Stack Trace:
  19.  
  20.  
  21. [SqlException (0x80131904): Cannot attach the file 'D:\Libraries\Documents\Visual Studio 2013\Repo\WebApp\WebApp\WebApp.Web\App_Data\aspnet-WebApp-20131019024822.mdf' as database 'aspnet-WebApp-20131019024822'.]
  22. System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +414
  23. System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
  24. System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196
  25. System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146
  26. System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16
  27. System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94
  28. System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110
  29. System.Data.SqlClient.SqlConnection.Open() +96
  30. System.Data.Entity.SqlServer.<>c__DisplayClass1.<Execute>b__0() +34
  31. System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +251
  32. System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation) +196
  33. System.Data.Entity.Core.EntityClient.EntityConnection.Open() +516
  34.  
  35. [EntityException: The underlying provider failed on Open.]
  36. System.Data.Entity.Core.EntityClient.EntityConnection.Open() +629
  37. System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection() +173
  38. System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +86
  39. System.Data.Entity.Core.Objects.<>c__DisplayClassb.<GetResults>b__9() +270
  40. System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +251
  41. System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +598
  42. System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() +89
  43. System.Lazy`1.CreateValue() +416
  44. System.Lazy`1.LazyInitValue() +152
  45. System.Lazy`1.get_Value() +75
  46. System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +40
  47. System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +164
  48. System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__1(IEnumerable`1 sequence) +83
  49. System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable`1 query, Expression queryRoot) +107
  50. System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +197
  51. System.Data.Entity.Internal.Linq.DbQueryProvider.Execute(Expression expression) +149
  52. System.Linq.Queryable.FirstOrDefault(IQueryable`1 source) +251
  53. System.Data.Entity.Internal.EdmMetadataRepository.QueryForModelHash(Func`2 createContext) +375
  54. System.Data.Entity.Internal.InternalContext.QueryForModelHash() +178
  55. System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithModel(InternalContext internalContext, ModelHashCalculator modelHashCalculator, Boolean throwIfNoMetadata) +184
  56. System.Data.Entity.Internal.InternalContext.CompatibleWithModel(Boolean throwIfNoMetadata) +99
  57. System.Data.Entity.Database.CompatibleWithModel(Boolean throwIfNoMetadata) +43
  58. System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context) +405
  59. System.Data.Entity.Internal.<>c__DisplayClasse`1.<CreateInitializationAction>b__d() +165
  60. System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +110
  61.  
  62. [DataException: An exception occurred while initializing the database. See the InnerException for details.]
  63. System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +166
  64. System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +626
  65. System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) +31
  66. System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +143
  67. System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +292
  68. System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() +123
  69. System.Data.Entity.Internal.InternalContext.Initialize() +41
  70. System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +39
  71. System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +138
  72. System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +38
  73. System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +99
  74. System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +63
  75. Microsoft.AspNet.Identity.EntityFramework.UserStore`1.FindByNameAsync(String userName) +1100
  76. Microsoft.AspNet.Identity.<FindByNameAsync>d__d.MoveNext() +231
  77. System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
  78. System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
  79. System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +24
  80. Microsoft.AspNet.Identity.<FindAsync>d__15.MoveNext() +540
  81. System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
  82. System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
  83. System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +24
  84. WebApp.Controllers.<Login>d__2.MoveNext() in d:\Libraries\Documents\Visual Studio 2013\Repo\WebApp\WebApp\WebApp.Web\Controllers\AccountController.cs:47
  85. System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
  86. System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
  87. System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21
  88. lambda_method(Closure , Task ) +64
  89. System.Threading.Tasks.TaskHelpersExtensions.ThrowIfFaulted(Task task) +37
  90. System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +114
  91. System.Web.Mvc.Async.<>c__DisplayClass34.<BeginInvokeAsynchronousActionMethod>b__33(IAsyncResult asyncResult) +65
  92. System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +47
  93. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +136
  94. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
  95. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +49
  96. System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3c() +117
  97. System.Web.Mvc.Async.<>c__DisplayClass45.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3e() +323
  98. System.Web.Mvc.Async.<>c__DisplayClass30.<BeginInvokeActionMethodWithFilters>b__2f(IAsyncResult asyncResult) +44
  99. System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +47
  100. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +136
  101. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
  102. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +50
  103. System.Web.Mvc.Async.<>c__DisplayClass28.<BeginInvokeAction>b__19() +72
  104. System.Web.Mvc.Async.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult) +185
  105. System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +42
  106. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
  107. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
  108. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
  109. System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
  110. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
  111. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
  112. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
  113. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
  114. System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
  115. System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +39
  116. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +62
  117. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
  118. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
  119. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
  120. System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
  121. System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
  122. System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +39
  123. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
  124. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +139
  125. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
  126. System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
  127. System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
  128. System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
  129. System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9688704
  130. System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement