Last post May 06, 2013 11:29 AM by SeniB
May 06, 2013 10:14 AM|SeniB|LINK
I'm trying to download files from server but I allways receive that message from server could not be parsed. My files folder is on different disc and I'll rather not to use URI because I can't hardcode URL (application is distribured in several intranet
Here is my code
' this is path from database and contains path and name of file on D: disc
filename=" & objSourceFileinfo.Name)
.ContentType = mime_dokumenta ' mime is collected from database. in this case "application/pdf"
stayed out of ideas what can cause this kind of error and probably it is something obvious. I allready lost half of day on this one :(
May 06, 2013 10:26 AM|sameer_khanjit|LINK
"ASPNet or Iuser" user of IIS servser does have access to remote localtion(UNC path) ?
path should be like :- "\\server\d$\a.txt"
May 06, 2013 10:27 AM|Prashant Kumar|LINK
Do a Response.Clear before setting the Response headers.
May 06, 2013 10:34 AM|Prashant Kumar|LINK
Is this call an AJAX call? File download can only happen on a postback.
May 06, 2013 10:43 AM|SeniB|LINK
It is AJAX call and it triggers on postback. I manage it with triggers, but it's not the issue...
May 06, 2013 10:44 AM|SeniB|LINK
I cleared it before setting response headers but no luck... Problem must lays somewhere else...
May 06, 2013 11:03 AM|Prashant Kumar|LINK
You cannot download a file on an AJAX call.
May 06, 2013 11:29 AM|SeniB|LINK
Is there any work around that you know of?