I\'m trying to host my service with IIS 6 but I keep get this exception.
Server Error in \'/WebServices\' Application.
----------------------------------
I had the same problem but no clue what caused it. I Solved it by changing from Debug to Release and Run using Debug/Start New Instance. After that, it ran in both Release and Debug. It was magic...
In my case Right Click on Virtual Directory and Select "Convert To Application" worked!
Building the solution before adding the service reference solved my problem.
I had the same Exception, this is due to the Type not correctly mentioned in the .svc file
I corrected with below fix.
if your .svc.cs has class like this
namespace Azh.Services.MyApp
{
public class WcfApp : FI.IWcfAppService
{
...
}
}
for this the .svc file should look like this
<%@ ServiceHost Language="C#" Debug="true" Service="Azh.Services.MyApp.WcfApp" CodeBehind="WcfApp.svc.cs" %>
I got this error when trying to add the Service reference for the first Silverlight enabled WCF in the same solution. I just build the .Web project and it started working..
Option One:
This message is often due to an IIS 7 config problem. If you are used to creating a virtual directory pointing to the folder where your service resides, that no longer works. Now, you need to use the "Create Application..." option instead.
Other Options: