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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:35:42+00:00 2026-05-20T21:35:42+00:00

I went over to the subsonic website and downloaded the version 3.0.0.4. My project

  • 0

I went over to the subsonic website and downloaded the version 3.0.0.4. My project setup went well without errors. I then added the following to access two views in my DB

const string TABLE_SQL=@"SELECT *
    FROM  INFORMATION_SCHEMA.TABLES
    WHERE TABLE_TYPE='BASE TABLE'
    UNION
    SELECT TABLE_CATALOG,TABLE_SCHEMA,TABLE_NAME, 'View' TABLE_TYPE
    FROM INFORMATION_SCHEMA.VIEWS";

In Visual Studio 2010 I am seeing the views were generated, however when I do the following to test

MsgBox(Accounting.vwVendor.All().Count().ToString())

I get no data. If I run the same for other generated tables, it works fine. I do see the following in VS Immediate Window

A first chance exception of type
‘System.InvalidOperationException’
occurred in SubSonic.Core.dll

Am I missing something for accessing SQL Server views via SubSonic?

UPDATED: I changed the target framework from Framework 4.0 Client Profile to Framework 3.5 Client Profile, build the solution, changed back the target framework to 4.0, build the solution and it worked!

  • 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-20T21:35:43+00:00Added an answer on May 20, 2026 at 9:35 pm

    The modification you list is all that should be needed to access Views with SubSonic. I have even tested it in a new project, and had no issues.

    If you post more details about the exception (like the stack trace), perhaps something will stand out.

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

Sidebar

Related Questions

Re-Edited: I went over to W3schools and played around in there javascript editor window
I've counted, checked my commas, and went over the whole thing again but I
I went to Twitter's resource page here (https://twitter.com/about/resources/tweetbutton) and got the following code: <a
I went to connect to my website via firefox earlier this afternoon and I
I went over making my own copy constructor and it overall makes sense to
All the examples that I have read have only went over how to create
So I went over this block of code several times in a book that
So I just went over cascading member functions calls by returning the *this pointer.
I went over many examples of this method and still cant figure out whats
i went over some questions and searched google a bit, but i couldnt find

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.