鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

鎵惧埌澶氫釜涓庡悕涓衡€渘ews鈥濈殑鎺у埗鍣ㄥ尮閰嶇殑绫诲瀷銆傚鏋滀负姝よ姹?鈥渰controller}/{action}/{id}鈥?鎻愪緵鏈嶅姟鐨勮矾鐢辨病鏈夋寚瀹氬懡鍚嶇┖闂翠互鎼滅储涓庢璇锋眰鐩稿尮閰嶇殑鎺у埗鍣紝鍒欎細鍙戠敓杩欑鎯呭喌銆傚鏋滄槸杩欐牱锛岃閫氳繃璋冪敤甯︽湁 'namespaces' 鍙傛暟鐨 "MapRoute" 鏂规硶鐨勯噸杞芥潵娉ㄥ唽姝よ矾鐢便€侟br>
鈥渘ews鈥濊姹傛壘鍒颁笅鍒楀尮閰嶇殑鎺у埗鍣?
SyLone.Web.Areas.Htcf.Controllers.NewsController
SyLone.Web.Areas.Admin.Controllers.NewsController

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭缁忓鐞嗙殑寮傚父銆傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.InvalidOperationException: 鎵惧埌澶氫釜涓庡悕涓衡€渘ews鈥濈殑鎺у埗鍣ㄥ尮閰嶇殑绫诲瀷銆傚鏋滀负姝よ姹?鈥渰controller}/{action}/{id}鈥?鎻愪緵鏈嶅姟鐨勮矾鐢辨病鏈夋寚瀹氬懡鍚嶇┖闂翠互鎼滅储涓庢璇锋眰鐩稿尮閰嶇殑鎺у埗鍣紝鍒欎細鍙戠敓杩欑鎯呭喌銆傚鏋滄槸杩欐牱锛岃閫氳繃璋冪敤甯︽湁 'namespaces' 鍙傛暟鐨 "MapRoute" 鏂规硶鐨勯噸杞芥潵娉ㄥ唽姝よ矾鐢便€侟br>
鈥渘ews鈥濊姹傛壘鍒颁笅鍒楀尮閰嶇殑鎺у埗鍣?
SyLone.Web.Areas.Htcf.Controllers.NewsController
SyLone.Web.Areas.Admin.Controllers.NewsController

婧愰敊璇?

鎵ц褰撳墠 Web 璇锋眰鏈熼棿鐢熸垚浜嗘湭缁忓鐞嗙殑寮傚父銆傚彲浠ヤ娇鐢ㄤ笅闈㈢殑寮傚父鍫嗘爤璺熻釜淇℃伅纭畾鏈夊叧寮傚父鍘熷洜鍜屽彂鐢熶綅缃殑淇℃伅銆侟/code>

鍫嗘爤璺熻釜:


[InvalidOperationException: 鎵惧埌澶氫釜涓庡悕涓衡€渘ews鈥濈殑鎺у埗鍣ㄥ尮閰嶇殑绫诲瀷銆傚鏋滀负姝よ姹?鈥渰controller}/{action}/{id}鈥?鎻愪緵鏈嶅姟鐨勮矾鐢辨病鏈夋寚瀹氬懡鍚嶇┖闂翠互鎼滅储涓庢璇锋眰鐩稿尮閰嶇殑鎺у埗鍣紝鍒欎細鍙戠敓杩欑鎯呭喌銆傚鏋滄槸杩欐牱锛岃閫氳繃璋冪敤甯︽湁 'namespaces' 鍙傛暟鐨 "MapRoute" 鏂规硶鐨勯噸杞芥潵娉ㄥ唽姝よ矾鐢便€

鈥渘ews鈥濊姹傛壘鍒颁笅鍒楀尮閰嶇殑鎺у埗鍣?
SyLone.Web.Areas.Htcf.Controllers.NewsController
SyLone.Web.Areas.Admin.Controllers.NewsController]
   System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(RouteBase route, String controllerName, HashSet`1 namespaces) +256
   System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) +651
   System.Web.Mvc.DefaultControllerFactory.System.Web.Mvc.IControllerFactory.GetControllerSessionBehavior(RequestContext requestContext, String controllerName) +57
   System.Web.Mvc.MvcRouteHandler.GetSessionStateBehavior(RequestContext requestContext) +208
   System.Web.Mvc.MvcRouteHandler.GetHttpHandler(RequestContext requestContext) +45
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +12040727
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:4.0.30319; ASP.NET 鐗堟湰:4.6.1586.0
Baidu
sogou