Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

When using EntityFramework.InMemory System.IO.DirectoryNotFoundException thrown on OSX #203

Closed
spboyer opened this issue Feb 26, 2015 · 6 comments

Comments

@spboyer
Copy link

spboyer commented Feb 26, 2015

Temporary directory cannot be created/found on OSX

https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNet.Http.Core/BufferingHelper.cs#L25-L29

@sayedihashimi

@sayedihashimi
Copy link

That sucks, is there any way to override in yo templates to workaround it?

@spboyer
Copy link
Author

spboyer commented Feb 26, 2015

working feverishly to figure out.

@spboyer
Copy link
Author

spboyer commented Feb 26, 2015

Full stack error
running under OSX, Yosemite. beta3

An unhandled exception occurred while processing the request.

DirectoryNotFoundException: Exception of type 'System.IO.DirectoryNotFoundException' was thrown.
Microsoft.AspNet.Http.Core.BufferingHelper.get_TempDirectory () [0x00000] in <filename unknown>, line 0

Stack Query Cookies Headers Environment
DirectoryNotFoundException: Exception of type 'System.IO.DirectoryNotFoundException' was thrown.
Microsoft.AspNet.Http.Core.BufferingHelper.get_TempDirectory () [0x00000] in <filename unknown>
Microsoft.AspNet.Http.Core.BufferingHelper.EnableRewind (Microsoft.AspNet.Http.HttpRequest request, Int32 bufferThreshold) [0x00000] in <filename unknown>
Microsoft.AspNet.Http.Core.FormFeature+<ReadFormAsync>d__12.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.AntiForgeryTokenStore+<GetFormTokenAsync>d__4.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.AntiForgeryWorker+<ValidateAsync>d__15.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.AntiForgery+<ValidateAsync>d__5.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.ValidateAntiForgeryTokenAuthorizationFilter+<OnAuthorizationAsync>d__2.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAuthorizationFilterAsync>d__35.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAuthorizationFilterAsync>d__35.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAllAuthorizationFiltersAsync>d__34.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAsync>d__32.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.MvcRouteHandler+<InvokeActionAsync>d__3.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.MvcRouteHandler+<RouteAsync>d__2.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Routing.Template.TemplateRoute+<RouteAsync>d__25.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Routing.RouteCollection+<RouteAsync>d__9.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Builder.RouterMiddleware+<Invoke>d__5.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+<Invoke>d__11[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
System.Threading.Tasks.TaskExtensions+CultureAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Diagnostics.Entity.MigrationsEndPointMiddleware+<Invoke>d__5.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
System.Threading.Tasks.TaskExtensions+CultureAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware+<Invoke>d__6.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware+<Invoke>d__6.MoveNext () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware+<Invoke>d__4.MoveNext () [0x00000] in <filename unknown>

@Eilon
Copy link
Contributor

Eilon commented Feb 26, 2015

That's a pretty awesome error, with a pretty awesome TODO comment :trollface:

@muratg when you get back can you have someone take a look at this?

@Tratcher
Copy link
Member

Dup: #168

@Eilon
Copy link
Contributor

Eilon commented Feb 26, 2015

Oh yeah that's an exact dup isn't it.

@Eilon Eilon closed this as completed Feb 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants