Hello,
I created a project startup called Toto.
I need a second web project, to use as backoffice. (The goal is having every projects in the same solution)
I copied the created Toto.Web to Toto.WebAdmin, renamed namespaces, and right now I'm working in a solution containing only Toto.WebAdmin, and the Core/Application/EntityFramework projects. I also removed the app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions); line in startup.cs
It compiles, but when I runs it, I got an error in global.asa/application start : base.Application_Start(sender, e);
It can't load the file or assembly Toto.WebApi :
Abp.Modules.AbpModule.FindDependedModuleTypes(Type moduleType) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:ligne 90
Abp.Modules.AbpModuleManager.FillDependedModules(Type module, ICollection1 allModules) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 148 Abp.Modules.AbpModuleManager.AddMissingDependedModules(ICollection
1 allModules) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 138
Abp.Modules.AbpModuleManager.LoadAll() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 55
Abp.Modules.AbpModuleManager.InitializeModules() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:ligne 33
Abp.AbpBootstrapper.Initialize() dans D:\Halil\GitHub\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:ligne 61
à Abp.Web.AbpWebApplication.Application_Start(Object sender, EventArgs e) dans D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web\Web\AbpWebApplication.cs:ligne 35
It seems you need to reference the WebApi project in every web project. Is it normal ?
3 Answer(s)
-
0
(I also removed the DependsOn on TotoWebApi in TotoWebAdminModule) ( using 0.97)
-
0
Hi,
You need to depend on WebApi module because your AppServices called via dynamic web api controllers. If you have a different situtation, can you explain that ?
And, do you still have the problem.
-
0
No, I don't have this problem anymore :
- I moved my second web site to an area in the first website
- I tried quickly to reproduce my bug and was not able to do it
But as for your questions : I was getting my error in n global.asa/application, so nothing specific was called.
Thanks !