Options

The request failed with HTTP status 400: Bad Request.

pravin_crystalpravin_crystal Member Posts: 11
edited 2011-01-24 in NAV Three Tier
Dear Everybody,

I m working with web services in my web application. and i m facing one problem with error "The request failed with HTTP status 400: Bad Request." Other web references are working very well.

Please try and reply asap.


Pravin,

Comments

  • Options
    Ashish_GuptaAshish_Gupta Member Posts: 56
    hi
    First please check your services that they are working or not and also check your web service table in navision that your check the publish column in table
    Ashish Gupta
    Navision Technical Consultant
  • Options
    PhiltooPhiltoo Member Posts: 36
    A real answer would be appreciated.
  • Options
    ArmondsArmonds Member Posts: 66
    I have similar problem.

    I removed original service and created new NAV and Web service on ports 7050 and 7051 with domain user permissions. Services starts successful. I can connect with RTC from any computer in AD. SQL DB and App Server are on the same server.

    But to web services I can connect only from server. When I'm trying to connect to WS from other computers authentication windows pops up and after entering user name I'm getting error:

    "This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address."

    URL I'm using to test WS:
    http://server.domain.lv:7051/Company/WS ... A/Services or http://server.domain.lv:7051/Company/WS/Services

    One thing I noticed, that when I'm restarting services in event I get errors:
    Type: System.IO.IOException
    Message: The process cannot access the file '__TEMP__08E6CCCA5A98422A9D0F8DDD28E50D06.tmp' because it is being used by another process.
    StackTrace:
    at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
    at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
    at System.IO.Directory.Delete(String path, Boolean recursive)
    at Microsoft.Dynamics.Nav.Runtime.TempPathHelper.RemovePath(String path)
    Source: mscorlib

    but services starts successful...

    Any ides, what I missed or did wrong?
  • Options
    ArmondsArmonds Member Posts: 66
    problem solved: problem was with SPN for HTTP service

    thanks to this post: http://blogs.msdn.com/b/nav_developer/a ... setup.aspx
Sign In or Register to comment.