J
Joey
asp.net 2/C#/VS2005
I have a web app where I use a stream writer to create a CSV (text)
file. I then use my code to save the file in the site's 'App_Data'
folder, in a subfolder called 'Temp'. Finally, I redirect the page to
that file in order to serve it out (push the download) to the user.
This all worked great in .net v1.1.
Now, in my new .net v2 app, everytime the page redirect occurs, the
browser displays "The webpage cannot be found." I have verified that
the file is located in 'App_Data' folder. I have also verified that
the redirect is going to the correct URL. I even tried manually typing
the URL ("http://localhost/App_Data/Temp/MyFile.csv") into the browser
- same result.
I also thought this problem might be occurring due to IIS not having a
mapping for the CSV filetype, so went to the IIS snap in and added it.
I basically used the same aspnet DLL file and verbs as for the aspx
pages. After stopping and restarting the site, it still gives the "The
webpage cannot be found" message.
What can I do to make this work?
I have a web app where I use a stream writer to create a CSV (text)
file. I then use my code to save the file in the site's 'App_Data'
folder, in a subfolder called 'Temp'. Finally, I redirect the page to
that file in order to serve it out (push the download) to the user.
This all worked great in .net v1.1.
Now, in my new .net v2 app, everytime the page redirect occurs, the
browser displays "The webpage cannot be found." I have verified that
the file is located in 'App_Data' folder. I have also verified that
the redirect is going to the correct URL. I even tried manually typing
the URL ("http://localhost/App_Data/Temp/MyFile.csv") into the browser
- same result.
I also thought this problem might be occurring due to IIS not having a
mapping for the CSV filetype, so went to the IIS snap in and added it.
I basically used the same aspnet DLL file and verbs as for the aspx
pages. After stopping and restarting the site, it still gives the "The
webpage cannot be found" message.
What can I do to make this work?