daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [HttpGet]
  2. [Route("ObterValorAtualServico")]
  3. public IHttpActionResult ObterValorAtualServico(Comum.Enum.Servico servico)
  4. {
  5.     // ...
  6. }
  7.    
  8. [RoutePrefix("api/Utilitarios")]
  9.    
  10. api/Utilitarios/ObterValorAtualServico
  11.    
  12. [RoutePrefix("api/Servico")]
  13.    
  14. api/Servico/ObterValorAtualServico
  15.    
  16. {
  17.     "Message": "An error has occurred.",
  18.     "ExceptionMessage": "HttpControllerContext.Configuration must not be null.",
  19.     "ExceptionType": "System.InvalidOperationException",
  20.     "StackTrace": "   em System.Web.Http.Results.NegotiatedContentResult`1.ApiControllerDependencyProvider.EnsureResolved()rn   em System.Web.Http.Results.NegotiatedContentResult`1.ApiControllerDependencyProvider.get_ContentNegotiator()rn   em System.Web.Http.Results.OkNegotiatedContentResult`1.ExecuteAsync(CancellationToken cancellationToken)rn   em System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()rn--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---rn   em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)rn   em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)rn   em System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()rn--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---rn   em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)rn   em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)rn   em System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top