I was curious if anyone knew how to fix it: when I add a binding extension or binding element extension to my WCF config I am a schema verification warning thrown by Visual Studio, because the name of the extension is not in the system.serviceModel schema:
Warning 1 element 'binding' contains invalid child element 'nmsBinding'. Hopefully list of possible elements: 'basicHttpBinding, customBinding, msmqIntegrationBinding, netPeerTcpBinding, netMsmqBinding, netNamedPipeBinding, netTcpBinding, wsFederationHttpBinding, ws2007FederationHttpBinding, wsHttpBinding, ws2007HttpBinding, wsDualHttpBinding, mexHttpBinding, mexHttpsBinding, mexNamedPipeBinding, mexTcpBinding, WebHttpBinding, netTcpContextBinding, wsHttpContextBinding, basicHttpContextBinding'
This may be a dumb question, but is there a way to register these dynamics with "Dynamically" with Visual Studio so that they are valid? I was thinking that I could leave any XSD in Visual Studio config, but I did not want to do that if there is any other magical way.
My service model config looks like this:
& lt; System.serviceModel & gt; & Lt; Services & gt; & Lt; Name of Service = "Z. Apache MMS.WCF.Test.Server.TestApacheNMSService" & gt; & Lt; Endpoint name = "nmsServiceEndpoint" address = "TCP: // local host: 61,616" binding = "nmsBinding" bindingConfiguration = "defaultNmsBinding" contract = "Zed.Apache.NMS.WCF.Test.Server.ITestApacheNMSService" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Binding & gt; & Lt; NmsBinding & gt; & Lt ;! - Verification error here - & gt; & Lt; Binding name = "defaultNMSBinding" destination = "TestApacheNMSQueue" destinationType = "Queue" /> & Lt; / NmsBinding & gt; & Lt; / Binding & gt; & Lt; Extensions & gt; & Lt; BindingExtensions & gt; & Lt; Add name = "nmsbinding" type = "apache nms.WCF.NmsBindingCollection, Z.upash.NMS.WCF, version = 1.0.0.0, culture = neutral, public keypoint = zero" /> & Lt; / BindingExtensions & gt; & Lt; / Extensions & gt; & Lt; /system.serviceModel>
I believe that the VS2008 file is "C: \ Program Files \ Microsoft Visual Studio 9.0 Uses config file \ xml \ Schemas \ DotNetConfig.xsd "(with the default installation) You can change this file or specify another schema under the" Properties "for the config file.
However, as long as you are only getting design time alerts, it can not be worth the problem.
Comments
Post a Comment