Intellisense Error in .config when configuring Service Bus

Hi, When typing some Service Bus AppFabric configuration in app.config / web.config.

Somehow I cannot get the intellisense of:

<behaviors>
  <endpointBehaviors>
  <behavior name="SharedSecretCredentials">
   <transportClientEndpointBehavior credentialType="SharedSecret">
   <clientCredentials>
    <sharedSecret issuerName="owner" issuerSecret="my-secret-key" />
   </clientCredentials>
   </transportClientEndpointBehavior>
  </behavior>
  </endpointBehaviors>
 </behaviors>

Can somebody advise how to work out the intellisense 

  • Moved by SrikumarV Tuesday, September 28, 2010 10:29 PM Migration (From:Windows Azure AppFabric)
August 31st, 2010 6:40am

Hello, Visual Studio's IntelliSence schema is stored under "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\DotNetConfig.xsd". So you can modify this schema file to add IntelliSence for Service Bus. Since this file is very long, I suggest you to use Visual Studio's xsd designer to edit it. In the xml schema explorer, find system.serviceModel->behaviors->endpointBehaviors->behavior, and refer to built-in WCF behaviors to configure the Service Bus behaviors. Ignore the vs:help attribute.

For example, to build the IntelliSence schema for the above configuration, you will need this:

                                                  <xs:element name="transportClientEndpointBehavior">

                                                    <xs:complexType>

                                                      <xs:sequence>

                                                        <xs:element name="clientCredentials">

                                                          <xs:complexType>

                                                            <xs:sequence>

                                                              <xs:element name="sharedSecret ">

                                                                <xs:complexType>

                                                                  <xs:attribute name="issuerName" type="xs:string"/>

                                                                  <xs:attribute name="issuerSecret" type="xs:string"/>

                                                                </xs:complexType>

                                                              </xs:element>

                                                            </xs:sequence>

                                                          </xs:complexType>

                                                        </xs:element>

                                                      </xs:sequence>

                                                    </xs:complexType>

                                                  </xs:element>

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2010 8:22am

I'm trying to configure a WCF with a ServiceBus endpoint, but in the app.config the tags "TransportClientEndPointBehavior" and "tokenProvider" are not recognized.

I have applied your solution and the tag "TransportClientEndPointBehavior" is recognized by Intellisense, but not "tokenProvider":

   <endpointBehaviors>
        <behavior name="sbTokenProvider">
          <transportClientEndpointBehavior>
            <tokenProvider>
              <sharedAccessSignature keyName="RootManageSharedAccessKey" key="..." />
            </tokenProvider>
          </transportClientEndpointBehavior>
        </behavior>
      </endpointBehaviors>

I'm using Visual Studio 2010 Sp1 with Net Framework 4.0.

Can you help me?

Thanks,

Eva Janakieff

April 14th, 2015 4:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics