I know I can have both C# and VB.NET code on the same web app by creating folders within app_code and mapping them in the web.config (I’ve done this before even though I cannot remember the details), but is there a way to add a C# wcf web service to a VB.NET web app?
Note: it’s a web application project, not a web site project.
EDIT:
OK, I created a new WCF library project, referenced it from the VB.NET web app, manually added a svc text file and edited as follows:
<%@ ServiceHost Language="CS" Debug="true" Service="MyServiceLibrary.ServiceInterface" CodeBehind="ServiceImplementation.cs" %>
Seems to work!
Simply create a “WCF Service Library” project in C# to create your service. In the VB.NET project, you will need to reference the WCF library, and “manually” add a .svc file that references the service defined in the library. You’ll also need to add the appropriate configuration entries.