Creating Custom WCF in sharePoint 2013

Hello,
 I read the following article to create Custom wcf "http://www.robertseso.com/2013/05/adding-custom-wcf-services-to.html".
I have followed the steps .
when I open the .svc  from browser I got the following error :
           "sharepoint  provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found."
How Can I solve it?
ASk

http://stackoverflow.com/questions/17591972/wcf-service-the-type-provided-as-the-service-attribute-values-could-not-be-foun
Turns out the Eval.svc.cs needed its namespace changing to EvalServiceLibary, rather than EvalServiceSite.
http://www.codeproject.com/Questions/611706/system-serviceModel-serviceHos
 found the solution, just change the endpoint address and added the baseAddress
working fine
here is my web.config file
<configuration>
<system.web>
<customerrors mode="Off" />
<compilation debug="true" targetframework="4.0">
</compilation>
</system.web>
<system.servicemodel>
<servicehostingenvironment aspnetcompatibilityenabled="True" multiplesitebindingsenabled="True">
</servicehostingenvironment>
<services>
<service name="abc.MyService" behaviorconfiguration="MyWCF">
<endpoint address="http://YourSiteName/MyService.svc" listenuri="/" binding="wsHttpBinding" contract="abc.IMService"></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseaddress="http://YourSiteName/" /> </baseAddresses>
</host>
</service>
</services>
<behaviors>
<servicebehaviors>
<behavior name="MyWCF">
<servicemetadata httpgetenabled="true" policyversion="Policy15" />
<servicedebug includeexceptiondetailinfaults="true" />
</behavior>
</servicebehaviors>
</behaviors>
</system.servicemodel>
<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
</modules>
</system.webserver>
</configuration>
http://social.msdn.microsoft.com/Forums/en-US/60a8ca68-c85d-4945-93dc-add4014a3474/servicehost-directive-or-provided-in-the-configuration-element?forum=wcf
http://patrickyong.net/tags/wcf/
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Creating custom scopes in SharePoint 2013

    Guys,
    Environment : SharePoint 2013
    I want to provide the user with the ability to search from a custom search scope which has been deprecated in sharepoint 2013. How can i do this in 2013, also i would like to have
    the custom scopes in a dropdown next to the search box so that the users can select from it.
    off the quick reading that i did i have to create Result Source, query settings but if anyone can point me to an online link showing how to do it would be great.
    Thanks
    MM

    The easiest way to do this is create a content type from your list.  Then in your query, target the content type only for results and add that to your search options.  That way when someone selects to search through that content type it will only
    show results from that list of content that matches that type.
    Let me know if that helps.

  • How to configure service endpoints of custom webservice in SharePoint 2013?

    Hi,
    I have created a custom webservice in SharePoint 2013. I placed it in a sub folder under the ISAPI folder. I followed the instructions of this article: http://msdn.microsoft.com/en-us/library/office/ff521581(v=office.14).aspx. The webservice works
    great, however when I try to send a large file I get the message "413 Request entity is too large".
    After some searching I found out that you can create a web.config in the subfolder and define the endpoints and bindings, after which I get an error that there is already an endpoint defined for the specified URI. I believe this has something to do with
    the BasicHttpBindingServiceMetadataExchangeEndpointAttribute but I'm not sure.
    Can anyone help me solve this issue?
    Regards,
    Sander

    Hi,
    According to your post, my understanding is that you want to configure service endpoints of custom webservice in SharePoint 2013.
    Per my knowleadge, after you add a reference to Microsoft.SharePoint.Client.ServerRuntime, you can use the BasicHttpBindingServiceMetadataExchangeEndpointAttribute.
    In VS  go to the add reference and paste the following: C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Client.ServerRuntime.
    In addition, please make sure you create the custom web service correctly.
    For more information, you can refer to:
    SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed
    in a WSP
    How to create Custom Web Service WCF (REST) in SharePoint 2013
      Adding custom WCF services to a SharePoint 2013 farm solution using Visual Studio 2012
    "BasicHttpBindingServiceMetadataExchangeEndpointAttribute" could not be found
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Custom list in Sharepoint 2013 for training booking purpose

    Kindly note that I am trying to  do custom list in Sharepoint 2013 for training booking purpose
    As below :
    The user should enter the user name  - it works fine
    The user should select the data from the choice list
    The requirement is , I need to limit in each  day of the training 20 seats (20 booking only) only
     Can you advise how to do so.
    [email protected]
    Basil

    check below post and video on how to build the event receivers
    http://www.sharepointpals.com/post/How-to-create-a-custom-list-level-event-receiver-in-SharePoint-2013-and-SharePoint-2010
    https://www.youtube.com/watch?v=wZf2xvEM5Io
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Reading values from lookup columns through custom workflow in SharePoint 2013

    We are able to read the values of text, number columns through custom workflow (via coding) in SharePoint 2013. However, we are not able to read values from lookup columns. So, request anyone to provide help on this.
    Thanks & regards,
    Aditya

    Hi,
    According to your post, my understanding is that you want to read values from lookup columns through custom workflow in SharePoint 2013.
    Since the workflow just doesn't get lookup fields, let's give it something static to work with instead. If we can capture the ID of the lookup field and store that as a static value in our list, the workflow can happily use that to look up our related.
    For more information, you can refer to:
    SharePoint 2013 Workflows and Lookup Columns
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How to create custom report in crm 2013

    Hi,
    I want to create custom report in crm 2013. I want to show Contact information in report. My scenario is that when I select multiple record and run report then contact information show in different pages. I want to show record in textbox in report. Here
    is an example of display record

    Hi Aamir,
    Have a look at below link it shows step by step how to create custom SSRS report.
    http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
    It tells using fetchxml, you can use SQL query as well. You need to use pre filtering to run report on selected record.
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list

    I  am looking for custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Greetings.
    pls check if it helps you.
    http://msdn.microsoft.com/en-us/library/office/jj554504(v=office.15).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How go generate Popularity Trends report for a custom list in SharePoint 2013

    Hi, 
    I want to generate  Popularity Trends report for a custom list in SharePoint 2013, is it possible?
    Thanks
    khadar pasha

    According to
    this link you should be able to access this option from the Items tab. for this to work, the Analytics Processing Component needs to be running.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to create recurring task in SharePoint 2013?

    Hello,
    Applies to: SharePoint 2013
    Requirement: Is there a way to create recurring task in SharePoint 2013?
    Regards
    Tanzim Akhtar
    Tanzim Akhtar

    this might have the answer and work around. I will try it.
    "What's changed in SharePoint Designer 2013"
    http://msdn.microsoft.com/en-us/library/jj728659.aspx
    Here is some of the explanation:
    Description of the change. Some features of the SharePoint 2010 Workflow platform that are dependent on Windows Workflow Foundation 3.0 are deprecated in SharePoint 2013.
    Reason for the change.SharePoint 2013 introduces a new SharePoint 2013 Workflow platform that is built upon Windows Workflow Foundation 4.0 and that is integrated with Workflow Manager 1.0.
    Migration path. In SharePoint Designer 2013, you can still create a SharePoint 2010 Workflow and use all of the SharePoint 2010 Workflow features by choosing the SharePoint 2010 Workflow platform.
    You can also integrate features from the SharePoint 2010 Workflow platform into the new SharePoint 2013 Workflow platform. To do this, create a SharePoint 2010 Workflow by choosing the SharePoint 2010 Workflow platform; create a SharePoint 2013 Workflow by
    choosing the SharePoint 2013 Workflow platform; and then use the Start a list workflow and Start a site workflow actions in the SharePoint 2013 Workflow to call the SharePoint 2010 Workflow.

  • What is the difference between SSAS & Data Mart? Is SSAS required to create BI Dashboard in SharePoint 2013?

    Hello All,
    Greetings for the day.!
    What is the main feature wise difference between SQL Server Analysis Service & Data Mart? Can we create BI Dashboard in SharePoint 2013 without creating SSAS & Measures?
    Thanks,
    msdn.microsoft.com

    Hi jdoshi65, 
    This is a very long-to-answer question :) 
    A Data Mart is a subset of a Data Warehouse, specifically designed for a department for example, or to support certain reports. The Data Warehouse is where ALL the data available for analysis in your company is, is a super set from the Data Mart.
    Then, we have SQL Server Analysis Services, which is a service which ships with SQL Server. It builds, ON TOP of the Data Warehouse or the Data Mart (or both) an OLAP solution in order to improve and enrich the reports, analytics and insights coming from
    the data in the Data Warehouse / Data Mart. 
    That's the big picture, but: 
    - Is it necessary to have a Data Warehouse or a Data Mart to use SQL Server Analysis Services? NO
    - Is it necessary to have SQL Server Analysis services to query and create reports from a Data Warehouse / Data Mart? NO
    So, answering your question, there is no difference between SQL Service Analysis Services and a Data Mart because they are different things.
    Then, yes, you can create a BI Dashboard in SharePoint 2013 without a SSAS cube behind. You can just use SQL Server Reporting Services or Performance Point Services to build dashboards in SharePoint 2013.
    Regards.

  • Add attachment button to a custom new form SharePoint 2013

    I'm creating a new custom form using SharePoint Designer 2013.
    I would like to add a attachment button to be able to upload files and images. How can this be done?
    See code below
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir="ltr">
    <input type="file" name="fileupload0" id="onetidIOFile" size="56" title="Name"></input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type="button" value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" id="attachOKbutton" />
    <span id="idSpace"></span>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="New" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="New" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('i','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    Im getting error :
    Uncaught TypeError: Cannot read property 'value' of undefined
    form.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    OkAttachform.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    onclick
    Somewhere around this line:
    k=document.getElementsByName("RectGifUrl")[0];e.innerHTML='<span class="ms-delAttachments"><IMG SRC=\''+k.value+"'>&nbsp;<a href='javascript:RemoveLocal
    Thanks in Advance

    Create a custom list form or go to your NewForm.aspx using SharePoint Designer. Place the below code where you would like to insert the Attachment Field
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir=”ltr”>
    <input type=”file” name=”fileupload0″ id=”onetidIOFile” size=”56″ title=”Name”> </input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type=”button” value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" />
    <span id="idSpace"></span>
    </td>
    </tr>
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Possible to fill a list using a custom Workflow in Sharepoint 2013

    Is it possible to develop a custom workflow that compares a Contact List and the Active Directory and add any missing people to the list? Or is this a functionality not available with workflows and sharepoint 2013?

    Instead of workflow you can do this,
    Have user profile service application set up ,which will run on daily basis by default(you can configure to run Hourly/Minutely also) to import all users along with user attributes(email, department ..etc) to SharePoint. Configuring  UPS :
    http://blog.anuragg.com/2012/12/configure-user-profile-service.html
    Create an item added event receiver on your "Contacts" list ,build business logic to fetch the corresponding  user details from the above synced user profile properties. Retrieving User profile properties :
    http://msdn.microsoft.com/en-us/library/office/jj163182(v=office.15).aspx
    Please remember to click Mark as Answer on the answer if it helps you

  • Facing error while creating PerformancePoint Dashboard in SharePoint 2013?

    Hi All,
    I am not able to create Performance Point Dashboard site in SharePoint 2013, while creating facing this error:
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however,
    be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application.
    This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    How to fix this issue?
    Thanks in advance

    Hi Sam,
    Please modify your web.config file to show error details in SharePoint as below:
    Set customErrors mode to Off
    Set SafeMode CallStack to true
    Set compilation debug to true
    For more information:
    http://www.keremozen.com/2012/04/08/how-to-show-error-details-in-sharepoint/
    http://www.ashokraja.me/post/Display-Stack-Trace-in-Sharepoint-2010.aspx
    After modification, check the detail error message.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Adding Attchement button inside create new discssion in SharePoint 2013 Discussion Board not from the Ribbon

    all that i want to customize create a new discussion layout by adding new attach new document but not by using Ribbon

    Hi,
    For your issue, you can customize the layout for the discussion board new form with content editor web part.
    For more information, you can refer to the blog:
    http://www.markrackley.net/2013/08/29/easy-custom-layouts-for-default-sharepoint-forms/
    http://www.shillier.com/archive/2013/03/26/uploading-files-in-sharepoint-2013-using-csom-and-rest.aspx
    Actually in my opinion, the new file upload behavior in SharePoint 2013 is great. As we can click in the body and upload files via the ribbon INSERT tab.The
    new 2013 discussion board allow attachments to be stored in any document libraries besides the default Site Asset library.
    Reference:
    http://sharepointconnoisseur.blogspot.in/2013/07/tips-to-use-sharepoint-2013-discussion.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Customizing MYSITE in SharePoint 2013

    In SharePoint 2013 we want our Intranet Home page  to be the user's MYSITE. Is it possible to apply the corporate branding to MYSITE and also allow our Corporate Marketing and Communications team to publish corporate news / information,
    polls, links (rollup web part for lists) to important communication in a section of MYSITE which all users will see in addition to their personal MYSITE information. The goal is to encourage Social media usage within the company.
    Thanks
    MP

    Hello,
    In order to apply corporate branding to the MySite host, you need to create your custom master page.
    About publishing content there's a few OOTB WebParts that could do the job but if you want something that really suits your needs you might have to develop your own component.
     Hope this helps.

Maybe you are looking for