tags:

views:

135

answers:

2
+1  A: 

You have to create a Virtual Directory in the website youre using the MVC project in, with the name 'Views', which points to the Views directory in your MVC project. Make sure to just create a VD with only 'Read' access in IIS Manager, and make also sure you do not have a Application for the VD.

(VD -> Properties -> Make sure the application section is greyed out)

Jan Jongboom
Thanks for the answer but I already tried that. I did mention that in my original post but I didn't just give it read permissions - I'll try again and let you know. Thanks again.
emmrenn
Hmmm..seems I'm wrong (as usual). I did as you suggested even though I thought I'd already done it once and it worked like a charm, thankyou very very much.
emmrenn
I think that was it - I must have created it (the Views VD) as an application before...many thanks again m8y.
emmrenn
While I'm on ;), It seems that after I've configured IIS for the widcard processing it has stopped serving up .asp pages (I didn't mention that the existing site has classic asp also)...any ideas..?
emmrenn
Actually this only works when running inside of visual studio web express...outside of that it fauls the same..
emmrenn
+2  A: 

It appears that your view file is missing. Your employmentController is attempting to return a view/partial view named index.aspx/index.ascx which cannot be found. You should place your view in the ~/Views/employment folder of your mvc.net application directory. Or it can be placed in the ~/Views/Shared/ folder

The error has nothing to do with your routing in your global.ascx file

David G
Thanks for taking the time to help m8y...
emmrenn