buguge - Keep it simple,stupid

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

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

04 2017 档案

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 阅读(2289) 评论(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 阅读(463) 评论(0) 推荐(0) 编辑

HttpContext.Current.Items的用途
摘要:它只作用于单独的一个用户请求(HttpContext.Current.Items valid for a single HTTPRequest)。完成这个请求,服务器信息传回浏览器的时候,这个Item集合将丢失。 阅读全文

posted @ 2017-04-11 21:13 buguge 阅读(892) 评论(0) 推荐(0) 编辑

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'
摘要:System.Data.Entity.Core.MetadataException: Schema specified is not valid. Errors: PaycenterModels.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. 阅读全文

posted @ 2017-04-07 18:52 buguge 阅读(1122) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示