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

Could not load type 'Microsoft.AspNetCore.Http.Internal.BufferingHelper' from assembly #98

Closed
wswind opened this issue Jan 29, 2021 · 1 comment

Comments

@wswind
Copy link

wswind commented Jan 29, 2021

我使用小程序支付的微信通知处理回调函数时,出现了异常报错
image
我是用的时asp.net core 3.1,猜测是否由于.net api修改,而项目未更新。
跟随DigDes/SoapCore#293的修改方式进行修改,将EnableRewind改为了EnableBuffering
image
可是发现Request为null,随后追踪到Web中的Ioc.Create无法构建出IHttpContextAccessor,返回值为null

        static Web() {
            try {
                HttpContextAccessor = Ioc.Create<IHttpContextAccessor>();
                Environment = Ioc.Create<IHostingEnvironment>();
            }
            catch {
            }
        }

请问我已通过AddHttpContextAccessor设置了DI,此处Ioc.Create无法正常构建该如何处理呢?

@wswind
Copy link
Author

wswind commented Feb 1, 2021

项目是否还在维护?是否接收pr?

@wswind wswind closed this as completed Mar 31, 2021
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

1 participant