zkweb-framework / ZKWeb

A flexible web framework supports .Net Framework and .Net Core
MIT License
484 stars 141 forks source link

Application.Ioc.AsServiceProvider() -> Not working AspNetCoreHostingModel : InProcess mode #16

Closed ghost closed 4 years ago

ghost commented 5 years ago

This is add

InProcess

App not run when Application.Ioc.AsServiceProvider().

Is there any way to fix it?

303248153 commented 5 years ago

Can you provide more details (like error messages), or better, a demo application?

ghost commented 5 years ago

Can you provide more details (like error messages), or better, a demo application? H1 H1 H2 H2

If in Application.cs is not error. Can use only Container lib. Thanks ad

303248153 commented 5 years ago

Looks like you didn't use the project creator, so it's hard to say where is the problem. Can you upload this demo application?

ghost commented 5 years ago

Looks like you didn't use the project creator, so it's hard to say where is the problem. Can you upload this demo application?

Dear ad, I 've upload a litte demo with git https://github.com/mz-core/zkweb-demo.git I didn't use the project creator. IoC for project 's simple used, i very like it. --> Bug: When Starup start, a few missing necessary service provider with ServiceProviderAdapter in Ioc container manage. So it can't start (I don't know if that's true). Thanks ad.

303248153 commented 5 years ago

I run this demo application on ubuntu 16.04 by command dotnet run and it produces the expected result ["value1","value2","Demo Print"] when access /api/values. What is your environment, and what's the error message?

303248153 commented 4 years ago

Close since no reply in months, please reopen it if you have more informations.