我使用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 ==========
答案 0 :(得分:7)
正如@Ehsan Sajjad所说,FTP存在问题。 Somee 中需要Site path
。
以下是在连接部分下配置发布工具的方法:
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]
答案 1 :(得分:2)
这是一些FTP身份验证问题。见这里:
http://support.microsoft.com/kb/2581719
https://serverfault.com/questions/75998/ftp-access-denied-when-uploading-to-server
答案 2 :(得分:0)
Publish method: FTP
Server: ftp://domain.somee.com
Site path: Protected.domain.somee.com
Passive mode: Checked
User name: [YOUR USERNAME]
Password: [YOUR PASSWORD]
正如我在上面发表的那样,我成功了......
答案 3 :(得分:0)
发布方法:FTP 服务器:ftp://[YOUR USERNAME] .somee.com 网站路径:/ www。[您的用户名] .somee.com / 被动模式:已检查 用户名:[您的用户名] 密码:[您的密码]