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

  • Home
  • SEARCH
  • 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 6565593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:06:48+00:00 2026-05-25T14:06:48+00:00

This might be somehow connected to this other issue I had with FNH. Fluent

  • 0

This might be somehow connected to this other issue I had with FNH.

Fluent NHibernate cannot load MySql.Data from GAC in debug mode of a test

Generally I got a simple test that runs following code first:

FluentConfiguration config = Fluently
    .Configure()
    .Database(
        PostgreSQLConfiguration.Standard.ConnectionString(c => c.FromConnectionStringWithKey("PostgreSQLConnectionString")))
    .Mappings(m => m.FluentMappings.AddFromAssemblyOf<MyMapping>());

s_SessionSource = new SessionSource(config);

When I am not running it in Debug (just run tests) it works fine.

When I try to debug i get NotSupportedException:
Second line throws that (new SessionSource one)

Specified method is not supported. at
Npgsql.NpgsqlConnection.GetSchema(String collectionName, String[]
restrictions) in
C:\projects\Npgsql2\src\Npgsql\NpgsqlConnection.cs:line 970

Why in debug throws exception, but when ran without debug no errors?
I am puzzled with this.. Notice again, when I just run code it works fine, it accesses postgre db no prob.

Notice this is not difference between Release and Debug, its Debug in both cases, but in first case I run debug, but in second I run code without debugging.

EDIT: found this question : http://pgfoundry.org/forum/message.php?msg_id=1003008 appears to be my exact issue, but only occurs in debugging.

  • 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-25T14:06:48+00:00Added an answer on May 25, 2026 at 2:06 pm

    Npgsql.NpgsqlConnection.GetSchema throws NotSupportedException when its collectionName argument is unknown. You should perhaps upgrade to the latest patch that supports the NHibernate test suite.

    The exception must be catched by Fluent, but an attached debugger will stop on it.

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

Sidebar

Related Questions

I know this question might sound quite silly, but I somehow found myself stuck
This might be a Windows 7 issue, but calling using (var context = new
this might sound easy problem to you, but somehow Im stuck with it, here
This might sound silly, but my umbraco 5.1 application (after upgrading from 5.0) simply
This might seem like a very easy question for some of you folks, but
This might be a simple question but I've searched and searched and can't find
This might be a naive question. However, I am just trying to understand why
This might be a very basic question but it confuses me. Can two different
This might get a little confusing as I have tried everything to make this
This might sound like a stupid question but just trying to learn something here.

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.