无法在plesk上托管mvc应用程序 [英] Not Able to host mvc Application on plesk

查看:92
本文介绍了无法在plesk上托管mvc应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在服务器上部署了我的mvc4应用程序,而不是页面显示页面的目录列表。请帮助我这个应用程序在本地服务器上运行完美但在服务器上运行不正常。请帮助!!!!

I have deployed my mvc4 application on server but instead of pages its showing directory listing of pages.Please help me this application is Working perfect on local server but not on server. PLEASE HELP!!!!

推荐答案

您好,

您可以执行的检查很少。

1)检查.net框架设置。在托管网站的pleask设置上它应该是4.0或更高。

2)放一个index.html页面和Default.aspx(我知道你的应用程序是mvc。但是只用于测试)页面在您的应用程序的根目录上。在浏览器中运行两个页面。例如HTTP://yourdomain/Default.aspx。如果运行正常,那么您的网站是正确的。如果它出现错误,则更正它显示的错误。

3)如果您的网站出错,请确保web.config中的自定义错误模式已关闭。



如果您仍然遇到问题,请向您的应用程序/网站提供网址。
Hi,
There are few checks that you can perform.
1) Check the .net framework setting. It should be 4.0 or higher on pleask settings for your hosted website.
2) Put one index.html page & Default.aspx (i know your application is mvc. but put it for testing only) page on root directory of you application. run both pages in browser. e.g. http://yourdomain/Default.aspx. If it runs properly then your website is proper. If it gives error then correct error that it shows.
3) In case your website gives error make sure the custom error mode is off in web.config.

In case you still face problem please provide url to you application/website.


Hi Jacks,



您可以查看本教程 http://aspnetmvceuropeanhosting.hostforlife.eu/post/European-ASPNET-MVC-3-Hosting-Deploying-ASPNET-MVC-3-Application-on-Shared-Hosting-Environment.aspx [ ^ ]。也许你错过了一些东西并希望它会帮助你
Hi Jacks,

You may check this tutorial http://aspnetmvceuropeanhosting.hostforlife.eu/post/European-ASPNET-MVC-3-Hosting-Deploying-ASPNET-MVC-3-Application-on-Shared-Hosting-Environment.aspx[^]. Maybe you miss something and hope it will help you


这篇关于无法在plesk上托管mvc应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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