[英]MVC4 site publish to 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 ==========
正如@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]
Publish method: FTP
Server: ftp://domain.somee.com
Site path: Protected.domain.somee.com
Passive mode: Checked
User name: [YOUR USERNAME]
Password: [YOUR PASSWORD]
正如我在上面發表的那樣,我成功了..
發布方法:FTP服務器: ftp:// [您的用戶名] .somee.com網站路徑:/。[你的用戶名] .somee.com /被動模式:選中用戶名:[您的用戶名]密碼:[您的密碼]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.