Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyCaching.SQLite in Excel VSTO project is not working #516

Open
ShugerS opened this issue Jan 31, 2024 · 1 comment
Open

EasyCaching.SQLite in Excel VSTO project is not working #516

ShugerS opened this issue Jan 31, 2024 · 1 comment

Comments

@ShugerS
Copy link

ShugerS commented Jan 31, 2024

Description

I use EasyCaching.SQLite in Excel VSTO project, but it reports an error while using. The error message is shown in the following figure.
[Description of the bug or feature]

Steps to Reproduce

  1. Create a Excel VSTO project.
  2. Add the following code in Ribbon1.cs

Related code

private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
            IServiceCollection services = new ServiceCollection();
            services.AddEasyCaching(option =>
            {
                option.UseSQLite(c =>
                {
                    c.DBConfig = new SQLiteDBOptions
                    {
                        FileName = "demo.db",
                        CacheMode = SqliteCacheMode.Default,
                        OpenMode = SqliteOpenMode.ReadWriteCreate,
                    };
                }, "m1");
            });
            IServiceProvider serviceProvider = services.BuildServiceProvider();
            var factory = serviceProvider.GetService<IEasyCachingProviderFactory>();
        }

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]
image
image

Specifications

  • Provider : SQLite (version 1.9.2)
  • Interceptor : AspectCore (version 0.2.0)
  • Serializer : not use
  • System : windows10
@Memoyu
Copy link
Contributor

Memoyu commented Feb 20, 2024

尝试了一下,似乎无法复现你的问题,可否提供一个demo?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants