(1) To establish a physical location for the IIS application, it is to find a place to create a new folder (for example: Iisservice), for storing related files.
(2) Create an IIS application. Control Panel-Administrative Tools-opens IIS. Right-click on the Default Web Site node and select Add Application. The alias is random, the physical path is selected in the (1) step of the folder that was built. Click OK directly and the test settings are ignored.
(3) Place the. svc file and the Web. config file into the physical path (iisservice). Under the Iisservice folder, add the associated. cs file to the folder named App_Code.
(4) Right-click the new application in step (2) and select Switch to content view to see the files and subdirectories below the folder. Right-click on the. svc file to browse to see information about the service.
Troubleshooting for running errors:
(a):HTTP error 500.19-internal Server Error resolution method
1 Open run, enter cmd into the command Prompt window.
2 enter into the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory.
3 input aspnet_regiis.exe–i execution can be
Note: If the system is a 64-bit path to the second step of C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727
Open the previous level of the virtual directory (mysites), which is the parent directory, right-click to select its properties, open the Security tab, see "Group or User name", click the "Edit" button to add a new user name "Everyone", then change its permissions, "modify" the second permission Set it to allow.
(ii) HTTP error 500.9 (unable to read the configuration file due to insufficient permissions):
1 in step (2) of the application right click, select Edit Permission-"security-" group or user name edit-"Add the name everybody, set his modified property to True."
WCF through the IIS Homestay service