Mvc3区域的管理异常 [英] Mvc3 area of admin exception

查看:56
本文介绍了Mvc3区域的管理异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i关注链接

http://www.c-sharpcorner.com/UploadFile/b19d5a/ area-in-Asp-Net-mvc3



并在mvc3中创建了一个管理区域。并且由于这个,当我在我的本地路径(如localhost:2254 / admin)之后点击url中的admin时,我去了管理员控制器并且到目前为止一切都很好。





但现在我的问题是当我在管理部分有任何异常之后,当我点击

相同的网址(如localhost:2254 / admin)我得到了例外。



您要查找的资源(或其中一个依赖项)可能已被删除,名称已更改或暂时不可用。请查看以下内容URL并确保拼写正确。





请建议我如何解决这个问题。







谢谢

hello all,

i am following a link
http://www.c-sharpcorner.com/UploadFile/b19d5a/areas-in-Asp-Net-mvc3

and created a Area of admin in mvc3. and due to this when i click admin in url after my local path (like localhost:2254/admin )ii went to admin controller and every thing is good till now.


but now my problem is when i got any exception in admin section after that when ever i click on
same url(like localhost:2254/admin )i got exception.

"The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly."


Please advice me how to resolve this problem.



Thanks

推荐答案

这是由于缺少路由。我看到你在问题中提到过的链接。你设置了路由吗?(步骤5)?做&再次运行,它会工作。

FYI ASP.NET MVC路由概述 [ ^ ]
This occurs due to missing of routing. I saw that link which you have mentioned in your question. Did you set routing?(Step 5)? Do & run again, it'll work.
FYI ASP.NET MVC Routing Overview[^]


这篇关于Mvc3区域的管理异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆