I am trying to fix a problem where my wCF services will not work on my live site which runs under it’s own website instead of under Default Web Site.
I am trying to run ServiceModelReg -i but for my website, not the Default. If I put -h it says that “-s:” will recursively install the components for the particular path. However, when I run “ServiceModelReg -s:W3SVC/1/root” then it says “Error: No valid options were specified…” -s does the same thing, in short it does not seem to work.
I read here that I could run it for my website instead of Defafult Web Site by incrementing the number, but it does not seem to work even with just the s.
So the question is: How can I run this option with -s for my website (it is called pokerdiy.com in IIS and is a sibling of the Default Web Site).
The website is running on IIS 7.5.7600.16385 on Windows Server 2008 R2 Version 6.1 SP1 (64 bit) in an Integrated Application pool with .NET 4.0.
servicemodelreg.exe installs at machine level not at site level. If a .svc file is not served by the non-default site, the problem lies with the settings that should have been setup through running
aspnet_regiis -i -s <your site path>