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

上传后后的文件命名为:"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.

有人遇到过吗?


翻过高山走不出你
浏览 632回答 2
2回答

哔哔one

regarding the origin and location of the exception can be identified using the exception stack trace below. 找出原始的异常信息看。从你的说明看,应该是路径CreateDocument-Admin-6\15\不存在,此时,应该先判断下路径是否存在,不存在则先创建路径再创建文件。或者你把文件名中的\替换为-

慕的地10843

系统不允许建立这样名称的文件,修改下格式就行了,例如:*****_2012_06_19.文件后缀
打开App,查看更多内容
随时随地看视频慕课网APP