Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web Service 400 Error

Web Service 400 Error

Scheduled Pinned Locked Moved ASP.NET
databasehelpwindows-adminalgorithmsquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Expert Coming
    wrote on last edited by
    #1

    I have a Web Service that is receiving a file, and putting into a SQL Database. For some reason this method gets an error, while all the others work. Through searching the web all the results say I need to change my IIS setup, which I did not do because it is already setup the way they want. So, any ideas why I can't call this method: public void AddSong(string Name, string Artists, string Album, string Genre, int YearPublished, string Path, DateTime DateAdded, byte[] FileData, string MD5) Without this error: The request failed with HTTP status 400: Bad Request. I can post any code you think is relavant, but with my searches it seems like it isn't a code issue. Am I doing something not allowed?

    The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

    A 1 Reply Last reply
    0
    • E Expert Coming

      I have a Web Service that is receiving a file, and putting into a SQL Database. For some reason this method gets an error, while all the others work. Through searching the web all the results say I need to change my IIS setup, which I did not do because it is already setup the way they want. So, any ideas why I can't call this method: public void AddSong(string Name, string Artists, string Album, string Genre, int YearPublished, string Path, DateTime DateAdded, byte[] FileData, string MD5) Without this error: The request failed with HTTP status 400: Bad Request. I can post any code you think is relavant, but with my searches it seems like it isn't a code issue. Am I doing something not allowed?

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      It can be cause of Access Permission. Seem, the file need to write in your system so its required permission. Did you create Application Pool on IIS. Create New Application Pool, Change the Identity of Application pool to local system, then assign the application pool to that Virtual Directory then Try test. Hope this will resolve your issue.

      cheers, Abhijit CodeProject MVP

      E 2 Replies Last reply
      0
      • A Abhijit Jana

        It can be cause of Access Permission. Seem, the file need to write in your system so its required permission. Did you create Application Pool on IIS. Create New Application Pool, Change the Identity of Application pool to local system, then assign the application pool to that Virtual Directory then Try test. Hope this will resolve your issue.

        cheers, Abhijit CodeProject MVP

        E Offline
        E Offline
        Expert Coming
        wrote on last edited by
        #3

        I am not writing it to the file system, straight to SQL...

        The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

        1 Reply Last reply
        0
        • A Abhijit Jana

          It can be cause of Access Permission. Seem, the file need to write in your system so its required permission. Did you create Application Pool on IIS. Create New Application Pool, Change the Identity of Application pool to local system, then assign the application pool to that Virtual Directory then Try test. Hope this will resolve your issue.

          cheers, Abhijit CodeProject MVP

          E Offline
          E Offline
          Expert Coming
          wrote on last edited by
          #4

          Yeah, tried that just in case, didn't work.

          The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups