Skip to content

Instantly share code, notes, and snippets.

@rnarayana
Last active August 29, 2015 13:56
Show Gist options
  • Save rnarayana/8905229 to your computer and use it in GitHub Desktop.
Save rnarayana/8905229 to your computer and use it in GitHub Desktop.
WebAPI - CORS from Angular - PUT method
2014-02-09 20:14:44.9341|Info|67| Method: OPTIONS;Operator: ;Operation: ;Message: http://localhost:63019/buildings/1105
2014-02-09 20:14:44.9341|Info|68| Method: OPTIONS;Operator: CorsMessageHandler;Operation: SendAsync;Message:
2014-02-09 20:14:44.9421|Info|69| Method: OPTIONS;Operator: AttributeBasedPolicyProviderFactory;Operation: GetCorsPolicyProvider;Message: CorsRequestContext: 'Origin: http://localhost:49595, HttpMethod: OPTIONS, IsPreflight: True, Host: localhost:63019, AccessControlRequestMethod: PUT, RequestUri: http://localhost:63019/buildings/1105, AccessControlRequestHeaders: {accept,content-type}'
2014-02-09 20:14:44.9421|Info|70| Method: PUT;Operator: DefaultHttpControllerSelector;Operation: SelectController;Message: Route='MS_SubRoutes:System.Web.Http.Routing.IHttpRouteData[]'
2014-02-09 20:14:44.9421|Info|71| Method: PUT;Operator: DefaultHttpControllerSelector;Operation: SelectController;Message: Building
2014-02-09 20:14:44.9421|Info|72| Method: PUT;Operator: HttpControllerDescriptor;Operation: CreateController;Message:
2014-02-09 20:14:44.9421|Info|73| Method: PUT;Operator: DefaultHttpControllerActivator;Operation: Create;Message:
2014-02-09 20:14:46.2842|Info|74| Method: PUT;Operator: DefaultHttpControllerActivator;Operation: Create;Message: WebApi.Controllers.BuildingController
2014-02-09 20:14:46.2842|Info|75| Method: PUT;Operator: HttpControllerDescriptor;Operation: CreateController;Message: WebApi.Controllers.BuildingController
2014-02-09 20:14:46.2842|Info|76| Method: PUT;Operator: ApiControllerActionSelector;Operation: SelectAction;Message:
2014-02-09 20:14:46.2842|Info|77| Method: PUT;Operator: ApiControllerActionSelector;Operation: SelectAction;Message: Selected action 'Put(Int64 id, BuildingEditViewModel buildingEditViewModel)'
2014-02-09 20:14:46.2842|Info|78| Method: PUT;Operator: BuildingController;Operation: Dispose;Message:
2014-02-09 20:14:46.2842|Info|79| Method: PUT;Operator: BuildingController;Operation: Dispose;Message:
2014-02-09 20:14:46.2842|Info|80| Method: OPTIONS;Operator: AttributeBasedPolicyProviderFactory;Operation: GetCorsPolicyProvider;Message: No CorsPolicyProvider selected
2014-02-09 20:14:46.2842|Info|81| Method: OPTIONS;Operator: DefaultHttpControllerSelector;Operation: SelectController;Message: Route='id:1105'
2014-02-09 20:14:46.2842|Info|82| Method: OPTIONS;Operator: DefaultHttpControllerSelector;Operation: SelectController;Message: Building
2014-02-09 20:14:46.2842|Info|83| Method: OPTIONS;Operator: HttpControllerDescriptor;Operation: CreateController;Message:
2014-02-09 20:14:46.2842|Info|84| Method: OPTIONS;Operator: DefaultHttpControllerActivator;Operation: Create;Message:
2014-02-09 20:14:46.8032|Info|85| Method: OPTIONS;Operator: DefaultHttpControllerActivator;Operation: Create;Message: WebApi.Controllers.BuildingController
2014-02-09 20:14:46.8032|Info|86| Method: OPTIONS;Operator: HttpControllerDescriptor;Operation: CreateController;Message: WebApi.Controllers.BuildingController
2014-02-09 20:14:46.8032|Info|87| Method: OPTIONS;Operator: BuildingController;Operation: ExecuteAsync;Message:
2014-02-09 20:14:46.8032|Info|88| Method: OPTIONS;Operator: ApiControllerActionSelector;Operation: SelectAction;Message:
2014-02-09 20:14:46.8122|Info|89| Method: OPTIONS;Operator: DefaultContentNegotiator;Operation: Negotiate;Message: Type='HttpError', formatters=[JsonMediaTypeFormatterTracer, XmlMediaTypeFormatterTracer, FormUrlEncodedMediaTypeFormatterTracer, FormUrlEncodedMediaTypeFormatterTracer]
2014-02-09 20:14:46.8122|Info|90| Method: OPTIONS;Operator: JsonMediaTypeFormatter;Operation: GetPerRequestFormatterInstance;Message: Obtaining formatter of type 'JsonMediaTypeFormatter' for type='HttpError', mediaType='application/json; charset=utf-8'
2014-02-09 20:14:46.8122|Info|91| Method: OPTIONS;Operator: JsonMediaTypeFormatter;Operation: GetPerRequestFormatterInstance;Message: Will use same 'JsonMediaTypeFormatter' formatter
2014-02-09 20:14:46.8122|Info|92| Method: OPTIONS;Operator: DefaultContentNegotiator;Operation: Negotiate;Message: Selected formatter='JsonMediaTypeFormatter', content-type='application/json; charset=utf-8'
2014-02-09 20:14:46.8552|Info|93| Method: OPTIONS;Operator: ApiControllerActionSelector;Operation: SelectAction;Message: UserMessage='No HTTP resource was found that matches the request URI 'http://localhost:63019/buildings/1105'.', MessageDetail='No action was found on the controller 'Building' that matches the request.'
2014-02-09 20:14:46.9172|Info|94| Method: OPTIONS;Operator: BuildingController;Operation: ExecuteAsync;Message: UserMessage='No HTTP resource was found that matches the request URI 'http://localhost:63019/buildings/1105'.', MessageDetail='No action was found on the controller 'Building' that matches the request.'
2014-02-09 20:14:46.9572|Info|95| Method: OPTIONS;Operator: CorsMessageHandler;Operation: SendAsync;Message:
2014-02-09 20:14:46.9572|Info|96| Method: OPTIONS;Operator: ;Operation: ;Message: Content-type='application/json; charset=utf-8', content-length=unknown
2014-02-09 20:14:46.9572|Info|97| Method: OPTIONS;Operator: JsonMediaTypeFormatter;Operation: WriteToStreamAsync;Message: Value='System.Web.Http.HttpError', type='HttpError', content-type='application/json; charset=utf-8'
2014-02-09 20:14:46.9572|Info|98| Method: OPTIONS;Operator: JsonMediaTypeFormatter;Operation: WriteToStreamAsync;Message:
2014-02-09 20:14:46.9572|Info|99| Method: OPTIONS;Operator: BuildingController;Operation: Dispose;Message:
2014-02-09 20:14:46.9572|Info|100| Method: OPTIONS;Operator: BuildingController;Operation: Dispose;Message:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment