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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:15:43+00:00 2026-06-07T16:15:43+00:00

I have this ASP.NET app, in which I use Entity Framework to connect to

  • 0

I have this ASP.NET app, in which I use Entity Framework to connect to the DB. Inside this app I have a class which provides different operations on the DB (add, remove etc). Everything works dandy. Now I needed to create a Windows Service which once a week updates the DB with info gathered from a repository. I thought that I could add my ASP.NET dll as a reference to my windows service, so that I could use the operations I defined there. But I get the following error:

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid

I read in some other thread that I should copy the connect string to the app.config, but I don’t have any app.config file in my windows service project. How can I use the EDM operations I defined in the class in both the ASP app and the windows service?

  • 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-07T16:15:48+00:00Added an answer on June 7, 2026 at 4:15 pm

    Dude u need to create an app.config in that case . Copy the connection string in the web app to the app.config with the same name. See when the windows service is running and the EF tries to create data context it doesnt find any and hence it shows the error. So u should add one app.config file and add the connectionstring to it appropriately.

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

Sidebar

Related Questions

I have an ASP.NET MVC app which has a bootstrapper class that configures log4net
I have an existing ASP.NET app which is configured to connect to a MS
I have a SQL query in my ASP.net web app that looks like this:
I'm creating an asp.net MVC app, first time I've done this. I have a
Bit of a backstory to this one... I have an ASP.NET Login App on
I have an ASP.NET MVC 3 app hosted on IIS. This app is using
i have an asp.net website http://www.site.com . This web app is also running on
I am writing an asp.net web app which involves the use of the FileUpload
We have a load balanced (NLB) ASP.NET web app which sends email. The servers
We have an ASP.NET MVC web app which allows users to publish messages onto

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.