1

I have to create an application which communicate with DB through WCF Service. WCF service will be hosted on client's server.It will be an intranet environment. I want to use NetTCPBinding to get the performance benefit.

If i use IIS7 to host my service on client's server, then source code is available to client. I don't want to make source available to client.

My question is. How do I host my service so source code would not available to client?

While we are hosting WCF service in IIS 7 can we provide only WCf service exe? If yes then how Please explain.

Rudra
  • 148
  • 1
  • 10
  • Will Self hosting helps in this? – Rudra Dec 15 '16 at 08:34
  • Possible duplicate of [Protect .NET code from reverse engineering?](http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering) – tom redfern Dec 15 '16 at 09:59
  • No it won't. You cannot prevent your net assemblies from being dissasembled. Anyway, why do you care if this happens? – tom redfern Dec 15 '16 at 10:00
  • I am not talking about Obfuscation and i am not bothered about this. When we host our application in IIS we provide complete code not exe. I want to know is it possible to create exe of WCF service and host with in the IIS7 or above? – Rudra Dec 15 '16 at 10:41
  • What complete code? Just compile it into an assembly. – tom redfern Dec 15 '16 at 15:13

1 Answers1

1

Here is quite detailed guide of how to host WCF service in IIS. No need to put your source code there.

Igor Labutin
  • 1,406
  • 10
  • 10