IIS 6.0 resx download problem.
am 15.10.2007 15:58:51 von gazate
Hi There,
I=B4m trying to download a .resx file from an W2k3 SP2 IIS 6. The
Problem:
I can see the resx files when I browse the directory, but downloading
or seeing them "as page" doesn=B4t work. I already deleted the .resx
string from the configuration of the directory.
Before it was deleted was the error (in the logs of the IIS) No. 403
and 200. After deleting it is 404.
So, the file is there and can not be run (403/200), but whe I try
deleting .resx from the config the file is gone (the IIS thinks...).
But I can see the file by listing the directory in IE an Firefox, but
when I click the file: 404...
Does someone know how to fix that problem?
Thank you for your help!
Gazate
Re: IIS 6.0 resx download problem.
am 15.10.2007 21:35:02 von David Wang
On Oct 15, 6:58 am, gazate wrote:
> Hi There,
>
> I=B4m trying to download a .resx file from an W2k3 SP2 IIS 6. The
> Problem:
>
> I can see the resx files when I browse the directory, but downloading
> or seeing them "as page" doesn=B4t work. I already deleted the .resx
> string from the configuration of the directory.
> Before it was deleted was the error (in the logs of the IIS) No. 403
> and 200. After deleting it is 404.
> So, the file is there and can not be run (403/200), but whe I try
> deleting .resx from the config the file is gone (the IIS thinks...).
> But I can see the file by listing the directory in IE an Firefox, but
> when I click the file: 404...
>
> Does someone know how to fix that problem?
>
> Thank you for your help!
>
> Gazate
The server is configured to actively prevent you from
downloading .resx files, so it's not exactly a "problem".
You can either:
1 change .config file to map .resx to the same handler as .aspx
Or you can:
1 Add MIME Type for .resx for that URL
2 Remove .resx Application Mapping for that URL
Basically, with all three of the above configurations, .resx is routed
from IIS to ASP.Net to its "forbidden" handler, which returns a 403,
and prevents download. To enable downloading, you have to break the
routing, which means you either change .config to route the .resx
request to a .Net static file handler that serves the file and won't
return 403, or you change .resx to be directly handled by the IIS
Static File Handler and not route it to ASP.Net and its "forbidden"
handler configuration.
Generally, changing the above configuration is incorrrect. What are
you really trying to accomplish?
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Re: IIS 6.0 resx download problem.
am 16.10.2007 08:23:34 von gazate
I=B4m trying to getz the resx file that is part of a dowloadble software
update ready to be downloaded.
Thank you for you help. I=B4ll try that later today.
But I already removed the .resx Application Mapping from the page.
The config file is named web.config? And to what do I have to change
the line "Web.Application.forbidden"?
Thanks again...
Gazate