dotnetcore / dotnetcore/EasyCaching

EasyCaching.SQLite in Excel VSTO project is not working

Open
#516 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.1k
Forks
336
PR merge metrics
No merged PRs in 30d

Description

## 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();
}
```

**Expected behavior:** [What you expected to happen]

**Actual behavior:** [What actually happened]
![image](https://github.com/dotnetcore/EasyCaching/assets/45956024/81bb7ea7-3fdd-4299-afbe-cd680614ce2a)
![image](https://github.com/dotnetcore/EasyCaching/assets/45956024/168d02d2-0eb1-448b-b8be-d3a281f57309)

## Specifications

- Provider : SQLite (version 1.9.2)
- Interceptor : AspectCore (version 0.2.0)
- Serializer : not use
- System : windows10

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.