摘要:
错误消息:超过了最大请求长度错误原因:asp.net默认最大上传文件大小为4M,运行超时时间为90S。解决方案:1. 修改web.config文件可以改变这个默认值 <configuration> <system.web> <httpRuntime maxRequestLength="1048576" executionTimeout="3600" /> </system.web> <configuration>2.另一种方法是修改.NET FrameWork:(1) 修改 C:/WINDOWS 阅读全文
摘要:
产生字符串:(例:49f949d735f5c79e)Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->privatestring GenerateId() { long i =1; foreach (byte b in Guid.NewGuid().ToByteArray()) { i *= ((int)b +1); } returnstring.Format("{0:x}", i - DateTime.Now.Ticks) 阅读全文