The text of this article is not in this database — only its details are. Read it on the old site: MVC 4 WEB API .NET 4.5
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: MVC 4 WEB API .NET 4.5
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Susanta RoutPosted Aug 3, 2016, 2:24 AM
Nice tutorial
Munesh SharmaPosted May 28, 2016, 7:35 AM
nice
Ravi PatelPosted Feb 19, 2015, 7:57 AM
awesome article
Richard ScannellPosted Dec 24, 2013, 5:54 AM
http://localhost:40683/api/Customer gives an error. This is from downloaded RAR file, & executed under VS 2012. I think its a routing issue. because when I added a garbage URL... /api/Aardvark, it did not change the message... Any clues would be great, because this looks like it could be a really straightforward way to publish an API. if I can get it to work. Method not found: 'Void System.Net.Http.Headers.HttpHeaders.AddWithoutValidation(System.String, System.Collections.Generic.IEnumerable`1<System.String>)'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.MissingMethodException: Method not found: 'Void System.Net.Http.Headers.HttpHeaders.AddWithoutValidation(System.String, System.Collections.Generic.IEnumerable`1<System.String>)'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [MissingMethodException: Method not found: 'Void System.Net.Http.Headers.HttpHeaders.AddWithoutValidation(System.String, System.Collections.Generic.IEnumerable`1<System.String>)'.] System.Web.Http.WebHost.HttpControllerHandler.AddHeaderToHttpRequestMessage(HttpRequestMessage httpRequestMessage, String headerName, String[] headerValues) 0 System.Web.Http.WebHost.HttpControllerHandler.ConvertRequest(HttpContextBase httpContextBase) 390 System.Web.Http.WebHost.HttpControllerHandler.BeginProcessRequest(HttpContextBase httpContextBase, AsyncCallback callback, Object state) 157 System.Web.Http.WebHost.HttpControllerHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) 77 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 301 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 155