WCF Web Service : How to run? - wcf

Am planning to build a WCF Web service using Visual Studio 2015. I came up with a sample web service that i can launch from visual studio and this works fine when i call the APIs from browser on local host.
Now i want to deploy it in a server. Am not sure how I can deploy in a server. The final out put of the web service is a DLL.
Can someone explain to me how to deploy this in a Windows server?
Do i need to run this web service DLL as a service?
Does it got anything to do with IIS?

As per your request, I have made this an answer.
If you're looking to host a WCF service which is exposed to the outside world then the best solution is to host the service via IIS which you can find out how to do by reviewing the following article.
You can find a more visual tutorial here.
If you encounter errors after publishing to IIS then please refer to the following StackOverflow answer to see which Windows Features must be enabled.

Related

How to get Web API to deploy automatically upon building, like WCF services

I would like to achieve, with Web API, the following WCF behaviour:
Using Visual Studio 2015 create a brand new WCF Service Application. Build. Right away the sample service is "online" and can be accessed with a browser, Fiddler, etc. I do not need to explicitly run the project in VS for the services to be available to any client.
I'm completely new to Web API, and have not seen any documentation on how to achieve this same seamless deployment.
Anyone?
Instead of running the project in Visual Studio (which spins up an IIS Express instance), make sure the IIS feature is turned on on your windows installation, and setup a new site, and point it at the directory of your build output.
For a step-by-step see: http://www.c-sharpcorner.com/UploadFile/2b481f/how-to-host-Asp-Net-web-api-on-iis-server/

Installing Silverlight 4 in Windows server 2012, Ria service applications not working

I have the flowing setup
Windows server 2012 Standard
IIS-8
Ria services 1.0 sp1
Silverlight 4
I need to make this applications work but I tried about anything to make this setup work. Any one know What i need to install to make Ria services work in this environment.
Already tried to install ria service on the server and using the option SERVER=true
I just keep getting the 404 when trying to connect to the server on web-config. I tried to include the wcf tracing on the web-config but the trace doesn't register anything.
Anyone have a step by step installation guild from a just installed server to a server that cans run ria service application of silverlight 4?
already tried everything here WCF RIA Service deployment issue
You also need the HTTP Activation feature installed for your IIS.
http://social.msdn.microsoft.com/Forums/en-US/silverlightwcf/thread/6539af8b-96f1-4c4b-b03e-3973f3a5744f

How to debug a remotely hosted WCF web service

I am new to WCF web service development and I can use some help.
I have a simple web service written in C# that I'm hosting on a remote server (it's hosted on IIS 5.1).
I've written a client application for that web service that I'm running on my workstation.I am able to connect to the service without any problems.
However, I would like to be able to debug the web service.I need to be able to step through the code, set breakpoints, etc.How do I achieve that from my local machine? I'm using Visual Studio 2010.
Thank you in advance.
I see two possibilities:
Local debugging: For debugging, run your service on your local machine. If you want to run it on the local IIS, simply start a second instance if VS2010 and attach to the w3wp.exe process (menu Tools -> Attach to process)
Remote Debugging: You have to install and start the VS2010 remote debugger on the server. Start a second instance of VS2010 on your development box and connect to the remote debugger with menu Tools -> Attach to process.
See msdn for more information about remote debugging with VS2010.

WCF Data Services (OData) deployment on IIS 5.1

I have developed a WCF Data service using VS 2010, I am able to run it and get the data as feed by running using VS 2010.
I published the service on IIS 5.1 but I m getting http: 404 error.
Can anyone help to deploy the service on IIS 5.1 step by step?
I found a bit on it here.

Adding reference to WCF service gives error

I am having a very basic problem with creating WCF. So here is what i did
Created an ASP.NET web site project in VS2008.
Created a WCF service application in the same solution. Added a new WCF service "WCFService1.svc" into this project.
3,. Changed the setting of the Web server from "Use Visual Studio Development Server" to "Use IIS local web server".
Clicked add "Service Reference" in ASP.net web site project and clicked discover to see the "WCFService1" service. Now when I try to add Service Reference, I get an error all the time saying "Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service."
But if I revert back to the "Use Visual Studio Development SErver" setting, things run fine.
Please tell me what is going on here. This is driving me nuts! Eventually the project needs to be deployed in IIS to I am surprised if no-one else cam across this problem.
The VS development server uses Anonymous Authentication by default. If you change the authentication in the Options of the virtual directory it would work.
Here I found some links that might help you.