swaggerwcf icon indicating copy to clipboard operation
swaggerwcf copied to clipboard

Object reference not set to an instance of an object.

Open jonathh21 opened this issue 6 years ago • 1 comments

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, Stack1 typesStack) at SwaggerWcf.Support.TypePropertiesProcessor.ProcessProperties(Type definitionType, DefinitionSchema schema, IList1 hiddenTags, Stack1 typesStack) at SwaggerWcf.Support.DefinitionsBuilder.ConvertTypeToDefinition(Type definitionType, IList1 hiddenTags, Stack1 typesStack) at SwaggerWcf.Support.DefinitionsBuilder.Process(IList1 hiddenTags, IList1 visibleTags, List1 definitionsTypes) at SwaggerWcf.Support.ServiceBuilder.BuildServiceCommon(String path, Action4 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)

jonathh21 avatar Jul 06 '18 14:07 jonathh21

Maybe there are some special properties in your model class. you can debug it by downloading the source code.

justin0522 avatar Jul 09 '18 01:07 justin0522