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

  • Home
  • SEARCH
  • 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 4071112
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:42:55+00:00 2026-05-20T16:42:55+00:00

I got this error when trying to access a Service The type ‘WebRole1.RestServices.RegisterService’, provided

  • 0

I got this error when trying to access a Service

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

This is linked to the definition on the Web.config file

I defined my service like this:

<!-- Service Authenticate -->
<service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AuthenticationServiceBehaviors">
<endpoint contract="System.Web.ApplicationServices.AuthenticationService" binding="basicHttpBinding" />
</service>

<!-- Service Register -->
<service name="WebRole1.RestServices.RegisterService" behaviorConfiguration="RegisterServiceBehaviors">
<endpoint contract="WebRole1.RestServices.IRegisterService" binding="basicHttpBinding" />
</service>

The definition working for the Authenticate Service but not for the Register Service.
I am not sure about the name i should put for the service but WebRole1.RestServices is the namespace for the RegisterService.svc

I am sure the error is from the Web.config file. Anyone has an idea how to correct this.

Thx.

  • 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-20T16:42:56+00:00Added an answer on May 20, 2026 at 4:42 pm

    Follow these steps from within Visual Studio:

    1. Right click your service file

    2. Select the View Markup option

    3. Change the value of the Service
      attribute to reflect the fully
      qualified path of the underlying
      service type.

    4. Make sure the CodeFile attribute value is also correct

    This happens because when you rename the service type in code it doesn’t automatically update the service mark-up directive values appropriately, or at all for that matter.

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

Sidebar

Related Questions

I got this error when trying to access 'model' and 'CRUD' generator in gii.
I got this error when trying to update an image. It was a cross-thread
I got this error today when trying to open a Visual Studio 2008 project
While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal
I got this error Unhandled exception at 0x0049b946 in Program.exe: 0xC0000005: Access violation reading
This is the error I get while trying to access a sqlite database from
The other day I got this annoying oracle error: ORA-12705: Cannot access NLS data
I'm trying to use WCF Data Service with Subsonic, but ran into this error
I got this error when I tried to compile an application that includes the
I got this error for a collection I am writing, but fxcop warned me

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.