Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC - Controllers Not Recognized
    primarykey
    data
    text
    <p>I've been spending the past several weeks working on my asp.net mvc site following along in Apress' Pro ASP.NET MVC Framework. All has been well and good and the app has been running just fine. I'm almost done with it. I was attempting to move it to the test server for QA, when the server admin wanted me to remove my extensionless system and add .mvc or .aspx to the end of my controllers. </p> <p>When I added this to my Global.asax route table, my app no longer works, locally. I found <a href="http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx" rel="nofollow noreferrer">this</a> site which mentioned that I needed a root route if I'm using an extension. I did this and now the default home page now works. But, my navigator doesn't work. I'm using Html.ActionLink, so they rendered correctly, adding the extension appropriately. But when I click on them, I get an error: </p> <p><strong>Specified method is not supported.</strong></p> <p>This happens with every controller I have. Grrr...</p> <p>And what's really bumming me out is what happens after I revert my changes to the Global.asax routes, removing that file extension after the controller:</p> <p>from</p> <pre><code>"{controller}.mvc/{action}/{id}/{title}" </code></pre> <p>to</p> <pre><code>"{controller}/{action}/{id}/{title}" </code></pre> <p>I also commented out that extra root route I'd added before, so now, this is the only route I have in that file.</p> <p>Now, when I launch the app in VS2008, I'm getting the error:</p> <p><strong>The resource cannot be found.</strong></p> <p>And my site doesn't work at all! :^( No front page, no controllers, not anything.</p> <p>I just need to get this thing working, again. It was working just fine this morning and all last week.</p> <p>The only other thing I changed was in the project properties panel. I changed the output directory and Start pages. But I then put these back to the defaults. I'm wondering if somehow my properties file or some assembly got corrupted. I've done a [Project Name] Clean several times, but no joy. </p> <p>If anyone has any ideas, please offer them. </p> <p>Thanks, Scott</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload