05 2017 档案
摘要:之前一直以为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
阅读全文
摘要:Data too long for column 'xxx' at row 数据库的默认的utff-8,且连接的字符串也设置了utf-8,数据库字段用的text,但是还是报错,原因超出了长度,要最大的话可以设置为LONGTEXT
阅读全文
摘要:The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other
阅读全文