Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6145705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:50:05+00:00 2026-05-23T18:50:05+00:00

I recently built a WCF Service, and now I’m deploying it to Windows Server

  • 0

I recently built a WCF Service, and now I’m deploying it to Windows Server 2008. Right now, we don’t have secure protocol turned on. But we will. I’d like to get it working either way. In the site, I’ve had Anonymous authentication enabled as well as Forms authentication. The reason I did this was to prevent the authentication popup on the iPad, Android and Internet Explorer. So now they just get to the Login screen. Oh and I did activate WCF in Windows features. If you’re also knowledgeable about making this https ready, I’d also like to figure that out. Thanks!!

I’m getting this error when I try pasting in the *.svc PATH into the URL.

System.ServiceModel.ServiceActivationException:
The service
‘/WCFServices/Accessioning/QuickDataEntryService.svc’
cannot be activated due to an
exception during compilation

Here is my web.config configuration thus far.

<system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
        <!--<baseAddressPrefixFilters>
            <add prefix="http://localhost/" />
        </baseAddressPrefixFilters>-->
    </serviceHostingEnvironment>
    <behaviors>
        <endpointBehaviors>
            <behavior name="AspNetAjaxBehavior">
                <enableWebScript />
            </behavior>
        </endpointBehaviors>
        <serviceBehaviors>
            <behavior name="ServiceBehavior">
                <serviceDebug includeExceptionDetailInFaults="true" />
                <serviceMetadata httpGetEnabled="true" />
            </behavior>
            <!-- Watch this section when adding a new WCF Service!  New behaviors will be added; just delete them and use "ServiceBehavior" -->
        </serviceBehaviors>
    </behaviors>
    <services>
        <service behaviorConfiguration="ServiceBehavior" name="A.LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService">
            <endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding"
                contract="A.LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService" />
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
        </service>
        <!--<service name="A.LIMS.UI.Web.WCFServices.Accessioning.IQuickDataEntryService"
                 behaviorConfiguration="ServiceBehavior">
            <endpoint behaviorConfiguration="AspNetAjaxBehavior"
                      binding="webHttpBinding"
                      contract="A.LIMS.UI.Web.WCFServices.Accessioning.IQuickDataEntryService" />
        </service>-->
        <!-- Watch this section when adding a new WCF Service!  Duplicate the "QuickDataEntryService" above for an example, but change the fully qualified name -->
    </services>
</system.serviceModel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:50:06+00:00Added an answer on May 23, 2026 at 6:50 pm

    I have no clue what caused the exception above, but here was the final verdict. There were a lot of things required for WCF and using an SSL certificate (HTTPS protocol). Pardon the formatting.. I don’t like how Stack Overflow sometimes puts the code into a block and sometimes it doesn’t.

    The following were required for the web.config on HTTPS:

    Here are some places that required the “requireSSL” attribute:

    <authentication mode=”Forms”>
    <forms loginUrl=”Login.aspx” timeout=”30″ protection=”All” requireSSL=”true” />
    </authentication>
    <httpCookies httpOnlyCookies=”false” requireSSL=”true” domain=”” />

    Notice the “s” in “httsGetEnabled” below:

    <behaviors>
    <endpointBehaviors>
    <behavior name=”AspNetAjaxBehavior”>
    <enableWebScript />
    </behavior>
    </endpointBehaviors>
    <serviceBehaviors>
    <behavior name=”ServiceBehavior”>
    <serviceDebug includeExceptionDetailInFaults=”true” />
    <serviceMetadata httpsGetEnabled=”true” />
    </behavior>
    </serviceBehaviors>
    </behaviors>

    Bindings (missing in non-SSL web.config):

    <bindings>
    <webHttpBinding>
    <binding name=”webBinding”>
    <security mode=”Transport”>
    </security>
    </binding>
    </webHttpBinding>
    </bindings>

    Services (notice the “s” in “mexHttpsBinding”):

        <services>
            <service behaviorConfiguration="ServiceBehavior" name="A.LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService">
                <endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="A.LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService" />
                <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
            </service>
    
        </services>
    

    Last but not least. I’m not using .NET 4.0, but I did try .NET on a different machine. With .NET 4.0 I couldn’t get the WCF services to work without having this configured to the actual URL being used. If there were two domains for the same IP, WCF only worked with the domain in this block inside the system.ServiceModel XML block in the web.config. I did not test https in the .NET 4.0, so I’m assuming the protocol on the URL would be https below:

    <serviceHostingEnvironment aspNetCompatibilityEnabled=”true”>
    <baseAddressPrefixFilters>
    <add prefix=”http://subdomain.domain.com/” />
    </baseAddressPrefixFilters>
    </serviceHostingEnvironment>

    Oh, I also had to turn on WCF on the Windows Server 2008 box. And it required a server reboot!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, I have been trying to get the built-in Windows 7 narrator/screen reader to
I've just recently built a Silverlight application that communicates with a server via WCF.
We recently built a new dev server for flex builder and installed coldfusion 8.
Recently I upgraded to Snow Leopard, and now I can't run programs built with
This one is a long story: i have recently built a win32 application in
I have a query that is very recently starting to throw: The built-in indices
I have recently built a list view which shows a number of products taken
I have built a couple of Shoppping Carts with Magento recently but I feel
I have been recently reproducing the new twitter ui(sliding panes) and I have built
Recently I have discovered that my release executable (made with msvc++ express 2008) becomes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.