Custom Behavior won't register in my web.config

前端 未结 2 1077
终归单人心
终归单人心 2020-12-14 18:08

I have a working application using Json.NET (newtonsoft) as a custom serializer. Currently I\'m adding this derivative of WebHttpBehavior in a custom WebServiceHostFactory.

2条回答
  •  抹茶落季
    2020-12-14 18:30

    If you open this app.config with svcconfigeditor, it should start asking to select the assembly associated with the NewtonsoftJsonBehavior. If you select that, and save the app.config again, does that resolve your issue?

    BTW, we also use a custom binding extension in our service configurations. The xml in the config always underlines the extension with a blue wave indicating that the element is not know to the schema as you describe it. However, when we start the service, both the service and the behavior function as expected.

提交回复
热议问题