ServiceStack的NuGet更新4.0.22到4.0.31造成了部署错误 [英] ServiceStack NuGet update 4.0.22 to 4.0.31 caused errors on deployment

查看:138
本文介绍了ServiceStack的NuGet更新4.0.22到4.0.31造成了部署错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望不要被含糊这里,但我只是做了一个ServiceStack更新的NuGet从4.0.22版本更新到4.0.31,该项目编译正常,但一旦部署到IIS我越来越这个错误时,我打的部位。

I'm hoping not to be to vague here, but I've just done a NuGet update for ServiceStack, updating from version 4.0.22 to 4.0.31, the project compiles fine but once deployed to iis I'm getting this error when I hit the site.

方法'get_Cookies从装配式'ServiceStack.Host.AspNet.AspNetRequest'ServiceStack,版本= 4.0.31.0,文化=中性公钥=空'没有实现。

Method 'get_Cookies' in type 'ServiceStack.Host.AspNet.AspNetRequest' from assembly 'ServiceStack, Version=4.0.31.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

想知道其他人是否有这个错误?

Wondering if anyone else is having this error?

推荐答案

转换 ServiceStack.Interfaces.dll v4.0.30纯PCL DLL ServiceStack的副作用是引用接口与 System.Net 类项目,现在需要的明确提及System.Net

A side-effect of ServiceStack converting ServiceStack.Interfaces.dll into a pure PCL dll in v4.0.30 is that projects that reference interfaces with System.Net classes now require an explicit reference to System.Net.

从类似的 NET 4.0问题与谷歌的OAuth PCL库


  1. 请确保您的.NET框架修补。 微软发布补丁,.NET 4.0 允许携带等级库才能正常找到合适的运行时(资讯 KB2468871 )。如果您看到上述异常(或类似的东西),这意味着你错过了最新的.NET Framework的补丁。

  1. Make sure your .NET framework is patched. Microsoft released patches to .NET 4.0 to allow Portable Class Libraries to properly find the appropriate runtime (info KB2468871). If you are seeing the above exception (or something like it), it means you're missing the latest .NET framework patches.

安装.NET 4.0全简介

Install .NET 4.0 full profile

这篇关于ServiceStack的NuGet更新4.0.22到4.0.31造成了部署错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆