Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Running IIS 7

I'm running on a shared hosting account and I have a file on my server named +.jpg but when I try to navigate to it via the URL

   http://example.com/images/%2b.jpg

The server doesn't respond properly and my browser returns "Webpage not found" error.

On my developer machine, this works fine. What option should I tell my hoster to enable so that URLs of that sort are accepted?

share|improve this question
    
any reason why it has to be +.jpg? that's an umm odd file name –  Zypher Jan 9 '10 at 6:53
    
This was just a file to test. There are files are automatically uploaded that have + in their name. They also display the same error. –  Omar Jan 9 '10 at 7:16
add comment

1 Answer

up vote 1 down vote accepted
+150

Looks like the issue is a 404.11 error caused by a double escape sequence:

HTTP Error 404.11 - Not Found The request filtering module is configured to deny a request that contains a double escape sequence.

and is detailed in this KB article.

Running this command:

Appcmd set config "Default Web Site" /section:system.webServer/Security/requestFiltering -allowDoubleEscaping:True

allows the file to be served.

In your case, you can add this section to your application's web.config:

<requestFiltering allowDoubleEscaping="true" />

as described in this TechNet article.

share|improve this answer
    
On a shared host, asking them to do this, let us see what they say. –  Omar Jan 13 '10 at 2:13
    
You can add this to the web.config also. –  Christopher_G_Lewis Jan 13 '10 at 4:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.