Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Using an active logger (not NullLogger) with TestHost results in a null ref #532

Closed
pranavkm opened this issue Dec 21, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@pranavkm
Copy link
Contributor

From aspnet/Mvc#3796 (comment). Here's the stack trace:

System.NullReferenceException : Object reference not set to an instance of an object.
Stack Trace:
   at Microsoft.AspNet.Http.Internal.DefaultHttpRequest.get_Protocol()
   at Microsoft.AspNet.Hosting.Internal.HostingLoggerExtensions.HostingRequestStarting.ToString()
   at Microsoft.AspNet.Hosting.Internal.HostingLoggerExtensions.HostingRequestStarting.<>c.<.cctor>b__7_0(Object state, Exception exception)
   at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log(LogLevel logLevel, Int32 eventId, Object state, Exception exception, Func`3 formatter)
   at Microsoft.Extensions.Logging.Logger.Log(LogLevel logLevel, Int32 eventId, Object state, Exception exception, Func`3 formatter)
@JunTaoLuo
Copy link
Contributor

Merged to dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants