meghdut
meghdut

Reputation: 1

MVC implementation with .Net 3.5

I have implement MVC1 with one of domain www.onlinegk.in it is working fine when I am running it in local machine, but when I am deploying it in my webserver it's action link is not working, getting the error message 404 Page Not Found. Any body can help me to short out this problem.

Thanks

Upvotes: 0

Views: 78

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

There are about 10^6 reasons why your code is not working. And because you haven't shown your code we can only be guessing. So my guess is that you have hardcoded the url somewhere instead of using url helpers. For example you wrote:

<a href="/foo/bar">Bar</a>

instead of:

<%= Html.ActionLink("Bar", "bar", "foo") %>

or you had some javascript:

$('foo').load('/foo/bar');

instead of:

$('#foo').load('<%= Url.Action("bar", "foo") %>');

and this list goes on until we exhaust the 10^6 possibilities of why your code is working locally and not when deployed.

Upvotes: 1

Related Questions