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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:39:06+00:00 2026-05-14T18:39:06+00:00

Ok the thing is that I am using asp.net mvc with linq to sql.

  • 0

Ok the thing is that I am using asp.net mvc with linq to sql. I have a scenario where there are two tables group and features with many to many relationship with the third table groupfeatures. I have drag and drop all three table in the dbml file.

The thing is that it runs fine with group but when I call the Feature things the above error occured and the compilers stops at this line in ((())).

public partial class EgovtDataContext : System.Data.Linq.DataContext
{

    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InsertGroup(Group instance);
    partial void UpdateGroup(Group instance);
    partial void DeleteGroup(Group instance);
    partial void InsertFeature(Feature instance);
    partial void UpdateFeature(Feature instance);
    partial void DeleteFeature(Feature instance);
    partial void InsertGroupFeature(GroupFeature instance);
    partial void UpdateGroupFeature(GroupFeature instance);
    partial void DeleteGroupFeature(GroupFeature instance);
    #endregion

    (((public EgovtDataContext() : 
           base(global::System.Configuration.ConfigurationManager.ConnectionStrings["egovtsConnectionString"].ConnectionString, mappingSource))))

The code in both the controller Group and features file is ditto copied. Note the group things are working, the features things are not.

FeaturesRepository.cs

 public IQueryable<Feature> FindAllFeatures()
 {
     return db.Features;
 }

FeaturesController.cs

  FeaturesRepository FeatureRepository = new FeaturesRepository();
  public ActionResult Index()
  {
      var Feature = FeatureRepository.FindAllFeatures();

      return View(Feature);
  }

So what could be wrong?

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

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:39:06+00:00Added an answer on May 14, 2026 at 6:39 pm

    StackOverflowException usually means you’ve ended up in an infinite recursive loop. If I were in your shoes I’d be looking for where it’d be possible for one of your methods or properties to call itself (or call another method chain which loops back to itself).

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

Sidebar

Related Questions

We are using ASP.NET MVC with LINQ to SQL. We added some features and
I'm building an ASP.NET MVC 2 site that uses LINQ to SQL. In one
I have an ASP.NET MVC (using the release candidate) application that works with a
I'm writing an ASP.NET MVC site where I'm using LINQ to SQL to access
Im using asp.net mvc 2. I have a model Supermodel that consists of 2
SQL Server 2008 Ent ASP.NET MVC 2.0 Linq-to-SQL I am building a gaming site,
I'm querying the Asp.NET MVC ModelStateDictionary using LINQ but I'm stuck on the following
So, I'm working on a new project using ASP.NET MVC. Honestly I don't have
i have project in ASP.NET MVC 3 and a mysql database that contains a
I'm just about to start a new project on ASP.NET MVC using LINQ to

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.