1.1 500 Internal Server Error While
Contents |
One games Xbox 360 games PC http 1.1 500 internal server error soapui games Windows games Windows phone games Entertainment All http 1.1 500 internal server error web service Entertainment Movies & TV Music Business & Education Business Students &
Http 1.1 500 Internal Server Error Outlook Web Access
educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security
Internal Server Error Cydia
Internet Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Band Microsoft http/1.1 500 internal server error how to fix Lumia All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
Forums Answers Feedback http/1.1 500 internal server error calling web service Issue Tracker Blog Evangelists User Groups Navigation Home Unity Services Made http/1.1 500 internal server error apache with Unity Learn Community Forums Answers Feedback Issue Tracker Blog Evangelists User Groups Asset Store Get Unity https://support.microsoft.com/en-us/kb/822319 Unity Account You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account Language 中文 한국어 Portugués Русский Español http://forum.unity3d.com/threads/http-1-1-500-internal-server-error-while-calling-a-web-service-by-wwwform.161483/ 日本語 Unity Community Forums Forums Forums Quick Links Search Forums Recent Posts Menu The 5.5 Beta is now available. Click here for more details! Get early access to our Google Daydream Technical preview. Click here for more details! Become a closed-alpha partner on the new Facebook games platform. Read more about it here. Enter the Samsung TIZEN App Challenge for a chance to win prizes. Read more about it here. Download the 5.5 Beta Now Daydream Preview New Facebook Games Platform Samsung TIZEN App Challenge Unity Community - Error unity_authentication_failed Your name or email address: Password: Forgot your password? Stay logged in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://stackoverflow.com/questions/18618745/web-api-post-method-returns-http-1-1-500-internal-server-error more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Web API POST method returns HTTP/1.1 500 Internal Server Error up internal server vote 3 down vote favorite 1 As the title says i have got a 500 internal server error when using post method of a Web API. The Get method is working fine, just getting error in POST. I am using fidler to send post request : Response Header: HTTP/1.1 500 Internal Server Error Request Header: User-Agent: Fiddler Host: localhost:45379 Content-Type: application/jsonContent-Length: 41 Content-Length: 41 Request Body: {"iduser"="123456789","username"="orange"} Here internal server error is my code for post method: // POST api/User public HttpResponseMessage Postuser(user user) { if (ModelState.IsValid) { db.users.Add(user); db.SaveChanges(); HttpResponseMessage response =R equest.CreateResponse(HttpStatusCode.Created, user); response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = user.iduser })); return response; } else { return Request.CreateResponse(HttpStatusCode.BadRequest); } } Sooooooo what could have possibly gone wrong? Why its not allowing me to POST? web-services rest asp.net-mvc-4 asp.net-web-api web-api share|improve this question edited Sep 4 '13 at 21:27 asked Sep 4 '13 at 16:05 Obvious 941214 1 So have you tried running it with the debugger on, to see what is happening to your request? That seems like a necessary first step for working out what could have gone wrong. –Alex White Sep 4 '13 at 20:02 Your request body has a typo/ You're missing a quote " after the user id. –Simon C Sep 4 '13 at 20:45 Yep i used breakpoints on post method but they are not being hit. –Obvious Sep 5 '13 at 10:17 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted The data in your post is not a valid JSON-object, which is what the model binder is expecting (Content-Type: application/json). {"iduser"="123456789","username"="orange"} Try replacing