为了账号安全,请及时绑定邮箱和手机立即绑定

An unhandled exception 。。有关文件夹中含有日期格式 asp.net

An unhandled exception 。。有关文件夹中含有日期格式 asp.net

繁华开满天机 2018-11-21 11:09:30
上传后后的文件命名为:"createdocument-admin_2012\06\19.文件后缀".如:CreateDocument-Admin-6\15\2012_134.html。调试的时候报:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.有人遇到过吗?

2 回答

?
繁花如伊

TA贡献2012条经验 获得超12个赞

regarding the origin and location of the exception can be identified using the exception stack trace below.

 

找出原始的异常信息看。

从你的说明看,应该是路径CreateDocument-Admin-6\15\不存在,此时,应该先判断下路径是否存在,不存在则先创建路径再创建文件。

或者你把文件名中的\替换为-


查看完整回答
反对 回复 2018-11-25
  • 2 回答
  • 0 关注
  • 366 浏览

添加回答

代码语言

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号