To enable IIS to serve and handle *.svc files on a Windows Server, you'll need to install the Windows Communication Foundation (WCF) Services component. Here’s a step-by-step guide:
Open Server Manager:
- Click on the Start button.
- Open Server Manager.
Add Roles and Features:
- In the Server Manager dashboard, click on Add roles and features.
Select Installation Type:
- Choose Role-based or feature-based installation and click Next.
Select Destination Server:
- Choose the appropriate server from the server pool and click Next.
Select Server Roles:
- Scroll down and select Web Server (IIS) if it's not already installed.
- If IIS is already installed, just click Next.
Select Features:
- In the Features section, scroll down to .NET Framework 4.x Features.
- Expand this section and select WCF Services.
- Ensure that HTTP Activation is checked under WCF Services.
- Click Next.
Confirm Installation Selections:
- Review the selected features and roles.
- Click Install.
Complete the Installation:
- Wait for the installation to complete.
- Click Close when the installation is finished.
Verify Installation:
- Open Internet Information Services (IIS) Manager.
- Under the Sites node, click on your site.
- You should now be able to add and configure *.svc files.
Verify the config is working:
- Open a web browser and navigate to the following URL using your AIR instance information from the following,
- https://example.com/Enrollment/AeriesSync.svc/[AERIES]/Registrations?Status=Complete
- Replace
[Code]
with the appropriate value. - Ensure that you receive a proper response, indicating that the *.svc file is being served correctly.