buguge - Keep it simple,stupid

知识就是力量,但更重要的,是运用知识的能力why buguge?

导航

2017年4月17日 #

System.Web.HttpException (0x80004005): 验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。

摘要: 同一个站点内两个页面a.aspx和b.aspx。a.aspx里是一个服务器表单控件,其action指向的是b.aspx。本地测试是正常的。线上是nginx部署的,在提交表单时出现了上面的异常。 阅读全文

posted @ 2017-04-17 21:47 buguge 阅读(2268) 评论(0) 推荐(0) 编辑

Unable to update the EntitySet 'T_JsAPI' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

摘要: If Entity Framework can't figure out the primary key, it will generate a SELECT statement but it won't be able to create the according INSERT, UPDATE and DELETE statements.(如果EF找不到pk,它将生成一个selelct语句,但不会生成相应的增删改语句) 阅读全文

posted @ 2017-04-17 15:08 buguge 阅读(457) 评论(0) 推荐(0) 编辑