MVC4网站发布到Somee

Jai*_*Oro 3 asp.net-mvc asp.net-mvc-4 visual-studio-2012 somee

我使用Visual Studio 2013创建了一个MVC应用程序,我想使用我的Somee免费帐户发布它.他们声称支持MVC 4,但我无法发布.

这是我尝试发布时的输出:

1>------ Build started: Project: Somee, Configuration: Debug Any CPU ------
1>  Somee -> c:\users\jaime oro\documents\visual studio 2013\Projects\Somee\Somee\bin\Somee.dll
2>------ Publish started: Project: Somee, Configuration: Debug Any CPU ------
2>Connecting to ftp://jaimeoro.somee.com...
2>Transformed Web.config using c:\users\jaime oro\documents\visual studio 2013\Projects\Somee\Somee\Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
2>Copying all files to temporary location below for package/publish:
2>obj\Debug\Package\PackageTmp.
2>Publishing folder /...
2>Unable to add 'Global.asax' to the Web site.  Access is denied (550).
2>Unable to add 'packages.config' to the Web site.  Access is denied (550).
2>Unable to add 'Web.config' to the Web site.  Access is denied (550).
2>Unable to add folder 'bin' to the Web site.  Cannot create folder "bin".
2>Unable to add folder 'Content' to the Web site.  Cannot create folder "Content".
2>Unable to add folder 'Models' to the Web site.  Cannot create folder "Models".
2>Unable to add folder 'Scripts' to the Web site.  Cannot create folder "Scripts".
2>Unable to add folder 'Views' to the Web site.  Cannot create folder "Views".
2>Site was published successfully ftp://jaimeoro.somee.com/
2>
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

Jai*_*Oro 7

正如@Ehsan Sajjad所说,FTP存在问题.Site pathSomee中是必需的.

以下是在连接部分下配置发布工具的方法:

Publish method: FTP
Server: ftp://[YOUR USERNAME].somee.com
Site path: /www.[YOUR USERNAME].somee.com/ 
Passive mode: Checked 
User name: [YOUR USERNAME] 
Password: [YOUR PASSWORD] 
Run Code Online (Sandbox Code Playgroud)

  • 对我来说,从 VS 发布更容易。只需一键点击,即可构建应用程序并上传修改后的文件。 (2认同)