views:

424

answers:

3

I asked this before and got no where so i'm asking again as i'm now desperate!!

Hey

if i create a new wcf project i can browse the meta instantly.

if I try - when using the WCF facility - i get the following:

Metadata publishing for this service is currently disabled.

i followed the instructions there and in a million other places and get no where.

if i copy the contents of my faciltity service into the newly created project it complains that aspNetCompatibilityEnabled isnt enabled.

so i enable it and then mex is disabled again and i get: Metadata publishing for this service is currently disabled.

again!!

this is driving me crazy - i have tried tried tried to follow every example on the web!!

here is my current configuration - there is no client yet:

<system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
        <services>
            <service name="IbzStar.WebServices.UserServices" behaviorConfiguration="ServiceBehavior">
                <!-- Service Endpoints -->
                <endpoint address="" binding="wsHttpBinding" contract="IbzStar.WebServices.IUserServices">
                    <!-- 
              Upon deployment, the following identity element should be removed or replaced to reflect the 
              identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity 
              automatically.
          -->
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="ServiceBehavior">
                    <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                    <serviceMetadata httpGetEnabled="true"/>
                    <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>

please someone help me out before my laptop gets launched into orbit!!

w://

A: 

the answer to this was to do it all in code.

cvista
Seriously? That's terrible. I'm having the same problem. Is there a bug in WCF or something?
Dave Nichol
it's no biggy, doing it in code is better anyway really. I'll post my code later if you like?
cvista
A: 

CVISTA: I am having this same problem.

I basically just need two endpoints. "basicHttpBinding" and "webHttpBinding"

WebHttpBinding is for jquery ... basicHttpBinding is for FLEX 4 applications

It appears no one on the internet uses more than one binding when it comes ot web.config files, becuase they would run into this problem as stated above.

If someone could PLEASE post a sample project (with a web.config, SVC and the ISVC interface) which would accomplish this task.

YOU WOULD THiNK MICROSOFT would allow you to right click the SVC file and "ADD BINDINGS". but 8 hours later I am no where accept in the same place with out a solution.

TO NOTE: FOR FLEX I DO NEED TO GENERATE A WSDL..

TO NOTE: FOR JQUERY, I have only been able to get the wcf svc file working by including Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" into the top....Any help on the correct binding in the Web.config file or attributes/properties on the CLASS FILES WOULD BE MUCH APPRECIATED.

SEARCH ENGINE REFERENCE: wcf Metadata publishing for this service is currently disabled. multiple bindings 2010 wcf configuration bindings wizard wcf configuration mulitple bindings wizard 2010 wcf configuration mulitple bindings wizard visual studio 2010 how to use wcf service configuration editor example web.config file wcf with multiple bindings wcf web.config file to support basicHttpBing and webHttpBinding wcf mulitple bindings jquery wcf services hello world behaviorConfiguration Metadata publishing for this service is currently disabled web.config behavior "Metadata publishing for this service is currently disabled"

I HAVE POSTED MY SAMPLE CODE ON THIS WEBSITE: http://forums.asp.net/p/1472655/3995057.aspx

PLEASE HELP.....Thanks Doug Lubey of Louisiana

Doug Lubey of Louisiana
A: 

i HAVE FOUND THE ANSWER AND POSTED IT ON MY WEBSITE

http://douglubey.com/Jquery_WCF4_JSON_webConfig_Settings_Plus_Bindings_For_WebHttp_And_BasicHttp.aspx

Doug Lubey of Louisiana
NIce one!!Thanks for coming back and updating the question...
cvista