mvc razor控制器没有被调用 [英] mvc razor controller not getting called

查看:74
本文介绍了mvc razor控制器没有被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i已经开发了mvc razor 4网站,使用visual studio 2012 ultimate,并上传到实时服务器..i检查服务器上



www.checkmywebst.com/demo,demo是复制网站的文件夹。 ..



并且可以工作并显示网站设计..但HomeController.cs(在Controller中)没有开始..我创建了日志文件,并写了代码indexcontroller ActionResult索引,



但索引没有被调用。



我也尝试重命名控制器,但仍然网站运行正常,没有错误...



有什么问题?

Hi
i have developed website in mvc razor 4, using visual studio 2012 ultimate , and uploaded on live server ..i check on server as

www.checkmywebst.com/demo , 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 ??

推荐答案

HI ,

它现在正在工作,我从visual studio 2012 ultimate发布网站,然后在子域中的实时服务器中复制,它可以工作......并且控制器被调用。

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.


这篇关于mvc razor控制器没有被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆