1

In order to check whether my ASP.NET MVC application will run on my host. I tried deploying an ASP.NET MVC application with just one controller and one view. I have copied all the necessary files in the bin directory which are as following:

  • Microsoft.Web.Infrastructure
  • System.Web.Helpers
  • System.Web.Mvc
  • System.Web.Razor
  • System.Web.WebPages.Deployment
  • System.Web.WebPages
  • System.Web.WebPages.Razor.

Other than above files, following files are included

enter image description here However, I still get an 404 error. This is the URL http://jan-lokpal.rdinvent.com/Home/Index

What else do I need to copy or am I missing something? This is a windows hosting account only.

I tried contacting the support but they are not available.

8
  • You failed to mention which files you included from your project Commented Dec 15, 2011 at 11:05
  • @jgauffin, I have updated the post with the other files Commented Dec 15, 2011 at 11:11
  • did you copy the project DLL from your binfolder? Commented Dec 15, 2011 at 11:14
  • yaa , i did that....sorry i forgot to mention that because i didnt thought it was necessary since one is supposed to copy the project binary :-P Commented Dec 15, 2011 at 11:15
  • Is it necessary to have Asp.net 4.0 installed on the server to run Asp.net MVC websites ?? Commented Dec 15, 2011 at 11:16

1 Answer 1

1

Checkpoints:

1) Make sure application pool runs ASP .NET 4.0

2) Make sure web.config has this line:

<system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
        ....
Sign up to request clarification or add additional context in comments.

2 Comments

The second point is checked. My web.config file has already got this entry
But i am not sure about the first thing.....All i have is the access to file structure and some basic settings in control panel for the hosting. From there i cant say if they have asp.net 4.0 installed or not

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.