Thursday, July 9, 2009

Can't open .svc file

1. Open: C:\Windows\System32\inetsrv\config\applicationHost.config
2. Find "location path" which appropriate path value and insert below handlers section as below


<location path="Default Web Site/PersonnelBiz">
<system.webServer>
<handlers accessPolicy="Execute, Script">
<add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
<add name="svc-ISAPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>

No comments:

Post a Comment