随笔分类 - mvc
mvc
摘要:System.MissingMethodException:“找不到方法:“System.Web.Routing.RouteValueDictionary System.Web.WebPages.TypeHelper.ObjectToDictionaryUncached(System.Object)
阅读全文
摘要:玛丝菲尔 做定制服装,上门服务的,算中高端品牌。有APP -“试衣到家” (利润不知道如何)),看名称就知道做什么的, 技术.NET Core(VS2019) +mmsql+git,jenkins 自动部署。研发部约30个,主要做“试衣到家”。福利:5:30准时下班(研发也是这个点下班哦,因为有公司
阅读全文
摘要:System.IO.FileLoadException: 未能加载文件或程序集“System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹
阅读全文
摘要:he 'Access-Control-Allow-Origin' header contains multiple values ', *', but only one is allowed. Origin 'http://' is therefore not allowed acce 原因是api
阅读全文
摘要:/// <summary> /// WCF服务端异常处理器 /// </summary> public class WCF_ExceptionHandler : IErrorHandler { public bool HandleError(Exception error) { return tru
阅读全文
摘要:using Newtonsoft.Json;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Text;using S
阅读全文
摘要:原来IDFA(IOS推广获取到用户IOS手机的唯一标识,如果不刷机的话跟安卓的IMEI一样)在公司正常的页面是公用用一个网站和数据库的。 起初怀疑并发数太多,把数据库连接池的数量从一百设置到三百,确实有点反应,但是支持不到一天就又报错。 查看了webapi连接wcf很多都超时,一台api和wcf不够
阅读全文
摘要:之前一直以为HandleErrorAttribute 可以捕获到后面自己尝试了不行,又自己想自定义页面,发现不行,然后设置了<customErrors/>节点 又不符合SEO 返回statuscode=404 不利于搜索引擎抓取,看到孙大城 文章才发现原来 随着ASP.NET MVC版本的更新,出现
阅读全文
摘要:public class newDomainRoute : Route { private Regex domainRegex; private Regex pathRegex; public string Domain { get; set; } public newDomainRoute(str
阅读全文
摘要:The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other
阅读全文
摘要:iis 7 - WebApi's {"message":"an error has occurred"} 原因是web api的Controller有两个类名重复了,且在Global中HttpConfiguration类配置的Routes又没办法没有配置指明来至哪个命名空间下面的类,所以查询的返回接
阅读全文