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

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1') #30

Open
zhushiyo opened this issue Nov 8, 2024 · 1 comment

Comments

@zhushiyo
Copy link

zhushiyo commented Nov 8, 2024

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.ArgumentNullException.Throw(String paramName)
at System.IO.Path.Combine(String path1, String path2)
at BilibiliAutoLiver.DependencyInjection.RegisterMediaStaticFiles.UseMediaStaticFiles(WebApplication app) in F:\CSharp\Projects\BilibiliLiveTools\src\BilibiliAutoLiver\DependencyInjection\RegisterMediaStaticFiles.cs:line 18
at BilibiliAutoLiver.Program.Main(String[] args) in F:\CSharp\Projects\BilibiliLiveTools\src\BilibiliAutoLiver\Program.cs:line 111
at BilibiliAutoLiver.Program.

(String[] args)
Aborted (core dumped)
S41109-00423550_tech lolli toolbox

@withsalt
Copy link
Owner

1、检查一下,应用程序根目录配置文件appsettings.json在否存在
2、配置文件appsettings.json中,DataDirectory不能为空

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