Question

I have Glimpse ASP.NET working in my ASP.NET WebSite project (.Net 4.0).

But when I try adding Glimpse ADO my project fails with multiple errors like this:

'Glimpse.Ado.AlternateType.GlimpseDbDataAdapter' is inaccessible due to its protection level

The offending code is caused by generated App_Code.*.cs files, where it constructs the *TableAdapter classes. Here is an example of the generated code:

public partial class CallsSampleDataSetTableAdapter : global::System.ComponentModel.Component {

    private global::Glimpse.Ado.AlternateType.GlimpseDbDataAdapter _adapter;
    private global::Glimpse.Ado.AlternateType.GlimpseDbConnection _connection;
    private global::Glimpse.Ado.AlternateType.GlimpseDbCommand[] _commandCollection;

The GlimpseDbConnection and GlimpseDbCommand classes are accessible and do not cause an error, only the GlimpseDbDataAdapater line causes the error (along with accessor methods for this field).

Checking the Glimpse ADO source code, the GlimpseDbDataAdapter class is indeed declared internal, and won't be accessible.

Should this class be made public in the Glimpse ADO library? Or is there something I can do to my TableAdapater .xsd files or code-behind to change the behavior of the code generator?

Any help appreciated.

Was it helpful?

Solution

The class will be public as from version 1.4.1 of Glimpse.Ado

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top