Last post Sep 26, 2015 12:19 PM by ivalchenko
Sep 22, 2015 05:16 AM|ivalchenko|LINK
Hi Everyone! I don't know how to upload my WCF SOAP service created with MS Visual Studio to a remote server. I need
advice. I have WCF service and the client (website based on ASP .NET MVC Application). My
public interface IService1
string GetChatbotAnswerUsingDataContract(string question);
public class Service1 : IService1
public string GetChatbotAnswerUsingDataContract(string question)
Chatbot chatbot = new Chatbot();
And my ChatbotController:
public ActionResult Create(string question)
ViewBag.ChatbotAnswer = obj.GetChatbotAnswerUsingDataContract(question.ToLower());
ViewBag.YourQuestion = question;
Web.config for my service:
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
<compilation debug="true" targetFramework="4.5" />
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<add binding="basicHttpsBinding" scheme="https" />
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
It's works on localhost, but when I upload my WCF service on free hosting using FTP and try to add Service References Visual Studio didn't find my service. It's here:
http://chatbotservice.esy.es/WcfServiceLab1/ How to "install" wcf service on the remote server? What should I do? That web server runs Apache so cannot host
WCF services, currently the file contents are being served up raw, e.g.
Sep 22, 2015 07:01 AM|PatriceSc|LINK
You could try http://www.mono-project.com/docs/web/mod_mono/ and see if it works. You can't expect to just deploy ASP.NET (or any other server side technology) on a random web server technology
and expect it to work.
Or if you have no control on that maybe your web site hoster just does not provide ASP.NET support in which case you'll have to find another one that does.
Sep 23, 2015 04:13 AM|Lorris|LINK
How I can upload my WCF SOAP service to a remote server?
As for this issue, you could refer to the following articles to publish your service.
Perform the following steps to deploy a service implementation:
Besides, You can use WebDeploy to publish the service to remote server, you need install it on IIS.
Follow the tutorial to deploy the service.
Sep 26, 2015 12:19 PM|ivalchenko|LINK
Thanks! But I can not
load my service.
I have registered on the somee.com and take free hosting package with IIS8 support. Here:
Now I tell how I have tried
to publish the service
in Visual Studio.
Open a service project, select Build->Publish
Select a publish target: Custom (Enter profile name:
And click to
Validate Connection (OK)
File Publish options:
Delete all existing files prior to publish (checkbox)
But i get the following:
1>------ Build started: Project: ChatbotWcfService, Configuration: Release Any CPU ------
1> ChatbotWcfService -> C:\Users\ilia\documents\visual studio 2015\Projects\ChatbotWcfService\ChatbotWcfService\bin\ChatbotWcfService.dll
2>------ Publish started: Project: ChatbotWcfService, Configuration: Release Any CPU ------
2>Connecting to ftp://www.chatbot.somee.com/root...
2>Unable to create the Web site 'ftp://www.chatbot.somee.com/root'. Cannot create folder "root".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
How can I fix