猿问

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.

有人遇到过吗?


繁华开满天机
浏览 363回答 2
2回答

繁花如伊

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