question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fail: Microsoft.AspNetCore.Server.Kestrel, Version=1.0.0.0, Culture=neutral, Pub licKeyToken=adb9793829ddae60[0]

See original GitHub issue

Hi everyone Today I got a problem and I don’t know why it happened, I integration between caching redis and .net core version RC2, Anyone can help fail: Microsoft.AspNetCore.Server.Kestrel, Version=1.0.0.0, Culture=neutral, Pub licKeyToken=adb9793829ddae60[0] UvConnectionCb fail: Microsoft.AspNetCore.Server.Kestrel, Version=1.0.0.0, Culture=neutral, Pub licKeyToken=adb9793829ddae60[0] UbReadCb System.TypeLoadException: Method 'get_RawTarget' in type 'Microsoft.AspNetCore.S erver.Kestrel.Http.Frame1’ from assembly ‘Microsoft.AspNetCore.Server.Kestrel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ does not have an implementation. at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.<>c__DisplayClass11_01. <Start>b__0(ConnectionContext context) at Microsoft.AspNetCore.Server.Kestrel.Http.Connection.Start() at Microsoft.AspNetCore.Server.Kestrel.Http.ListenerPrimary.DispatchConnectio n(UvStreamHandle socket) at Microsoft.AspNetCore.Server.Kestrel.Http.TcpListenerPrimary.OnConnection(U vStreamHandle listenSocket, Int32 status) at Microsoft.AspNetCore.Server.Kestrel.Http.Listener.ConnectionCallback(UvStr eamHandle stream, Int32 status, Exception error, Object state) at Microsoft.AspNetCore.Server.Kestrel.Networking.UvStreamHandle.UvConnection Cb(IntPtr handle, Int32 status) System.TypeLoadException: Method 'get_RawTarget' in type 'Microsoft.AspNetCore.S erver.Kestrel.Http.Frame1’ from assembly ‘Microsoft.AspNetCore.Server.Kestrel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ does not have an implementation. at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.<>c__DisplayClass11_01. <Start>b__0(ConnectionContext context) at Microsoft.AspNetCore.Server.Kestrel.Http.Connection.Start() at Microsoft.AspNetCore.Server.Kestrel.Http.ListenerSecondary.ReadStartCallba ck(UvStreamHandle handle, Int32 status) at Microsoft.AspNetCore.Server.Kestrel.Networking.UvStreamHandle.UvReadCb(Int Ptr handle, Int32 status, uv_buf_t& buf) Unhandled Exception: System.TypeLoadException: Method 'get_RawTarget' in type 'M icrosoft.AspNetCore.Server.Kestrel.Http.Frame1’ from assembly ‘Microsoft.AspNet Core.Server.Kestrel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829 ddae60’ does not have an implementation. at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.<>c__DisplayClass11_01. <Start>b__0(ConnectionContext context) at Microsoft.AspNetCore.Server.Kestrel.Http.Connection.Start() at Microsoft.AspNetCore.Server.Kestrel.Http.ListenerPrimary.DispatchConnectio n(UvStreamHandle socket) at Microsoft.AspNetCore.Server.Kestrel.Http.TcpListenerPrimary.OnConnection(U vStreamHandle listenSocket, Int32 status) at Microsoft.AspNetCore.Server.Kestrel.Http.Listener.ConnectionCallback(UvStr eamHandle stream, Int32 status, Exception error, Object state) at Microsoft.AspNetCore.Server.Kestrel.Networking.UvStreamHandle.UvConnection Cb(IntPtr handle, Int32 status) at Microsoft.AspNetCore.Server.Kestrel.Networking.Libuv.NativeMethods.uv_run( UvLoopHandle handle, Int32 mode) at Microsoft.AspNetCore.Server.Kestrel.Networking.Libuv.run(UvLoopHandle hand le, Int32 mode) at Microsoft.AspNetCore.Server.Kestrel.KestrelThread.ThreadStart(Object param eter) --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Server.Kestrel.KestrelThread.Stop(TimeSpan timeout) at Microsoft.AspNetCore.Server.Kestrel.KestrelEngine.Dispose() at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Dispose() at Microsoft.AspNetCore.Hosting.Internal.WebHost.Dispose() at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, Cancella tionToken token, String shutdownMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tratchercommented, Oct 21, 2016

Also remove Microsoft.Owin.Security.Jwt, it doesn’t work with ASP.NET Core.

1reaction
pranavkmcommented, Oct 21, 2016

It’s not entirely clear where the mismatch might be looking at this one file (I’d have to look at the lock file to tell), but I’d recommend you update to the RTM quality builds. Here’s what your project.json should look like:

{
  "dependencies": {
    "Microsoft.AspNetCore.Diagnostics": "1.0.0",
    "Microsoft.AspNetCore.Mvc": "1.0.0",
    "Microsoft.AspNetCore.Razor.Design": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
    "Microsoft.AspNetCore.StaticFiles": "1.0.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
    "Microsoft.Extensions.Configuration.Json": "1.0.0",
    "Microsoft.Extensions.Logging": "1.0.0",
    "Microsoft.Extensions.Logging.Console": "1.0.0",
    "Microsoft.Extensions.Logging.Debug": "1.0.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
    "MongoDB.Driver": "2.2.4",
    "WBS.Common": "1.0.0-*",
    "WBS.Entities": "1.0.0-*",
    "WBS.Service": "1.0.0-*",
    "WBS.DataAccess": "1.0.0-*",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
    "Microsoft.Extensions.DependencyInjection": "1.0.0",
    "System.IdentityModel.Tokens.Jwt": "5.0.0",
    "Microsoft.AspNetCore.Authentication.JwtBearer": "1.0.0",
    "Microsoft.AspNetCore.Cors": "1.0.0",
    "Microsoft.Owin.Security.Jwt": "3.0.1",
    "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
    "WBS.Caching": "1.0.0-*"
  },

  "tools": {
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.0.0-preview2-final"
    },
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
      "version": "1.0.0-preview2-final"
    }
  },

  "frameworks": {
    "net461": { }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },

  "runtimeOptions": {
    "gcServer": true
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "Views",
      "appsettings.json",
      "web.config"
    ]
  },

  "scripts": {
    "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }
}

Perhaps updating it should address the issue you’re seeing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found