I have a test solution which only has one area called Admin.
I would like to reuse Admin across a number of other web applications.
I have a web application setup in IIS, I have then added a virtual application, /Admin
coming from AreasAdmin
.
When I navigate to /Admin, I see a directory listing. When I try to hit a controller, /Admin/News. I get a 404 error. It could be that the areas are not registering, even though the code is there in the global.asax. However, I am sure I am going about this all wrong.
Please suggest changes for this situation to work.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…