Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC4 site publish to Somee

I've created an MVC application using Visual Studio 2013 and I want to publish it using my free account of Somee. They claim to support MVC 4 but I'm unable to publish.

Here's my output when trying to publish:

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 ==========
like image 738
Jaime Oro Avatar asked Dec 25 '22 10:12

Jaime Oro


2 Answers

As @Ehsan Sajjad said there was a problem with the FTP. Site path is required in Somee.

Here is the way to configure the publish tool under the connection section:

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] 
like image 141
Jaime Oro Avatar answered Dec 28 '22 08:12

Jaime Oro


It is some FTP authentication issue. See here:

http://support.microsoft.com/kb/2581719

https://serverfault.com/questions/75998/ftp-access-denied-when-uploading-to-server

like image 35
Ehsan Sajjad Avatar answered Dec 28 '22 10:12

Ehsan Sajjad