结果发现
application_start没有办法运行到了。
在application_start中我是加载 ActiveRecordStarter.Initialize
结果老是提示
An ActiveRecord class (Yardi.LDD.Entities.MenuItemInfo) was used but the framework seems not properly initialized. Did you forget about ActiveRecordStarter.Initialize() ?
把这个 PrecompiledApp.config放上去就ok了