Http 1.1 500 Internal Server Error Wcf
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Wcf Post 500 Internal Server Error
and policies of this site About Us Learn more about Stack Overflow iis wcf 500 internal server error the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
The Remote Server Returned An Error (500) Internal Server Error. Wcf
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 500 internal server error wcf rest service only takes a minute: Sign up Debugging HTTP 500 (Internal Server Error) in WCF Service / Staging up vote 7 down vote favorite 1 I have some WCF services which are running great locally; client can consume them and the server is putting data in the DB as expected. The problem is that when I deploy these to a staging enable wcf tracing machine, all I can see are HTTP 500 errors. How do I start debugging the problem? Given that it's only on staging and not on my local dev machine, I assume it's an IIS configuration problem somewhere. When I use Fiddler to see what's being sent and what the response is, I can see (as expected) correct request data, and only a 500 as the response -- no further details. I'm pretty green to WCF and IIS, so it's probably something obvious; I've used aspnet_iisreg, deployed my .svc file and all the built DLLs/files from bin; maybe I missed something. I looked in the IIS logs, but they're pretty skimpy; no error information there, either (or maybe I'm looking in the wrong place?) (More important than solving the specific problem is figuring out how to see enough details about errors so I can work through problems myself.) Edit: I of course checked the event logs first -- and surprisingly, didn't find any mention of the exceptions. So I assume that the service is at least being invoked, and tha
here for a quick overview of the site Help Center Detailed answers to any questions
Servicehostingenvironment
you might have Meta Discuss the workings and policies of elmah logging this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Fiddler
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 http://stackoverflow.com/questions/8080840/debugging-http-500-internal-server-error-in-wcf-service-staging 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 vote 3 down vote favorite 1 As the title says i have got a 500 internal server error when using post method http://stackoverflow.com/questions/18618745/web-api-post-method-returns-http-1-1-500-internal-server-error 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 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 coul
here for http://stackoverflow.com/questions/28956420/wcf-post-service-500-internal-server-error a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings https://forums.iis.net/t/1152487.aspx?The+remote+server+returned+an+error+500+Internal+Server+Error+ and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers internal server 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 internal server error takes a minute: Sign up WCF POST Service 500 internal server error up vote 2 down vote favorite 2 Here is the WCF POST Service with ajaxcallback. Its working fine on my side but not working on Client Side. It is giving error - POST http://localhost/WCFService/EService.svc/GetTIDFromRID 500 (internal server error). Method: [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest )] string GetTIDFromRID(string RID); Service Web.Config: