1

I have issue with my webapi.

All commands works fine until in adress i have + or %2B.

When i try to do this, i always getting:

HTTP Error 404.11 - Not Found

I don't have experience in IIS configuration (i am green in it), and don't see any configuration file inside project.

Rena
  • 30,832
  • 6
  • 37
  • 72
Obyi
  • 617
  • 1
  • 6
  • 13
  • Possible duplicate of https://stackoverflow.com/questions/11964287/http-error-404-11-not-found-double-escape-sequence – Arib Yousuf Mar 16 '21 at 13:45

1 Answers1

3

For cannot use plus symbol in route,this is an IIS issue:

Please look at the following post:

double escape sequence inside a url : The request filtering module is configured to deny a request that contains a double escape sequence

You need add the following section in your web.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration> 
  <system.webServer>
    <security>
      <requestFiltering allowDoubleEscaping="true" />
    </security>
  </system.webServer>
</configuration>

Result:

enter image description here

Note:

If you do not have web.config file in your project,you could follow the steps to create it:

1.Right-click your project->choose Add->choose New Item:

enter image description here

2.Search config in search bar->choose Web Configuration File:

enter image description here

Rena
  • 30,832
  • 6
  • 37
  • 72