I am using Swashbuckle.OData version="3.4.0" and Microsoft.AspNet.OData
version="6.1.0", after run the swagger I am getting following error. It
still pointing to Microsoft.AspNet.OData version="6.0.0".
500 : {"Message":"An error has occurred.","ExceptionMessage":"The type
initializer for 'Swashbuckle.OData.HttpConfigurationExtensions' threw an
exception.","ExceptionType":"System.TypeInitializationException","StackTrace":"
at
Swashbuckle.OData.HttpConfigurationExtensions.SerializerSettingsOrDefault(HttpConfiguration
httpConfig)\r\n at
Swashbuckle.OData.ODataSwaggerProvider.GenerateSwagger(String rootUrl,
String apiVersion) in
C:\\Users\\rbeauchamp\\Documents\\GitHub\\Swashbuckle.OData\\Swashbuckle.OData\\ODataSwaggerProvider.cs:line
63\r\n at Swashbuckle.OData.ODataSwaggerProvider.GetSwagger(String rootUrl,
String apiVersion) in
C:\\Users\\rbeauchamp\\Documents\\GitHub\\Swashbuckle.OData\\Swashbuckle.OData\\ODataSwaggerProvider.cs:line
56\r\n at
Swashbuckle.Application.SwaggerDocsHandler.SendAsync(HttpRequestMessage
request, CancellationToken cancellationToken)\r\n at
System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request,
CancellationToken cancellationToken)\r\n at
System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage
request, CancellationToken cancellationToken)\r\n at
System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request,
CancellationToken cancellationToken)\r\n at
System.Web.Http.HttpServer.<>n__FabricatedMethod9(HttpRequestMessage ,
CancellationToken )\r\n at
System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()","InnerException":{"Message":"An
error has occurred.","ExceptionMessage":"Could not load file or assembly
'System.Web.OData, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT:
0x80131040)","ExceptionType":"System.IO.FileLoadException","StackTrace":"
at Swashbuckle.OData.HttpConfigurationExtensions..cctor()"}}
http://localhost:56744/swagger/docs/v2
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.