0

I wrote a simple file upload application using ASP.NET MVC. I tested it successfully on my development machine, but when I attempt to use it on my live server any action I try results in a Page Not Found page.

With my hosting provider (reliablesite.net), I needed to specifically upload the System.Web.Mvc dll to my bin folder, so it is possible I am missing an assembly or something...but I should be getting a hard error like this one if that is the case:

alt text

link to live site, try clicking the about or the upload etc to see what I am talking about.

Thanks!

2 Answers 2

2

This is happening because of the IIS setting "Check if file exists" for the web project.

What I had to do for one of my web projects was create a new extension for my web app. So I go to INETMGR > WebApp > Properties > Directory Tab > Configuration Button > Mappings Tab > Add Button and set the Executable to aspnet_isapi.dll, set Extension to ".*" and un-check "Check that file exists".

Sign up to request clarification or add additional context in comments.

5 Comments

I see. I imagine, then, that since I am on a shared server I cannot change this setting?
You probably can't do it yourself. I called my hosting company and they did it for me while I was on the phone, it really shouldn't take too long.
This should be a per-application setting, not a site-wide setting. You should be able to change this for your application.
@tvanfosson, depends on which version of IIS you're running. Some versions don't have app pools.
Alright I have contacted my hosting service, hopefully they can assist me with this issue. Thank you for clarifying what the issue was.
0

It looks like an IIS configuration issue. Extensionless routing's possible, but it can be a bit of pain to get running.

Phil Haack has an article on getting MVC apps running on IIS 6 here - I don't know how much access you'll have to the IIS console if it's a shared environment, so it may or may not be useful.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.