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 8623521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:18:04+00:00 2026-06-12T07:18:04+00:00

I am trying to run WCF service under DNN. I created a new WCF

  • 0

I am trying to run WCF service under DNN.
I created a new WCF service web site project and set output to C:\inetpub\...\dotnetnuke\bin
I also removed web.config from that project.
Then I have created on console project and try to add service reference but I get the following error:

An error occured while attempting to find services at 'http://localhost:5847/MyService/Service.svc

I removed code from old web config to dnnweb config <system.serviceModel> but still don’t work.
What I want to do is to be able to access web service with url like

localhost/dotnetnuke/portal/mywebservice...

and not as default

localhost:XXXX/...

This is from my dotnetnuke web.config

<system.serviceModel>
    <services>
      <service name="Service" behaviorConfiguration="ServiceBehavior">        
        <endpoint address="localhost/dotnetnuke/service.svc" binding="wsHttpBinding" contract="IService">         
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceBehavior">          
          <serviceMetadata httpGetEnabled="true"/>          
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

If I type full address in browser

http://localhost/dotnetnuke/desktopmodules/com.demo.service/service.svc

I get following error page:

The type ‘Service’, provided as the Service attribute value in the
ServiceHost directive, or provided in the configuration element
system.serviceModel/serviceHostingEnvironment/serviceActivations could
not be found.

  • 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-06-12T07:18:05+00:00Added an answer on June 12, 2026 at 7:18 am

    Even if you do get this to work, you will have nothing but trouble calling any of the DNN APIs as your request will not have the full DNN context.

    A much easier solution is to use the Services Framework. It was released initially in 6.2 with and MVC2 based implementation, and will soon be updated in 7.0 with a WebAPI based implementation.

    You can find several posts about using Services Framework here.

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

Sidebar

Related Questions

I'm trying to learn WCF and I've created a new WCF Service Library project
I have a WCF web service with different sections that need to run under
I have a WCF Service set up on my web site with a service.
I'm trying to run a simple WCF Service... My Wcf Service .config: <system.serviceModel> <services>
I'm trying to secure a WCF service using windows accounts. The service should run
I have created a WCF service and was trying to test one of the
i have a remote web site project in my sln that contains a wcf
When trying to run a method on my WCF service I get the following
I am trying to call a Sharepoint Web Service via WCF from inside a
I'm trying to build out a WCF service but I've run into a blocking

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.