swaggerwcf
swaggerwcf copied to clipboard
Object reference not set to an instance of an object.
When visiting api-docs
http://.../.../api-docs
I get the following, to my knowledge it started without being attributed to any particular change. I have removed almost all the decorations.
The only one that makes a difference is the [SwaggerWcf("/soap")] tag.
if this is present in any form I get the below error.
Thank you.
The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service. The exception message is 'Object reference not set to an instance of an object.'. See server logs for more details. The exception stack trace is:
at SwaggerWcf.Support.TypePropertiesProcessor.ProcessProperty(PropertyInfo propertyInfo, IList1 hiddenTags, Stack
1 typesStack) at SwaggerWcf.Support.TypePropertiesProcessor.ProcessProperties(Type definitionType, DefinitionSchema schema, IList1 hiddenTags, Stack
1 typesStack) at SwaggerWcf.Support.DefinitionsBuilder.ConvertTypeToDefinition(Type definitionType, IList1 hiddenTags, Stack
1 typesStack) at SwaggerWcf.Support.DefinitionsBuilder.Process(IList1 hiddenTags, IList
1 visibleTags, List1 definitionsTypes) at SwaggerWcf.Support.ServiceBuilder.BuildServiceCommon(String path, Action
4 buildPaths) at SwaggerWcf.SwaggerWcfEndpoint.Init(Func`2 buildService) at CreateSwaggerWcf.SwaggerWcfEndpoint() at System.ServiceModel.InstanceContext.GetServiceInstance(Message message) at System.ServiceModel.Dispatcher.InstanceBehavior.EnsureServiceInstance(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Maybe there are some special properties in your model class. you can debug it by downloading the source code.