WCF Service, the type provided as the service attribute values…could not be found










25















When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following -




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




When I run the WCF service from the test client, all works fine.



Eval service:



[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class EvalService : IEvalService

Dictionary<string, JobPhaseTimer> jobTimers = new Dictionary<string, JobPhaseTimer>();

public void SubmitEntry(ENBO.Jobs.Job job, ENBO.Jobs.JobDetail jobDetail, ENBO.TimeLogs.TimeLog timeLog, ENBO.Users.User user, ENBO.Utilities.EntryType entryType, JobPhase jobPhase)

if (entryType == EntryType.Active)

JobPhaseTimer timer = new JobPhaseTimer();
timer.UID = job.ID + "_" + jobPhase.ID;
timer.JobID = job.ID;
timer.JobDetailID = jobDetail.ID;
timer.PhaseID = jobPhase.ID;
timer.StartTime = DateTime.Now;
timer.Stopwatch.Start();
jobTimers.Add(timer.UID, timer);

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Active;

if (log.AddNewTimeLog())

//Do something


else if (entryType == EntryType.Paused)

JobPhaseTimer timer = jobTimers[job.ID + "_" + jobPhase.ID];
timer.Stopwatch.Stop();

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Paused;

if (log.AddNewTimeLog())

//Do something






IEvalService.cs (Service Contract)



[ServiceContract]
public interface IEvalService

[OperationContract]
void SubmitEntry(Job job, JobDetail jobDetail, TimeLog timeLog, User user, EntryType entryType, JobPhase jobPhase);



Eval.svc markup :



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %>


Web.config :



<?xml version="1.0"?>
<configuration>

<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<services>
<service name="EvalServiceLibary.EvalService">
<endpoint address="" behaviorConfiguration="" binding="webHttpBinding"
contract="EvalServiceLibary.IEvalService" />
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
contract="EvalServiceLibary.IEvalService" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="EvalServiceSite.EvalAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>


Any ideas why I am getting this error? I have searched Google and come across a few pages but nothing seems to work.



Thanks!










share|improve this question
























  • is it a web project? What is the web.config like?

    – Aliostad
    Jul 11 '13 at 11:23











  • Yes, a web project. I have added the web.config to the question. Cheers

    – dynamicuser
    Jul 11 '13 at 11:30
















25















When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following -




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




When I run the WCF service from the test client, all works fine.



Eval service:



[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class EvalService : IEvalService

Dictionary<string, JobPhaseTimer> jobTimers = new Dictionary<string, JobPhaseTimer>();

public void SubmitEntry(ENBO.Jobs.Job job, ENBO.Jobs.JobDetail jobDetail, ENBO.TimeLogs.TimeLog timeLog, ENBO.Users.User user, ENBO.Utilities.EntryType entryType, JobPhase jobPhase)

if (entryType == EntryType.Active)

JobPhaseTimer timer = new JobPhaseTimer();
timer.UID = job.ID + "_" + jobPhase.ID;
timer.JobID = job.ID;
timer.JobDetailID = jobDetail.ID;
timer.PhaseID = jobPhase.ID;
timer.StartTime = DateTime.Now;
timer.Stopwatch.Start();
jobTimers.Add(timer.UID, timer);

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Active;

if (log.AddNewTimeLog())

//Do something


else if (entryType == EntryType.Paused)

JobPhaseTimer timer = jobTimers[job.ID + "_" + jobPhase.ID];
timer.Stopwatch.Stop();

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Paused;

if (log.AddNewTimeLog())

//Do something






IEvalService.cs (Service Contract)



[ServiceContract]
public interface IEvalService

[OperationContract]
void SubmitEntry(Job job, JobDetail jobDetail, TimeLog timeLog, User user, EntryType entryType, JobPhase jobPhase);



Eval.svc markup :



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %>


Web.config :



<?xml version="1.0"?>
<configuration>

<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<services>
<service name="EvalServiceLibary.EvalService">
<endpoint address="" behaviorConfiguration="" binding="webHttpBinding"
contract="EvalServiceLibary.IEvalService" />
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
contract="EvalServiceLibary.IEvalService" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="EvalServiceSite.EvalAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>


Any ideas why I am getting this error? I have searched Google and come across a few pages but nothing seems to work.



Thanks!










share|improve this question
























  • is it a web project? What is the web.config like?

    – Aliostad
    Jul 11 '13 at 11:23











  • Yes, a web project. I have added the web.config to the question. Cheers

    – dynamicuser
    Jul 11 '13 at 11:30














25












25








25


7






When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following -




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




When I run the WCF service from the test client, all works fine.



Eval service:



[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class EvalService : IEvalService

Dictionary<string, JobPhaseTimer> jobTimers = new Dictionary<string, JobPhaseTimer>();

public void SubmitEntry(ENBO.Jobs.Job job, ENBO.Jobs.JobDetail jobDetail, ENBO.TimeLogs.TimeLog timeLog, ENBO.Users.User user, ENBO.Utilities.EntryType entryType, JobPhase jobPhase)

if (entryType == EntryType.Active)

JobPhaseTimer timer = new JobPhaseTimer();
timer.UID = job.ID + "_" + jobPhase.ID;
timer.JobID = job.ID;
timer.JobDetailID = jobDetail.ID;
timer.PhaseID = jobPhase.ID;
timer.StartTime = DateTime.Now;
timer.Stopwatch.Start();
jobTimers.Add(timer.UID, timer);

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Active;

if (log.AddNewTimeLog())

//Do something


else if (entryType == EntryType.Paused)

JobPhaseTimer timer = jobTimers[job.ID + "_" + jobPhase.ID];
timer.Stopwatch.Stop();

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Paused;

if (log.AddNewTimeLog())

//Do something






IEvalService.cs (Service Contract)



[ServiceContract]
public interface IEvalService

[OperationContract]
void SubmitEntry(Job job, JobDetail jobDetail, TimeLog timeLog, User user, EntryType entryType, JobPhase jobPhase);



Eval.svc markup :



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %>


Web.config :



<?xml version="1.0"?>
<configuration>

<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<services>
<service name="EvalServiceLibary.EvalService">
<endpoint address="" behaviorConfiguration="" binding="webHttpBinding"
contract="EvalServiceLibary.IEvalService" />
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
contract="EvalServiceLibary.IEvalService" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="EvalServiceSite.EvalAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>


Any ideas why I am getting this error? I have searched Google and come across a few pages but nothing seems to work.



Thanks!










share|improve this question
















When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following -




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




When I run the WCF service from the test client, all works fine.



Eval service:



[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class EvalService : IEvalService

Dictionary<string, JobPhaseTimer> jobTimers = new Dictionary<string, JobPhaseTimer>();

public void SubmitEntry(ENBO.Jobs.Job job, ENBO.Jobs.JobDetail jobDetail, ENBO.TimeLogs.TimeLog timeLog, ENBO.Users.User user, ENBO.Utilities.EntryType entryType, JobPhase jobPhase)

if (entryType == EntryType.Active)

JobPhaseTimer timer = new JobPhaseTimer();
timer.UID = job.ID + "_" + jobPhase.ID;
timer.JobID = job.ID;
timer.JobDetailID = jobDetail.ID;
timer.PhaseID = jobPhase.ID;
timer.StartTime = DateTime.Now;
timer.Stopwatch.Start();
jobTimers.Add(timer.UID, timer);

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Active;

if (log.AddNewTimeLog())

//Do something


else if (entryType == EntryType.Paused)

JobPhaseTimer timer = jobTimers[job.ID + "_" + jobPhase.ID];
timer.Stopwatch.Stop();

TimeLog log = new TimeLog();
log.JobID = job.ID;
log.PhaseID = jobPhase.ID;
log.UserID = user.ID;
log.DateEntry = DateTime.Now;
log.EntryType = EntryType.Paused;

if (log.AddNewTimeLog())

//Do something






IEvalService.cs (Service Contract)



[ServiceContract]
public interface IEvalService

[OperationContract]
void SubmitEntry(Job job, JobDetail jobDetail, TimeLog timeLog, User user, EntryType entryType, JobPhase jobPhase);



Eval.svc markup :



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %>


Web.config :



<?xml version="1.0"?>
<configuration>

<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<services>
<service name="EvalServiceLibary.EvalService">
<endpoint address="" behaviorConfiguration="" binding="webHttpBinding"
contract="EvalServiceLibary.IEvalService" />
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
contract="EvalServiceLibary.IEvalService" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="EvalServiceSite.EvalAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>


Any ideas why I am getting this error? I have searched Google and come across a few pages but nothing seems to work.



Thanks!







c# wcf wcf-binding






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 11 '13 at 12:09









marc_s

576k12911111258




576k12911111258










asked Jul 11 '13 at 11:18









dynamicuserdynamicuser

65231643




65231643












  • is it a web project? What is the web.config like?

    – Aliostad
    Jul 11 '13 at 11:23











  • Yes, a web project. I have added the web.config to the question. Cheers

    – dynamicuser
    Jul 11 '13 at 11:30


















  • is it a web project? What is the web.config like?

    – Aliostad
    Jul 11 '13 at 11:23











  • Yes, a web project. I have added the web.config to the question. Cheers

    – dynamicuser
    Jul 11 '13 at 11:30

















is it a web project? What is the web.config like?

– Aliostad
Jul 11 '13 at 11:23





is it a web project? What is the web.config like?

– Aliostad
Jul 11 '13 at 11:23













Yes, a web project. I have added the web.config to the question. Cheers

– dynamicuser
Jul 11 '13 at 11:30






Yes, a web project. I have added the web.config to the question. Cheers

– dynamicuser
Jul 11 '13 at 11:30













14 Answers
14






active

oldest

votes


















64














Change the following line in your Eval.svc file from:



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 


to:



<%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>





share|improve this answer




















  • 1





    This should be on my 'Strange WCF Service Errors List' or something.

    – Gerben Limburg
    Jan 13 '15 at 21:09






  • 7





    Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

    – Arman Bimatov
    May 17 '15 at 7:35






  • 1





    OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

    – MC9000
    Jun 13 '15 at 7:01






  • 1





    I'm happy that it worked for you guys. Cheers - Ali Rahimy

    – user3578181
    Feb 29 '16 at 22:59






  • 1





    This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

    – Bensonius
    Aug 23 '17 at 23:15


















30














Ensure that binary files are under "bin" subdirectory of your ".svc" file






share|improve this answer


















  • 1





    Moving .dll(s) into bin folder did the trick for me.

    – Ojas Maru
    Aug 26 '15 at 18:00











  • Worked for me too, thanks!

    – karfus
    Sep 11 '15 at 1:52






  • 1





    great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

    – symbiont
    Aug 28 '16 at 11:08






  • 1





    My output path was set to "binDebug". I changed it to "bin" and got past the error.

    – kevinpo
    Aug 7 '17 at 19:25


















16














Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file






share|improve this answer























  • This was my exact issue. Namespace qualifiers are case sensitive.

    – miniscem
    May 31 '16 at 23:59


















9














Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.






share|improve this answer
































    4














    I just hit this issue myself, and neither this nor any of the other answers on the net solved my issue. For me it was a strange one whereby the virtual directory had been created on a different branch in another source control server (basically, we upgraded from TFS 2010 to 2013) and the solution somehow remembered it's mapping.



    Anyway, I clicked the "Create Virtual Directory" button again, in the Properties of the Service project. It gave me a message about being mapped to a different folder and would I like to update it. I clicked yes, and that fixed the issue.






    share|improve this answer























    • This worked in my situation.

      – SixOThree
      Nov 20 '15 at 16:32


















    3














    1. When you create an IIS application only the /bin or /App_Code folder is in the root directory of the IIS app. So just remember put all the code in the root /bin or /App_code directory (see http://blogs.msdn.com/b/chrsmith/archive/2006/08/10/wcf-service-nesting-in-iis.aspx).


    2. Make sure that the service name and the contract contain full name(e.g namespace.ClassName), and the service name and interface is the same as the name attribute of the service tag and contract of endpoint in web.config.






    share|improve this answer

























    • second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

      – Prakash Joshi
      Feb 15 '16 at 11:41



















    2














    I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.






    share|improve this answer
































      1














      Right click on the .svc file in Solution Explorer and click View Markup



       <%@ ServiceHost Language="C#" Debug="true" 
      Service="MyService.**GetHistoryInfo**"
      CodeBehind="GetHistoryInfo.svc.cs" %>


      Update the service reference where you are referring to.






      share|improve this answer
































        1














        I had the same problem. Make sure you include assembly name in Factory property in your .svc file. Maybe you need to clean IIS cache if you had renamed project assembly name.






        share|improve this answer






























          0














          Double check projects .net versions. Projects that referenced each other with different .net versions causes problems.






          share|improve this answer






























            0














            In my case I did a "Convert to application" to the wrong folder on iis.
            My application was set in a subfolder of where it should have been.






            share|improve this answer






























              0














              I had this error when I had the current build configuration in Visual Studio set to something other than Debug.






              share|improve this answer






























                0














                I also had same problem. Purposely my build output path was "..bin" and it works for me when I set the build output path as "bin".






                share|improve this answer






























                  -1














                  This is an old bug, but I encountered it today on a web service which had barely been altered since being created via "New Project.."



                  For me, this issue was caused by the "IService.cs" file containing the following:



                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1.svc" CodeBehind="Service1.svc.cs" %>


                  Notice the value in the Service attribute contains ".svc" at the end.



                  This shouldn't be there.



                  Removing those 4 characters resolved this issue.



                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1" CodeBehind="Service1.svc.cs" %>


                  Note that you need to open this file from outside of Visual Studio.



                  Visual Studio shows one file, Service1.cs in the Solution Explorer, but that only lets you alter Service1.svc.cs, not the Service1.svc file.






                  share|improve this answer


















                  • 1





                    VS allows you to edit this file by right clicking and "View Markup".

                    – Michael O'Neill
                    Dec 24 '16 at 16:04










                  Your Answer






                  StackExchange.ifUsing("editor", function ()
                  StackExchange.using("externalEditor", function ()
                  StackExchange.using("snippets", function ()
                  StackExchange.snippets.init();
                  );
                  );
                  , "code-snippets");

                  StackExchange.ready(function()
                  var channelOptions =
                  tags: "".split(" "),
                  id: "1"
                  ;
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function()
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled)
                  StackExchange.using("snippets", function()
                  createEditor();
                  );

                  else
                  createEditor();

                  );

                  function createEditor()
                  StackExchange.prepareEditor(
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader:
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  ,
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  );



                  );













                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function ()
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17591972%2fwcf-service-the-type-provided-as-the-service-attribute-values-could-not-be-foun%23new-answer', 'question_page');

                  );

                  Post as a guest















                  Required, but never shown

























                  14 Answers
                  14






                  active

                  oldest

                  votes








                  14 Answers
                  14






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  64














                  Change the following line in your Eval.svc file from:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 


                  to:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>





                  share|improve this answer




















                  • 1





                    This should be on my 'Strange WCF Service Errors List' or something.

                    – Gerben Limburg
                    Jan 13 '15 at 21:09






                  • 7





                    Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                    – Arman Bimatov
                    May 17 '15 at 7:35






                  • 1





                    OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                    – MC9000
                    Jun 13 '15 at 7:01






                  • 1





                    I'm happy that it worked for you guys. Cheers - Ali Rahimy

                    – user3578181
                    Feb 29 '16 at 22:59






                  • 1





                    This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                    – Bensonius
                    Aug 23 '17 at 23:15















                  64














                  Change the following line in your Eval.svc file from:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 


                  to:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>





                  share|improve this answer




















                  • 1





                    This should be on my 'Strange WCF Service Errors List' or something.

                    – Gerben Limburg
                    Jan 13 '15 at 21:09






                  • 7





                    Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                    – Arman Bimatov
                    May 17 '15 at 7:35






                  • 1





                    OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                    – MC9000
                    Jun 13 '15 at 7:01






                  • 1





                    I'm happy that it worked for you guys. Cheers - Ali Rahimy

                    – user3578181
                    Feb 29 '16 at 22:59






                  • 1





                    This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                    – Bensonius
                    Aug 23 '17 at 23:15













                  64












                  64








                  64







                  Change the following line in your Eval.svc file from:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 


                  to:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>





                  share|improve this answer















                  Change the following line in your Eval.svc file from:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 


                  to:



                  <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 12 '14 at 10:11









                  songyuanyao

                  91.2k11173237




                  91.2k11173237










                  answered May 12 '14 at 9:42









                  user3578181user3578181

                  1,3551010




                  1,3551010







                  • 1





                    This should be on my 'Strange WCF Service Errors List' or something.

                    – Gerben Limburg
                    Jan 13 '15 at 21:09






                  • 7





                    Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                    – Arman Bimatov
                    May 17 '15 at 7:35






                  • 1





                    OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                    – MC9000
                    Jun 13 '15 at 7:01






                  • 1





                    I'm happy that it worked for you guys. Cheers - Ali Rahimy

                    – user3578181
                    Feb 29 '16 at 22:59






                  • 1





                    This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                    – Bensonius
                    Aug 23 '17 at 23:15












                  • 1





                    This should be on my 'Strange WCF Service Errors List' or something.

                    – Gerben Limburg
                    Jan 13 '15 at 21:09






                  • 7





                    Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                    – Arman Bimatov
                    May 17 '15 at 7:35






                  • 1





                    OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                    – MC9000
                    Jun 13 '15 at 7:01






                  • 1





                    I'm happy that it worked for you guys. Cheers - Ali Rahimy

                    – user3578181
                    Feb 29 '16 at 22:59






                  • 1





                    This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                    – Bensonius
                    Aug 23 '17 at 23:15







                  1




                  1





                  This should be on my 'Strange WCF Service Errors List' or something.

                  – Gerben Limburg
                  Jan 13 '15 at 21:09





                  This should be on my 'Strange WCF Service Errors List' or something.

                  – Gerben Limburg
                  Jan 13 '15 at 21:09




                  7




                  7





                  Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                  – Arman Bimatov
                  May 17 '15 at 7:35





                  Worked! Just to add, if you can't find the specified markup - right click on the .svc file in Solution Explorer and click "View Markup". Otherwise, if you open it, it opens the code file.

                  – Arman Bimatov
                  May 17 '15 at 7:35




                  1




                  1





                  OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                  – MC9000
                  Jun 13 '15 at 7:01





                  OMG! I looked everywhere for this after I changed the name of the service in a tutorial from service1 to something else. A freakin' right-click on the .svc file saved me hours of hair pulling!!!

                  – MC9000
                  Jun 13 '15 at 7:01




                  1




                  1





                  I'm happy that it worked for you guys. Cheers - Ali Rahimy

                  – user3578181
                  Feb 29 '16 at 22:59





                  I'm happy that it worked for you guys. Cheers - Ali Rahimy

                  – user3578181
                  Feb 29 '16 at 22:59




                  1




                  1





                  This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                  – Bensonius
                  Aug 23 '17 at 23:15





                  This happened to me when I changed the namespace under my project after the .svc was already created. It updated everywhere except in the markup.

                  – Bensonius
                  Aug 23 '17 at 23:15













                  30














                  Ensure that binary files are under "bin" subdirectory of your ".svc" file






                  share|improve this answer


















                  • 1





                    Moving .dll(s) into bin folder did the trick for me.

                    – Ojas Maru
                    Aug 26 '15 at 18:00











                  • Worked for me too, thanks!

                    – karfus
                    Sep 11 '15 at 1:52






                  • 1





                    great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                    – symbiont
                    Aug 28 '16 at 11:08






                  • 1





                    My output path was set to "binDebug". I changed it to "bin" and got past the error.

                    – kevinpo
                    Aug 7 '17 at 19:25















                  30














                  Ensure that binary files are under "bin" subdirectory of your ".svc" file






                  share|improve this answer


















                  • 1





                    Moving .dll(s) into bin folder did the trick for me.

                    – Ojas Maru
                    Aug 26 '15 at 18:00











                  • Worked for me too, thanks!

                    – karfus
                    Sep 11 '15 at 1:52






                  • 1





                    great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                    – symbiont
                    Aug 28 '16 at 11:08






                  • 1





                    My output path was set to "binDebug". I changed it to "bin" and got past the error.

                    – kevinpo
                    Aug 7 '17 at 19:25













                  30












                  30








                  30







                  Ensure that binary files are under "bin" subdirectory of your ".svc" file






                  share|improve this answer













                  Ensure that binary files are under "bin" subdirectory of your ".svc" file







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 28 '15 at 15:31









                  vasekvasek

                  1,77012122




                  1,77012122







                  • 1





                    Moving .dll(s) into bin folder did the trick for me.

                    – Ojas Maru
                    Aug 26 '15 at 18:00











                  • Worked for me too, thanks!

                    – karfus
                    Sep 11 '15 at 1:52






                  • 1





                    great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                    – symbiont
                    Aug 28 '16 at 11:08






                  • 1





                    My output path was set to "binDebug". I changed it to "bin" and got past the error.

                    – kevinpo
                    Aug 7 '17 at 19:25












                  • 1





                    Moving .dll(s) into bin folder did the trick for me.

                    – Ojas Maru
                    Aug 26 '15 at 18:00











                  • Worked for me too, thanks!

                    – karfus
                    Sep 11 '15 at 1:52






                  • 1





                    great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                    – symbiont
                    Aug 28 '16 at 11:08






                  • 1





                    My output path was set to "binDebug". I changed it to "bin" and got past the error.

                    – kevinpo
                    Aug 7 '17 at 19:25







                  1




                  1





                  Moving .dll(s) into bin folder did the trick for me.

                  – Ojas Maru
                  Aug 26 '15 at 18:00





                  Moving .dll(s) into bin folder did the trick for me.

                  – Ojas Maru
                  Aug 26 '15 at 18:00













                  Worked for me too, thanks!

                  – karfus
                  Sep 11 '15 at 1:52





                  Worked for me too, thanks!

                  – karfus
                  Sep 11 '15 at 1:52




                  1




                  1





                  great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                  – symbiont
                  Aug 28 '16 at 11:08





                  great. that was it! i forgot that i cleaned my solution. just had to build. such a vague error

                  – symbiont
                  Aug 28 '16 at 11:08




                  1




                  1





                  My output path was set to "binDebug". I changed it to "bin" and got past the error.

                  – kevinpo
                  Aug 7 '17 at 19:25





                  My output path was set to "binDebug". I changed it to "bin" and got past the error.

                  – kevinpo
                  Aug 7 '17 at 19:25











                  16














                  Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file






                  share|improve this answer























                  • This was my exact issue. Namespace qualifiers are case sensitive.

                    – miniscem
                    May 31 '16 at 23:59















                  16














                  Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file






                  share|improve this answer























                  • This was my exact issue. Namespace qualifiers are case sensitive.

                    – miniscem
                    May 31 '16 at 23:59













                  16












                  16








                  16







                  Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file






                  share|improve this answer













                  Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 10 '15 at 14:41









                  TheCopyPasterTheCopyPaster

                  17113




                  17113












                  • This was my exact issue. Namespace qualifiers are case sensitive.

                    – miniscem
                    May 31 '16 at 23:59

















                  • This was my exact issue. Namespace qualifiers are case sensitive.

                    – miniscem
                    May 31 '16 at 23:59
















                  This was my exact issue. Namespace qualifiers are case sensitive.

                  – miniscem
                  May 31 '16 at 23:59





                  This was my exact issue. Namespace qualifiers are case sensitive.

                  – miniscem
                  May 31 '16 at 23:59











                  9














                  Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.






                  share|improve this answer





























                    9














                    Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.






                    share|improve this answer



























                      9












                      9








                      9







                      Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.






                      share|improve this answer















                      Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 13 '17 at 17:49









                      Zukunft

                      1315




                      1315










                      answered Jul 11 '13 at 12:00









                      dynamicuserdynamicuser

                      65231643




                      65231643





















                          4














                          I just hit this issue myself, and neither this nor any of the other answers on the net solved my issue. For me it was a strange one whereby the virtual directory had been created on a different branch in another source control server (basically, we upgraded from TFS 2010 to 2013) and the solution somehow remembered it's mapping.



                          Anyway, I clicked the "Create Virtual Directory" button again, in the Properties of the Service project. It gave me a message about being mapped to a different folder and would I like to update it. I clicked yes, and that fixed the issue.






                          share|improve this answer























                          • This worked in my situation.

                            – SixOThree
                            Nov 20 '15 at 16:32















                          4














                          I just hit this issue myself, and neither this nor any of the other answers on the net solved my issue. For me it was a strange one whereby the virtual directory had been created on a different branch in another source control server (basically, we upgraded from TFS 2010 to 2013) and the solution somehow remembered it's mapping.



                          Anyway, I clicked the "Create Virtual Directory" button again, in the Properties of the Service project. It gave me a message about being mapped to a different folder and would I like to update it. I clicked yes, and that fixed the issue.






                          share|improve this answer























                          • This worked in my situation.

                            – SixOThree
                            Nov 20 '15 at 16:32













                          4












                          4








                          4







                          I just hit this issue myself, and neither this nor any of the other answers on the net solved my issue. For me it was a strange one whereby the virtual directory had been created on a different branch in another source control server (basically, we upgraded from TFS 2010 to 2013) and the solution somehow remembered it's mapping.



                          Anyway, I clicked the "Create Virtual Directory" button again, in the Properties of the Service project. It gave me a message about being mapped to a different folder and would I like to update it. I clicked yes, and that fixed the issue.






                          share|improve this answer













                          I just hit this issue myself, and neither this nor any of the other answers on the net solved my issue. For me it was a strange one whereby the virtual directory had been created on a different branch in another source control server (basically, we upgraded from TFS 2010 to 2013) and the solution somehow remembered it's mapping.



                          Anyway, I clicked the "Create Virtual Directory" button again, in the Properties of the Service project. It gave me a message about being mapped to a different folder and would I like to update it. I clicked yes, and that fixed the issue.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 6 '15 at 12:43









                          DetailDetail

                          436417




                          436417












                          • This worked in my situation.

                            – SixOThree
                            Nov 20 '15 at 16:32

















                          • This worked in my situation.

                            – SixOThree
                            Nov 20 '15 at 16:32
















                          This worked in my situation.

                          – SixOThree
                          Nov 20 '15 at 16:32





                          This worked in my situation.

                          – SixOThree
                          Nov 20 '15 at 16:32











                          3














                          1. When you create an IIS application only the /bin or /App_Code folder is in the root directory of the IIS app. So just remember put all the code in the root /bin or /App_code directory (see http://blogs.msdn.com/b/chrsmith/archive/2006/08/10/wcf-service-nesting-in-iis.aspx).


                          2. Make sure that the service name and the contract contain full name(e.g namespace.ClassName), and the service name and interface is the same as the name attribute of the service tag and contract of endpoint in web.config.






                          share|improve this answer

























                          • second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                            – Prakash Joshi
                            Feb 15 '16 at 11:41
















                          3














                          1. When you create an IIS application only the /bin or /App_Code folder is in the root directory of the IIS app. So just remember put all the code in the root /bin or /App_code directory (see http://blogs.msdn.com/b/chrsmith/archive/2006/08/10/wcf-service-nesting-in-iis.aspx).


                          2. Make sure that the service name and the contract contain full name(e.g namespace.ClassName), and the service name and interface is the same as the name attribute of the service tag and contract of endpoint in web.config.






                          share|improve this answer

























                          • second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                            – Prakash Joshi
                            Feb 15 '16 at 11:41














                          3












                          3








                          3







                          1. When you create an IIS application only the /bin or /App_Code folder is in the root directory of the IIS app. So just remember put all the code in the root /bin or /App_code directory (see http://blogs.msdn.com/b/chrsmith/archive/2006/08/10/wcf-service-nesting-in-iis.aspx).


                          2. Make sure that the service name and the contract contain full name(e.g namespace.ClassName), and the service name and interface is the same as the name attribute of the service tag and contract of endpoint in web.config.






                          share|improve this answer















                          1. When you create an IIS application only the /bin or /App_Code folder is in the root directory of the IIS app. So just remember put all the code in the root /bin or /App_code directory (see http://blogs.msdn.com/b/chrsmith/archive/2006/08/10/wcf-service-nesting-in-iis.aspx).


                          2. Make sure that the service name and the contract contain full name(e.g namespace.ClassName), and the service name and interface is the same as the name attribute of the service tag and contract of endpoint in web.config.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Apr 11 '18 at 20:50









                          Scott Baker

                          5,602123464




                          5,602123464










                          answered Jan 5 '16 at 20:02









                          Venkata Deekshit GantiVenkata Deekshit Ganti

                          584




                          584












                          • second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                            – Prakash Joshi
                            Feb 15 '16 at 11:41


















                          • second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                            – Prakash Joshi
                            Feb 15 '16 at 11:41

















                          second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                          – Prakash Joshi
                          Feb 15 '16 at 11:41






                          second point helped me, service name includes namespace name but not class name so completed service name by Namespace.ClassName

                          – Prakash Joshi
                          Feb 15 '16 at 11:41












                          2














                          I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.






                          share|improve this answer





























                            2














                            I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.






                            share|improve this answer



























                              2












                              2








                              2







                              I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.






                              share|improve this answer















                              I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Jun 26 '15 at 20:47









                              Chandan

                              92621226




                              92621226










                              answered Jun 26 '15 at 19:16









                              GokulGokul

                              211




                              211





















                                  1














                                  Right click on the .svc file in Solution Explorer and click View Markup



                                   <%@ ServiceHost Language="C#" Debug="true" 
                                  Service="MyService.**GetHistoryInfo**"
                                  CodeBehind="GetHistoryInfo.svc.cs" %>


                                  Update the service reference where you are referring to.






                                  share|improve this answer





























                                    1














                                    Right click on the .svc file in Solution Explorer and click View Markup



                                     <%@ ServiceHost Language="C#" Debug="true" 
                                    Service="MyService.**GetHistoryInfo**"
                                    CodeBehind="GetHistoryInfo.svc.cs" %>


                                    Update the service reference where you are referring to.






                                    share|improve this answer



























                                      1












                                      1








                                      1







                                      Right click on the .svc file in Solution Explorer and click View Markup



                                       <%@ ServiceHost Language="C#" Debug="true" 
                                      Service="MyService.**GetHistoryInfo**"
                                      CodeBehind="GetHistoryInfo.svc.cs" %>


                                      Update the service reference where you are referring to.






                                      share|improve this answer















                                      Right click on the .svc file in Solution Explorer and click View Markup



                                       <%@ ServiceHost Language="C#" Debug="true" 
                                      Service="MyService.**GetHistoryInfo**"
                                      CodeBehind="GetHistoryInfo.svc.cs" %>


                                      Update the service reference where you are referring to.







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Jan 11 '18 at 0:30









                                      Kcoder

                                      2,43222542




                                      2,43222542










                                      answered Jan 10 '18 at 22:48









                                      JoeJoe

                                      29119




                                      29119





















                                          1














                                          I had the same problem. Make sure you include assembly name in Factory property in your .svc file. Maybe you need to clean IIS cache if you had renamed project assembly name.






                                          share|improve this answer



























                                            1














                                            I had the same problem. Make sure you include assembly name in Factory property in your .svc file. Maybe you need to clean IIS cache if you had renamed project assembly name.






                                            share|improve this answer

























                                              1












                                              1








                                              1







                                              I had the same problem. Make sure you include assembly name in Factory property in your .svc file. Maybe you need to clean IIS cache if you had renamed project assembly name.






                                              share|improve this answer













                                              I had the same problem. Make sure you include assembly name in Factory property in your .svc file. Maybe you need to clean IIS cache if you had renamed project assembly name.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 13 '18 at 11:54









                                              JalalJalal

                                              4,18385190




                                              4,18385190





















                                                  0














                                                  Double check projects .net versions. Projects that referenced each other with different .net versions causes problems.






                                                  share|improve this answer



























                                                    0














                                                    Double check projects .net versions. Projects that referenced each other with different .net versions causes problems.






                                                    share|improve this answer

























                                                      0












                                                      0








                                                      0







                                                      Double check projects .net versions. Projects that referenced each other with different .net versions causes problems.






                                                      share|improve this answer













                                                      Double check projects .net versions. Projects that referenced each other with different .net versions causes problems.







                                                      share|improve this answer












                                                      share|improve this answer



                                                      share|improve this answer










                                                      answered May 26 '15 at 12:13









                                                      MehmetMehmet

                                                      14




                                                      14





















                                                          0














                                                          In my case I did a "Convert to application" to the wrong folder on iis.
                                                          My application was set in a subfolder of where it should have been.






                                                          share|improve this answer



























                                                            0














                                                            In my case I did a "Convert to application" to the wrong folder on iis.
                                                            My application was set in a subfolder of where it should have been.






                                                            share|improve this answer

























                                                              0












                                                              0








                                                              0







                                                              In my case I did a "Convert to application" to the wrong folder on iis.
                                                              My application was set in a subfolder of where it should have been.






                                                              share|improve this answer













                                                              In my case I did a "Convert to application" to the wrong folder on iis.
                                                              My application was set in a subfolder of where it should have been.







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Jun 5 '15 at 10:09









                                                              Navy SealNavy Seal

                                                              1311316




                                                              1311316





















                                                                  0














                                                                  I had this error when I had the current build configuration in Visual Studio set to something other than Debug.






                                                                  share|improve this answer



























                                                                    0














                                                                    I had this error when I had the current build configuration in Visual Studio set to something other than Debug.






                                                                    share|improve this answer

























                                                                      0












                                                                      0








                                                                      0







                                                                      I had this error when I had the current build configuration in Visual Studio set to something other than Debug.






                                                                      share|improve this answer













                                                                      I had this error when I had the current build configuration in Visual Studio set to something other than Debug.







                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Jul 23 '15 at 6:09









                                                                      BineGBineG

                                                                      19426




                                                                      19426





















                                                                          0














                                                                          I also had same problem. Purposely my build output path was "..bin" and it works for me when I set the build output path as "bin".






                                                                          share|improve this answer



























                                                                            0














                                                                            I also had same problem. Purposely my build output path was "..bin" and it works for me when I set the build output path as "bin".






                                                                            share|improve this answer

























                                                                              0












                                                                              0








                                                                              0







                                                                              I also had same problem. Purposely my build output path was "..bin" and it works for me when I set the build output path as "bin".






                                                                              share|improve this answer













                                                                              I also had same problem. Purposely my build output path was "..bin" and it works for me when I set the build output path as "bin".







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Sep 10 '15 at 3:24









                                                                              K.KirivarnanK.Kirivarnan

                                                                              663714




                                                                              663714





















                                                                                  -1














                                                                                  This is an old bug, but I encountered it today on a web service which had barely been altered since being created via "New Project.."



                                                                                  For me, this issue was caused by the "IService.cs" file containing the following:



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1.svc" CodeBehind="Service1.svc.cs" %>


                                                                                  Notice the value in the Service attribute contains ".svc" at the end.



                                                                                  This shouldn't be there.



                                                                                  Removing those 4 characters resolved this issue.



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1" CodeBehind="Service1.svc.cs" %>


                                                                                  Note that you need to open this file from outside of Visual Studio.



                                                                                  Visual Studio shows one file, Service1.cs in the Solution Explorer, but that only lets you alter Service1.svc.cs, not the Service1.svc file.






                                                                                  share|improve this answer


















                                                                                  • 1





                                                                                    VS allows you to edit this file by right clicking and "View Markup".

                                                                                    – Michael O'Neill
                                                                                    Dec 24 '16 at 16:04















                                                                                  -1














                                                                                  This is an old bug, but I encountered it today on a web service which had barely been altered since being created via "New Project.."



                                                                                  For me, this issue was caused by the "IService.cs" file containing the following:



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1.svc" CodeBehind="Service1.svc.cs" %>


                                                                                  Notice the value in the Service attribute contains ".svc" at the end.



                                                                                  This shouldn't be there.



                                                                                  Removing those 4 characters resolved this issue.



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1" CodeBehind="Service1.svc.cs" %>


                                                                                  Note that you need to open this file from outside of Visual Studio.



                                                                                  Visual Studio shows one file, Service1.cs in the Solution Explorer, but that only lets you alter Service1.svc.cs, not the Service1.svc file.






                                                                                  share|improve this answer


















                                                                                  • 1





                                                                                    VS allows you to edit this file by right clicking and "View Markup".

                                                                                    – Michael O'Neill
                                                                                    Dec 24 '16 at 16:04













                                                                                  -1












                                                                                  -1








                                                                                  -1







                                                                                  This is an old bug, but I encountered it today on a web service which had barely been altered since being created via "New Project.."



                                                                                  For me, this issue was caused by the "IService.cs" file containing the following:



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1.svc" CodeBehind="Service1.svc.cs" %>


                                                                                  Notice the value in the Service attribute contains ".svc" at the end.



                                                                                  This shouldn't be there.



                                                                                  Removing those 4 characters resolved this issue.



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1" CodeBehind="Service1.svc.cs" %>


                                                                                  Note that you need to open this file from outside of Visual Studio.



                                                                                  Visual Studio shows one file, Service1.cs in the Solution Explorer, but that only lets you alter Service1.svc.cs, not the Service1.svc file.






                                                                                  share|improve this answer













                                                                                  This is an old bug, but I encountered it today on a web service which had barely been altered since being created via "New Project.."



                                                                                  For me, this issue was caused by the "IService.cs" file containing the following:



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1.svc" CodeBehind="Service1.svc.cs" %>


                                                                                  Notice the value in the Service attribute contains ".svc" at the end.



                                                                                  This shouldn't be there.



                                                                                  Removing those 4 characters resolved this issue.



                                                                                  <%@ ServiceHost Language="C#" Debug="true" Service="JSONWebService.Service1" CodeBehind="Service1.svc.cs" %>


                                                                                  Note that you need to open this file from outside of Visual Studio.



                                                                                  Visual Studio shows one file, Service1.cs in the Solution Explorer, but that only lets you alter Service1.svc.cs, not the Service1.svc file.







                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Aug 13 '15 at 11:40









                                                                                  Mike GledhillMike Gledhill

                                                                                  17.1k498119




                                                                                  17.1k498119







                                                                                  • 1





                                                                                    VS allows you to edit this file by right clicking and "View Markup".

                                                                                    – Michael O'Neill
                                                                                    Dec 24 '16 at 16:04












                                                                                  • 1





                                                                                    VS allows you to edit this file by right clicking and "View Markup".

                                                                                    – Michael O'Neill
                                                                                    Dec 24 '16 at 16:04







                                                                                  1




                                                                                  1





                                                                                  VS allows you to edit this file by right clicking and "View Markup".

                                                                                  – Michael O'Neill
                                                                                  Dec 24 '16 at 16:04





                                                                                  VS allows you to edit this file by right clicking and "View Markup".

                                                                                  – Michael O'Neill
                                                                                  Dec 24 '16 at 16:04

















                                                                                  draft saved

                                                                                  draft discarded
















































                                                                                  Thanks for contributing an answer to Stack Overflow!


                                                                                  • Please be sure to answer the question. Provide details and share your research!

                                                                                  But avoid


                                                                                  • Asking for help, clarification, or responding to other answers.

                                                                                  • Making statements based on opinion; back them up with references or personal experience.

                                                                                  To learn more, see our tips on writing great answers.




                                                                                  draft saved


                                                                                  draft discarded














                                                                                  StackExchange.ready(
                                                                                  function ()
                                                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17591972%2fwcf-service-the-type-provided-as-the-service-attribute-values-could-not-be-foun%23new-answer', 'question_page');

                                                                                  );

                                                                                  Post as a guest















                                                                                  Required, but never shown





















































                                                                                  Required, but never shown














                                                                                  Required, but never shown












                                                                                  Required, but never shown







                                                                                  Required, but never shown

































                                                                                  Required, but never shown














                                                                                  Required, but never shown












                                                                                  Required, but never shown







                                                                                  Required, but never shown







                                                                                  Popular posts from this blog

                                                                                  Darth Vader #20

                                                                                  How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                                                                                  Ondo