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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:45:48+00:00 2026-05-24T07:45:48+00:00

Hoping someone has an idea on how to use a type from my linq-to-sql

  • 0

Hoping someone has an idea on how to use a type from my linq-to-sql datacontext as the type attribute in my web.config providers property.

    <profile enabled="true">
        <properties>
            <add name="UserSetting" allowAnonymous="true" type="MyApp.DataAccess.UserSetting" />
        </properties>
    </profile>

So, in this case, UserSetting is a table in my database, which I’ve mapped using Linq to Sql. Alternatively, in the past I’ve specified a class which I’ve expressly written in my application and it’s worked fine. I’d rather have it dynamically linked though.

Hopefully this makes sense – 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-05-24T07:45:49+00:00Added an answer on May 24, 2026 at 7:45 am

    I got it to work.

    I needed to add the system.data.linq assembly to the web.cofig.

        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
          </assemblies>
        </compilation>
    

    oh – and dont forget the profile provider.

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

Sidebar

Related Questions

I'm hoping someone has run into this sort of problem before, and can give
A long shot but here's hoping someone has some experience coding PHP hooks for
I am sure someone has this done already, and was hoping someone could share
Here's a JSFiddle that breaks uniquely in Internet Explorer 9. I'm hoping someone has
I've submitted a bug to the tinyMCE people, but i'm hoping someone else has
Hi this is something that's really bothering me and I'm hoping someone has an
I have no idea what's going on here and was hoping someone could help,
I cannot find a way to make this work and hoping someone has an
Hoping someone has ran into this scenario and can lead me in the right
I'm hoping someone has come across this problem before too. I am trying 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.