上傳后后的文件命名為:"createdocument-admin_2012\06\19.文件后綴".如:CreateDocument-Admin-6\15\2012_134.html。調(diào)試的時(shí)候報(bào):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 回答

嗶嗶one
TA貢獻(xiàn)1854條經(jīng)驗(yàn) 獲得超8個(gè)贊
regarding the origin and location of the exception can be identified using the exception stack trace below.
找出原始的異常信息看。
從你的說明看,應(yīng)該是路徑CreateDocument-Admin-6\15\不存在,此時(shí),應(yīng)該先判斷下路徑是否存在,不存在則先創(chuàng)建路徑再創(chuàng)建文件。
或者你把文件名中的\替換為-

慕的地10843
TA貢獻(xiàn)1785條經(jīng)驗(yàn) 獲得超8個(gè)贊
系統(tǒng)不允許建立這樣名稱的文件,修改下格式就行了,例如:*****_2012_06_19.文件后綴
- 2 回答
- 0 關(guān)注
- 770 瀏覽
添加回答
舉報(bào)
0/150
提交
取消