'UIShell.OSGi.MvcWebExtension.BundleRuntimeControllerFactory' did not return a controller for the name 'Home'.

时间:2023-03-09 17:46:07
'UIShell.OSGi.MvcWebExtension.BundleRuntimeControllerFactory' did not return a controller for the name 'Home'.

在使用osgi.net 框架的时候,有时会遇到这样的错误:

'UIShell.OSGi.MvcWebExtension.BundleRuntimeControllerFactory' did not return a controller for the name 'Home'.

解决办法:

 1. 检查项目文件夹下的 log 日志文件,因 osgi.net 在运行时(包括异常和操作)都会在项目的目录下生成 日志文件,并详细记录了日志的内容

 2. 检查 mainfest.xml 文件中引用的dll文件是否齐全,指向的页面是否存在

通过这两种方式,一般都能快速的锁定异常位置并找出原因