Click here to Skip to main content
15,115,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have developed website in mvc razor 4, using visual studio 2012 ultimate , and uploaded on live server ..i check on server as , demo is folder where website is copied. ..

and that works and shows website design..but HomeController.cs (in Controller) is not getting started..I Created log file , and Wrote code in indexcontroller ActionResult Index ,

but index is not getting called.

I also tried to rename controller, but still website runs properly without error...

What can be issue ??
Ranjeet Patel 14-Jul-14 2:13am
I did you try to write your controller and action name in URL and see if your controller is getting called.
Kornfeld Eliyahu Peter 14-Jul-14 2:23am
"but still website runs properly without error" - so? Do you want us introduce some errors for you?!
VishwaKL 14-Jul-14 3:08am
You can check the route config, it has controller and action method is there or not, that helps you to call the action on load. if you just check on fly do as Ranjeet patel told that solves the prolem
Manoj B. Kalla 16-Jul-14 0:53am
Can you post your homecontroller.cs and view-->Home folder.

Check :
1. In your view, please check you have used masterpage or not.
If yes correct syntax of that.

2. Check Get & Post attribute or submit or script any fired.

3. previously all guides you to check route config.

Thank You.

1 solution

it is working now, i publish website from visual studio 2012 ultimate , then copy in live server in subdomain, that works...and controller is called.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900