Я только что переместил старый классический сайт 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 в течение многих лет: (