不能部署MVC 4服务器 [英] Cannot deploy MVC 4 to server

查看:141
本文介绍了不能部署MVC 4服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Web应用程序,而不只是来自外部的任何代码在VS 2010中MVC 4做了一个简单的Web应用程序。这只是2010年的默认VS应用我有豪华的Plesk Windows主机。我从来没有在我的帐户更改的任何功能。我在我的所有文件复制到//根目录。除了我的文件,我看到各种folderssuch为:,的Plesk,埃罗 - 文档,cgi-bin目录,日志 - 我没有权限删除它们。

My web application is just a simple web application made in VS 2010 MVC 4 without any code from outside. It's just default application of VS 2010. I have Deluxe Windows Hosting with Plesk. I've never changed any feature in my account. I copy all my files to "//Root Directory". Beside my files I see various folderssuch as: ", plesk, erro-docs, cgi-bin, logs" - I do not have permissions to delete them.

我的全部项目是释放的配置。我试过,我在网上遇到了所有方式:

All my projects are "Release" configuration. I've tried all ways which I met in the Internet:

1.I复制三个库到bin目录:
系统.Web.Mvc,System.Web.Routing,System.Web.Abstractions

1.I copied three libraries to bin directory: System.Web.Mvc, System.Web.Routing, System.Web.Abstractions

这些dll的我从GAC(C复制:\WINDOWS\Microsoft.NET\ assembly\GAC_MSIL)。我的推杆在web.config中这样的字符串:<信任级别=中/>。我用VS2010本地部署(到目录)通过按钮发布。没有结果

These dll's I copied from GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL). I putted such strings in web.config: < trust level="Medium"/>. I used local deployment(to directory) in VS2010 by button "Publish". No result.

2.I复制9库bin目录:

System.Web.Abstractions.dll
System.Web.Helpers.dll
System.Web.Mvc.dll程序
System.Web.Optimization.dll
System.Web.Razor。 DLL
System.Web.Routing.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll。

System.Web.Abstractions.dll System.Web.Helpers.dll System.Web.Mvc.dll System.Web.Optimization.dll System.Web.Razor.dll System.Web.Routing.dll System.Web.WebPages.Deployment.dll System.Web.WebPages.dll System.Web.WebPages.Razor.dll.

这些dll的我从GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL)复制。我用VS2010本地部署(到目录)通过按钮发布。我的推杆这样的字符串:<信任级别=中/>。没有结果

These dll's I copied from GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL). I used local deployment(to directory) in VS2010 by button "Publish". I putted such strings: < trust level="Medium"/>. No result.

3.I复制三个库到bin目录的:System.Web.Mvc,System.Web.Routing,System.Web程序.Abstractions - 这些dll的我从GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL)复制。我的推杆这样的字符串:<信任级别=中/>。我曾经通过ftp部署选项VS2010中通过按钮发布。没有结果

3.I copied three libraries to bin directory: System.Web.Mvc, System.Web.Routing, System.Web.Abstractions - these dll's I copied from GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL). I putted such strings: < trust level="Medium"/>. I used deployment via ftp option in VS2010 by button "Publish". No result.

4,我复制三个库到bin目录:
System.Web.Abstractions.dll
System.Web.Helpers.dll
System.Web.Mvc.dll程序
System.Web.Optimization.dll
System.Web.Razor.dll
System.Web.Routing。 DLL
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll - 这些dll的我从GAC(C复制:\ WINDOWS\Microsoft.NET\assembly\GAC_MSIL)。我的推杆这样的字符串:<信任级别=中/>。我通过ftp通过按钮使用VS2010部署发布无结果。

4.I copied three libraries to bin directory: System.Web.Abstractions.dll System.Web.Helpers.dll System.Web.Mvc.dll System.Web.Optimization.dll System.Web.Razor.dll System.Web.Routing.dll System.Web.WebPages.Deployment.dll System.Web.WebPages.dll System.Web.WebPages.Razor.dll - these dll's I copied from GAC(C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL). I putted such strings: < trust level="Medium"/>. I used deployment via ftp in VS2010 by button "Publish" No result.

5.I've试图通过filezzilla上传文件的。 <信任级别=中/>。然而,这是一个闲置的尝试。

5.I've tried to upload files via filezzilla. < trust level="Medium"/>. However it was an idle attempt.

6.I've试图通过浏览器上传文件的。然而,这是一个闲置的尝试。

6.I've tried to upload files via browsers. However it was an idle attempt.

7.I've试图通过浏览器上传拉链文件,并在GoDaddy的服务器中提取它们。的< ;信任级别=中/>。然而,这是一个闲置的尝试

7.I've tried to upload zip-files via browser and extract them at godaddy server. < trust level="Medium"/>. However it was an idle attempt.

所有上面列出的尝试导致屏幕上的字:。nup.com我的网站即将推出
没有发生任何变化。

All above-listed attempts result the word on the screen: "nup.com My site is launching soon." Nothing changes.

我有一个问题。

我做什么错了?

我读过通过菲尔哈克的 http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx 。任何帮助将感激地赞赏:!)

I've read all articles by Phil Haack http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx. Any help will be gratefully appreciated!:)

推荐答案

我已经做了所有动作正确部署,但我复制所有文件到错误的文件夹。问题是,我只是我的所有文件复制到错误的目录即可。我叫GoDaddy的支持,他们说,我复制我的文件到错误的目录。

I've done all actions to deploy correctly but I copied all files to a wrong folder. The problem was that I just copied all my files to a wrong directory. I called to godaddy support and they said that I copied my files to wrong directory.

当我复制到的httpdocs目录,然后我的MVC 4应用程序开始工作的所有文件:!)

When I copied all files to "httpdocs" directory then my mvc 4 application start working!:).

感谢您了很多,伙计们。祝你好运。

Thank you a lot, guys. Good luck.

这篇关于不能部署MVC 4服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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