Reputation: 233
I have an asp.net application that writes some physical files in a folder of the server.
While I work in my test environment I can download the files clicking on the dynamical links, but after I deployed the application I can't download the files anymore.
I'm getting the standard - The page cannot be found error page
.
Also I can download the file after I add an extension, like this
server/TempFiles/1b008aaa-47ad-4fd7-b95d-05ef81a1785c.txt
but downloading the file without ".txt" is not possible.
How to repair this behavior?
Upvotes: 0
Views: 1085
Reputation: 399
IIS doesn't know how to serve up files without extensions this is why it treated it as a link and looked for a page or directory with that name, to which it couldn't find one. I'm not an IIS guru but you may be able to configure IIS to serve up those files, but you will have to treat them as some type I would imagine.
Upvotes: 1