【发布时间】:2010-11-29 15:39:08
【问题描述】:
我刚刚将一个旧的经典 ASP 站点从一个 win2003 IIS6 机器移到了一个 Win2008R2 IIS7 机器上,除了一件事之外一切都很好。
我有一个小方法可以让用户下载订单的 CSV,方法如下:
sub DownloadOrders()
Response.clear
'Send headers for file name and content type changes
Response.AddHeader "Content-Disposition", "attachment; filename=orders.csv"
Response.ContentType = "application/text"
for I = 0 to ubound(theorderslist,2)
if I = 0 then
Response.Write("Order No,Date,Name,Address,Town/City,Country,Sub Total,Tax,Shipping,Total,Status" & vbCrLf)
end if
Response.Write("" & pOrderPrefix & "-" & theorderslist(0,I) & "," & theorderslist(3,I) & "," & theorderslist(5,I) & " " & theorderslist(7,I) & "," & Replace(theorderslist(8,I),","," ") & "," & Replace(theorderslist(12,I),","," ") & "," & theorderslist(13,I) & "," & theorderslist(14,I) & "," & theorderslist(15,I) & "," & theorderslist(16,I) & "," & theorderslist(4,I) & "," & orderStatusDesc(theorderslist(10,I)) & vbCrLf)
next
Response.End
end sub
现在如果我点击链接,我得到的只是 404 错误?我什至给了目录完整的修改权限,但仍然没有运气?有什么想法我还能尝试吗?
如上所述,多年来这一直在 Win2003 机器上完美运行 :(
【问题讨论】:
-
Chrome 给我这个错误信息:找不到文件或目录。
标签: iis-7 vbscript asp-classic windows-server-2008