ASP.NET MVC2 on 3.5 framework

Um, guys, any tips on getting the live host up and running? What exactly do I need to configure for http://svendigital.co.za/demo/ to get anything other than a Directory Listing Denied error?

This being my first MVC2 attempt, I'm more than a little lost. :erm:
This might sound daft, but doesn't MVC have default.aspx page or something?
 
This might sound daft, but doesn't MVC have default.aspx page or something?
Not daft at all, but normally MVC uses .mvc extensions. I'm getting an error with Home.aspx, and need to get home to switch on remote errors to see what exactly.
 
Ok, I haven't gotten further than pressing F5 in VS :)
For the record, I did that (Ok, CTRL+F5) before attempting to publish from VS. That didn't work, do I did a manual FTP upload. That's when things went pear-shaped.
 
Update: I'm told that MVC2 is indeed installed - will revert after testing tonight.
 
okay boys, roll out the red carpet. :)

http://svendigital.co.za/demo/

I had to hack it a bit, but I got it to work. I had to bin deploy the MVC dlls, add a Default.aspx with the routing fix and change the routing in global.asax.cs - but it worked after that. Not bad.

The support I got was great. The support guys pointed me in the right direction, and offered development support to get up and running. Sweet. :)
 
Hey guys! Sorry I haven't jumped in here yet - only saw Midrange's request for me to join in now. :p The first thing I would've tried as well would be to add a "default.aspx" page and change the routing. Only thing is I've never deployed MVC (or MVC2 for that matter) in IIS6. Only IIS7. I've wasted countless hours trying to get extensionless urls to work in IIS6 using my own HTTP Handlers, without resorting to something like ISAPI Rewrite. I'll check out Raithlin's links soon as well... I'm due for a new project starting in October and will be going the MVC2 route on it as well. It will probably be hosted in IIS6 as well, so Raithlin's toil might save me a few hours... ;)
 
Hey guys! Sorry I haven't jumped in here yet - only saw Midrange's request for me to join in now. :p The first thing I would've tried as well would be to add a "default.aspx" page and change the routing. Only thing is I've never deployed MVC (or MVC2 for that matter) in IIS6. Only IIS7. I've wasted countless hours trying to get extensionless urls to work in IIS6 using my own HTTP Handlers, without resorting to something like ISAPI Rewrite. I'll check out Raithlin's links soon as well... I'm due for a new project starting in October and will be going the MVC2 route on it as well. It will probably be hosted in IIS6 as well, so Raithlin's toil might save me a few hours... ;)

Nice of you to join us. :p

Yeah, this was a first for me too. However, I might just upgrade my site to use MVC now that I know how it's done. ;)
 
Nice one Raithlin, will be signing up with circle soon.

Can I offer you a sven digital account? ;)

Just kidding. I'm going to have to offer my own hosting services though - quite a few of my clients want me to take over all aspects of their sites.
 
IIS7 is definitely preferred for MVC2, using ASP.NET 3.5 SP1 should be fine, don't believe .NET 4 is required. You'll have to either install the MVC framework itself to get the System.Web.Abstractions and System.Web.Mvc assemblies, or make sure they're copied to the bin directory during deployment. Make sure it's running in the integrated pipeline, and not the classic pipeline.

Also, some sections are required for IIS7 and optional for IIS6 (or vice versa). If you can, check out the book 'Pro ASP.NET MVC2 Framework' 2nd Edition by Steven Sanderson (published by Apress). It's a great book on MVC2, and has a chapter devoted to deployment to IIS6 and IIS7 and how they differ.
 
Last edited:
Finding it impossible to install Management Studio Express on either XP or 7 64-bit. :(
 
Top
Sign up to the MyBroadband newsletter
X