Ошибка feature is not supported

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I created a simple application to test authentication in a linux container.

using Microsoft.AspNetCore.Authentication.Negotiate;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.

builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
    .AddNegotiate(options =>
    {
        if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
        {
            options.EnableLdap(settings =>
            {
                settings.Domain = "<domain_name>";
                settings.MachineAccountName = "<windows_host_name>";
            });
        }
    });

var app = builder.Build();

// Configure the HTTP request pipeline.

app.UseSwagger();
app.UseSwaggerUI();

app.UseAuthentication();

app.UseAuthorization();

app.MapControllers().RequireAuthorization();

app.Run();

UserController

namespace TestNegotiate.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UsersController : ControllerBase
    {
        [HttpGet]
        public IActionResult GetUser()
        {
            var claims = User.Claims.Select(c => new { c.Value, c.Type });

            return Ok(
                new
                {
                    User.Identity?.Name,
                    User.Identity?.IsAuthenticated,
                    claims
                });
        }
    }
}

Dockerfile:

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
ENV KRB5_KTNAME=/app/srv-dms-k8s.keytab
RUN apt-get update 
&& apt-get install -y --no-install-recommends krb5-config krb5-user realmd adcli packagekit sssd sssd-tools
COPY TestNegotiate/krb5.conf /etc/krb5.conf
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["TestNegotiate/TestNegotiate.csproj", "TestNegotiate/"]
RUN dotnet restore "TestNegotiate/TestNegotiate.csproj"
COPY . .
WORKDIR "/src/TestNegotiate"
RUN dotnet build "TestNegotiate.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "TestNegotiate.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TestNegotiate.dll"]

During application start I receive an error:

System.DirectoryServices.Protocols.LdapException: The feature is not supported. 
   at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)
   at System.DirectoryServices.Protocols.LdapConnection.Bind()
   at Microsoft.AspNetCore.Authentication.Negotiate.PostConfigureNegotiateOptions.PostConfigure(String name, NegotiateOptions options)
   at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name)
   at Microsoft.Extensions.Options.OptionsMonitor`1.<>c__DisplayClass10_0.<Get>b__0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at Microsoft.Extensions.Options.OptionsCache`1.GetOrAdd(String name, Func`1 createOptions)
   at Microsoft.Extensions.Options.OptionsMonitor`1.Get(String name)
   at Microsoft.AspNetCore.Authentication.Negotiate.Internal.NegotiateOptionsValidationStartupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Microsoft.AspNetCore.Builder.WebApplication.Run(String url)
   at Program.<Main>$(String[] args) in C:Usersruazed1sourcereposTestNegotiateTestNegotiateProgram.cs:line 34

Why this happens? Here is written it should work under linux https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-6.0&tabs=visual-studio#kerberos-authentication-and-role-based-access-control-rbac.

Expected Behavior

Authentication should work and resolve groups using LDAP.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

On local machine (where application is build):

❯ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19043
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:Program Filesdotnetsdk6.0.101

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  3.1.414 [C:Program Filesdotnetsdk]
  5.0.202 [C:Program Filesdotnetsdk]
  5.0.404 [C:Program Filesdotnetsdk]
  6.0.100 [C:Program Filesdotnetsdk]
  6.0.101 [C:Program Filesdotnetsdk]

On a container

root@25b23ba7824f:/app# dotnet --info

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Anything else?

No response

 
maximsms
 
(2006-03-05 14:20)
[0]

Невозможно работать с удалённой базой. Препробовал множество вариантов gds32.dll IBExpert работает как часы,
почти со всеми вариантами клиентских библиотек Firebird.
А тут подключение происходит но невозможен даже простой select. Использую ibx,  судя по тому что прочитал в интернете об этой проблеме, FIBPlus проблему не решает.
Удалённый сервер Firebird 1.5 LI-V6.3.2.4731


 
maximsms
 
(2006-03-05 17:40)
[1]

Удалено модератором
Примечание: Создание пустых соощений


 
Johnmen ©
 
(2006-03-05 18:50)
[2]

Код в студию!


 
maximsms
 
(2006-03-05 19:05)
[3]

tibdatabase().connect
//SUCCEED
……
tibsql().sql.text:=»select id from table1″;
tibsql().execquery;
//CAUSES FAILURE WITH MESSAGE
//Dynamic SQL Error SQL error code = -901 feature is not supported


 
Desdechado ©
 
(2006-03-05 20:49)
[4]

что за странные скобочки?
может, лучше сначала создать экземпляр класса, потом его использовать, а то так ты просто теряешь указатели на свои объекты и их невозможно больше найти для использования.
ведь для выполнения SQL нужно указать, через какое соединение будешь это делать, а у тебя для него уже нет указателя…


 
maximsms
 
(2006-03-05 21:00)
[5]


> Desdechado ©   (05.03.06 20:49) [4]
> что за странные скобочки?

это я условно написал от фонаря что-то,
суть не в этом


 
Desdechado ©
 
(2006-03-05 21:04)
[6]

а в чем?
от фонаря и работать будет


 
maximsms
 
(2006-03-05 21:06)
[7]

суть в том что любой select вызывает это сообщение.

с разными серверами на localhost, например:
Firebird 1.5 WI-V6.3.1
всё работает.
а с удалёнными успешно работает только IBExpert.


 
Johnmen ©
 
(2006-03-06 10:11)
[8]

Почему для селективного запроса используется .execquery?


 
mbgmz ©
 
(2006-03-10 02:51)
[9]


> Johnmen ©   (06.03.06 10:11) [8]
> Почему для селективного запроса используется .execquery?
>

потому что у TIBSQL нет другого походящего метода


 
mbgmz ©
 
(2006-03-10 02:54)
[10]

вопрос снят, после того как я переставил Delphi и Firebird сервер,
каким-то чудом оно заработало. Но выявить причину почему оно не работало мне так и не удалось


 
Johnmen ©
 
(2006-03-10 09:14)
[11]


> mbgmz ©   (10.03.06 02:51) [9]
>
>
> > Johnmen ©   (06.03.06 10:11) [8]
> > Почему для селективного запроса используется .execquery?
>
> >
>
> потому что у TIBSQL нет другого походящего метода

Почему для селективного запроса используется TIBSQL?


 
msguns ©
 
(2006-03-10 09:32)
[12]

>mbgmz ©   (10.03.06 02:54) [10]
>вопрос снят, после того как я переставил Delphi и Firebird сервер,

Надо еще поменять комп, квартиру, жену и собаку.
Тогда точно заработает.

Справку по IBX не читаем по религиозным соображениям ?


 
mbgmz ©
 
(2006-03-11 06:09)
[13]


> [12]

И что я найду в справке по IBX про ошибку N: -901 ???
Лучше бы подсказали как выявить причину, вызывающую эту ошибку.


> [11]

это не имеет значения.
нравится мне tibsql и всё, точно также вели себя и tibquery.


 
jack128 ©
 
(2006-03-11 15:44)
[14]

Johnmen ©   (10.03.06 9:14) [11]
Почему для селективного запроса используется TIBSQL?

а почему бы и нет?? Я активно использую и проблем не имею


 
Johnmen ©
 
(2006-03-11 20:47)
[15]


> это не имеет значения.
> нравится мне tibsql и всё, точно также вели себя и tibquery.
>

Ну если тебе побарабану, то чего спрашиваешь?


> jack128 ©   (11.03.06 15:44) [14]
> а почему бы и нет?? Я активно использую и проблем не имею

Врешь ты всё…:)


 
jack128 ©
 
(2006-03-11 22:59)
[16]

Johnmen ©   (11.03.06 20:47) [15]
Врешь ты всё…:)

Не-а.  Исходники не горят(с)   :-P


 
DrPass ©
 
(2006-03-12 12:38)
[17]


> И что я найду в справке по IBX про ошибку N: -901 ???
> Лучше бы подсказали как выявить причину, вызывающую эту
> ошибку

Насчет справки не знаю, а то, что IBX не поддерживает Firebird и не гарантирует совместимость с ней, разработчики IBX повторяли не раз…


I’ve been desperately trying to find a way to notify the client of changes in the database.

I tried TableDependency Package but then noticed that that uses SQL and not MYSQL.
I stumbled upon Devart and they have the same thing. I’ve installed the package and set up some code to test if it actually receives notification when there is a change in the database. But when I try to run it returns me the exception:

Devart.Common.LicenseException: ‘Feature is not supported.

Here’s the code i use for testing:

namespace WpfApp2
{

    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public string connectionString = @"server=198.23.60.117;user=*******;database=*******;password=*******";
        public MainWindow()
        {

            InitializeComponent();
        }


        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Devart.Data.MySql.MySqlConnection DependencyConn = new Devart.Data.MySql.MySqlConnection(connectionString);
            Devart.Data.MySql.MySqlCommand FriendsDependencyCommand = new Devart.Data.MySql.MySqlCommand("SELECT user_two FROM friends WHERE user_one=@username", DependencyConn);
            MySqlDependency dependency = new MySqlDependency(FriendsDependencyCommand, 100);
            dependency.OnChange += new OnChangeEventHandler(dependency_OnChange);
            DependencyConn.Open();
            MySqlDependency.Start(connectionString);
        }

        void dependency_OnChange(object sender, Devart.Data.MySql.MySqlTableChangeEventArgs e)
        {
            MessageBox.Show("Database Changes Detected.");
        }
    }
    public class Customer
    {
        public string Username { get; set; }
    }

}

I should have the needed Dependency’s I installed the package using the NuGet Package Manager.

Here’s the documentation

Any clues? I’d really appreciate.

When you try to open a workbook in Microsoft Excel for the web, you might see an error message that tells you the workbook contains features that are not supported by Excel for the web. Unsupported features are contents or functionality in a workbook that prevents the workbook from being opened for editing or, in some cases, viewing in the browser. This article provides steps to edit the workbook, depending on the nature of the unsupported features in the workbook.

For details about feature support in Excel for the web, see Differences between using a workbook in the browser and in Excel.

In this article

  • I can view the workbook, but not the unsupported features

  • The workbook includes features that prevent it from being opened at all in Excel Online

  • Remove an XML map

  • I get an error message when I try to open the workbook in Excel

I can view the workbook, but not the unsupported features

Objects such as comments, shapes, or ink can be used in Excel for the web. However, some older (legacy) shapes cannot be displayed in the browser and are not available to view or edit in Excel for the web.

When viewed in Excel for the web, workbooks containing tables linked to an external data source (query table) may only display data as it was most recently saved in a Excel desktop application.  In most cases, this will not be a live presentation of the data.  For a refreshed view, open the workbook in an Excel desktop application.

If you try to edit the workbook, a message notifies you that the workbook can’t be edited in the browser. The message provides brief instructions for creating a copy of the workbook. Unsupported features are removed from the copy, allowing the copy to be edited in the browser.

Edit a Copy message

If you don’t mind removing these features so that you can edit in the browser, go ahead and make a copy. If you’d rather not work with a copy of the workbook, you can still use Excel for the web for storing and viewing a central copy of the workbook, and you can use the Open in Excel command in Excel for the web to edit the workbook.

Follow the steps below.

If you want to be able to edit the workbook in Excel for the web, do the following:

  1. In the message, click Edit a Copy.

  2. Accept the new name that Excel for the web suggests, or type a different one, and then click Save.

    Caution: If you type a name that matches the original name and select the Replace existing file check box, the original copy of the workbook is lost when you click Save.

  3. Edit the new copy of the workbook in the browser. The original copy is untouched.

If you’d rather not make a copy, and edit the workbook in the Excel desktop application, do the following:

  1. In the message, click Cancel.

  2. In Excel for the web, click Edit Workbook, and then click Edit in Excel.

  3. Edit the workbook in the Excel desktop application. When you click Save in Excel, the workbook is automatically stored on the website where you opened it.

    Note: If clicking Edit in Excel results in a message that says you don’t have a supported browser or the correct version of Excel, see I get an error message when I try to open the workbook in Excel, later in this article.

Top of Page

The workbook includes features that prevent it from being opened at all in Excel for the web

Some features, such as VBA projects (macros) and XML maps, prevent a workbook from being opened at all in Excel for the web.

When you try to view or edit a workbook like this in Excel for the web, a message notifies you that the workbook can’t be opened in the browser.

If you have permission to edit the workbook, you can open the workbook in the Excel desktop application. In the message, click Open in Excel.

If you see another message that says you don’t have a supported browser or the correct version of Excel, see I get an error message when I try to open the workbook in Excel, later in this article.

Top of Page

Remove an XML map

The key to removing an XML map from a workbook so that it can be opened in the browser is to find the XML commands. Here’s how:

  1. Open the file that contains an XML map in the desktop version of Excel.

  2. On the edge of the Quick Access Toolbar, click or tap the drop-down arrow, and then choose More Commands.

    Use the Customize Quick Access Toolbar drop-down to get to commands that aren't already on the ribbon.

  3. In the Choose commands from box, choose All Commands. Scroll down to choose XML, and then click or tap Add, then OK.

    In the list of commands, choose XML, and then click Add.

  4. On the Quick Access Toolbar, go to XML > Source to open the XML Source task pane.

    On the Quick Access Toolbar, click XML

  5. In the XML Source task pane click or tap XML Maps. Select the XML map name, and then click or tap Delete.

Top of Page

I get an error message when I try to open the workbook in Excel

If you click Edit in Excel in Excel for the web, you might see a message that says you don’t have a supported browser or the correct version of Excel. If that happens, do the following:

  • Use Office Excel 2003 or later (Windows), or use Excel for Mac 2008 version 12.2.9 or later (Mac).

    • Windows: If you’re using Excel 2003, install the most recent service pack. If your version of Excel is earlier than 2003 or you don’t have Excel at all, download the latest trial version of when propmpted.

    • Mac: If your version of Excel for Mac 2008 is earlier than 12.2.9 or you don’t have Excel for Mac at all, download the trial version of Office for Mac.

  • Use Firefox, Internet Explorer (Windows), or Safari (Mac). If you’re using Internet Explorer, allow the ActiveX control to run.

Find more information about the requirements for using the Edit in Excel command.

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Я нажимаю на google play и хочу скачать приложение, притом что у меня удалилось само как-то. Вирусов нету, проверял.. Переустановка не помогла, что делать? Очень срочно нужно скачать приложение и воспользоваться им. Так со многими играми, но некоторые работают. Как не нажму sorry this feature is not supported currently. Помогите пожалуйста..

Гость

+

0

-

0

Понравилась статья? Поделить с друзьями:
  • Ошибка fe03 на ока 102к
  • Ошибка filter failed при печати на mac
  • Ошибка filter failed при печати на linux
  • Ошибка fe на кондиционере novex
  • Ошибка fe на кондиционере haier что означает