How can I allow HTTP messages "404" and "405"?

Are HHTP errors β€œ404” and β€œ405” a step in the right direction after β€œ400” errors?

After modifying my applicationhost.config file based on step 3 in this article , from this:

<site name="HHS.Web" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\project\git\CStore\HHS.Web" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:21608:localhost" />
        <binding protocol="http" bindingInformation="*:21608:shannon2" />
    </bindings>
</site>
<site name="HHS.API" id="4">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\project\git\CStore\HHS.API" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:21609:localhost" />
        <binding protocol="http" bindingInformation="*:21609:shannon2" />
    </bindings>
</site>

... to that:

<site name="HHS.Web" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\project\git\CStore\HHS.Web" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:21608:" />
    </bindings>
</site>
<site name="HHS.API" id="4">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\project\git\CStore\HHS.API" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:21609:" />
    </bindings>
</site>

... and restart IIS Express after that rigamarole (step 4 in the same article that was mentioned above):

enter image description here

.... I get when I start the application instead of the old err ("400 - Bad Request"), it differs from another, but more common problem: "404 - not found"

However, if I enter the URL in IE on the handheld device and run it, I get: "405 - Resource Not Allowed"

- , / - , ?

UPDATE

URL- (Chrome), :

// hostname / machine name:
"http://shannon2:21608/api/inventory/sendxml/bla/bla/bla" gives me:

HTTP 503. .

// IP Address:
"http://192.168.125.50:21608/api/inventory/sendxml/bla/bla/bla" gives me:

<Error>
<Message>
The requested resource does not support http method 'GET'.
</Message>
</Error>

// locohost:
"http://localhost:21608/api/inventory/sendxml/bla/bla/bla" gives me the same response as using the IP Address (192.168.125.50) above.

// locohost as IP Address
"http://127.0.0.1:21608/api/inventory/sendxml/bla/bla/bla" also gives me the same response as using the IP Address (192.168.125.50) or localhost as shown above.

2

(IE) :

127.0.0.1 URL- " DNS"

192.168.125.50 ( IP- ) "HTTP 405 - "

3

Gretelman, (), , :

netsh http add urlacl url=http://hanselman-w500:80/ user=everyone

... ; , , :

netsh http add urlacl url=http://shannon2:80/ user=everyone

80? , REST Web API, 21608...

:

netsh http add urlacl url=http://shannon2:21608/ user=everyone

?

4

:

iisexpress.exe site:"HHS.Web"

IIS Express - , HSS.Web ( , IIS Express " " ), HHS.API, , , - err-, ,

5

3, , :

netsh http add urlacl url=http://shannon2:80/ user=everyone

... :

netsh http add urlacl url=http://shannon2:8080/ user=everyone

..., - ( 80 8080 ). , , . "21608" "21609", :

enter image description here

+3
1

IIS Express /, HTTP.SYS .

, .

, , : http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

IIS Express 80 / ( Easy Ninja/Hard). URL- ASP.NET https (SSL) .

, , , , . (, , ).

EDIT:

, , ( ), [http://www.iis.net/learn/extensions/using-iis-express/handling-url-binding-failures-in-iis-express], SO Post [ IIS Express VS2010].

+1

All Articles