Sign Up

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

Have an account? Sign In

Have an account? Sign In Now

Sign In

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

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

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

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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

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

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

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

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

Mobile menu

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:10:47+00:00 2026-06-13T23:10:47+00:00

I have made a complex solution using EF5 (Lets call it EF5), this solution

  • 0

I have made a complex solution using EF5 (Lets call it EF5), this solution works perfectly fine and has a Logic.cs file,lies at the app_code, which has multiple functions that access , control and modify this solution, So far so good.

I would like that my business’ clients to access these function and I’d like to expose these functions by using WCF.

The steps I did are the following.

  1. Adding WCF project to the solution where the EF5 project is.
  2. Writing “OperationContract”s for each of the functions I’d like to expose to my client.
  3. Try implementing each of the functions by calling the EF5 functions.

The problem lies at the implementation, VS fails to recognize the logic.cs file , and therefore I cannot call the functions and expose my EF5 project to my clients.

I am new with WCF, obviously I’m doing something wrong here.

My question is, how do I expose EF5 project’s functions, that lies in a .cs class , to WCF?

I believe that the major mistake that I made was that I didn’t make a WCF project and added EF5 item to it, but I’m not entirely sure.

Here are the screenshots that displays my steps to add the EF5 Reference to the WCF project.

enter image description here

enter image description here

enter image description here

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:10:48+00:00Added an answer on June 13, 2026 at 11:10 pm

    You need to add a reference to your EF5 project from your WCF project.

    You also need to make sure all your function to be called in Logic.cs are public.

    Also make sure you are ‘using’ the namespace in which those functions are declared.

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

Sidebar

Related Questions

I have a fairly complex model for one of my pages; it's made of
I have made an application for IPad in objective C. In this I am
I have made a cart and the cart has remove item button, but the
I have made a website using( Asp.net, c# ) and its content in English
I have made a String[] array by using String.split(.) . I am now trying
I have a select from (nothing to complex) Select * from VIEW This view
We have a complex fabric BPM solution. We now want to expose the fabric
I have a default _siteLayout.cshtml file with a call to @RenderBody() in the centre
I am currently struggling with Maven: I have a complex project made of several
I have a class GaugeScale that I made with a few properties. This class

Explore

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

Footer

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

Insert/edit link

Enter the destination URL

Or link to existing content

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