X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

Publishing a Web Application with IIS on Windows VDS

HomepageArticlesTechnical GuidesPublishing a Web Application with I...

To publish a web application on Windows VDS, first verify the application’s runtime components and required .NET version, then configure the IIS role, application pool, site binding, DNS, and firewall in order. Record the current value before every change and modify only one setting at a time. This lets you diagnose an inaccessible site using observable evidence rather than random configuration changes.

Prepare the Windows VDS environment before starting

This guide is intended for an administrator-managed Windows VDS environment where you have a Windows Server administrator account or equivalent management privileges. If you can access only limited site settings in a shared hosting panel, you cannot modify the IIS role, Windows services, or firewall. In that case, the application-publishing options in the provider’s management panel apply.

Beforehand, note the application’s target runtime, the port it will listen on, the domain name, and the folders that require write access. For applications such as ASP.NET Core, compatibility between the runtime used by the application and the Hosting Bundle or relevant IIS component on the server is important. Back up the existing IIS configuration and application settings before copying application files; do not share passwords, connection strings, or API keys in an article, screenshot, or shared file.

Install the IIS role and application components

In Server Manager, select the Web Server (IIS) role from the role and feature installation screen. Depending on your application type, add ASP.NET, .NET Extensibility, WebSocket, or the required management tools; do not enable unused components merely because they are available. When installation is complete, the basic web server is ready if IIS Manager opens and the default site responds on the local server.

The decision here is straightforward: if the application consists of static HTML and JavaScript files, IIS may be sufficient for serving static content. If the server uses ASP.NET Core or another runtime, you must also install the application’s documented IIS integration component. If IIS Manager opens but a request to the application indicates a missing runtime, correct the relevant component and application-version compatibility first; changing the domain name or firewall will not resolve that error.

Create the application pool and site

In IIS Manager, create a separate Application Pool for the application. The managed runtime selection must match the application’s technology. In ASP.NET Core applications, IIS works together with the module that starts the application in the background, so an incorrect pool setting can cause a startup error. The pool identity should have only the read or write access required for the application folder. Instead of granting access to the entire disk or a broad system folder, consider only specifically designated folders, such as upload or cache directories.

Next, create a new site in the Sites section and specify its physical path, pool, protocol, and port. If you use a domain name, enter the correct host name in the HTTP/HTTPS binding; when multiple sites use the same port, this name routes the request to the correct site. For HTTPS, the certificate must be present on the server and associated with the correct certificate in the binding screen. If you do not have a certificate, complete the certificate and DNS preparation first rather than disabling security checks.

Publishing and connection verification

  1. Transfer the files to the target folder: Place the published output in the IIS site’s physical path. If the folder contains an entry file or the structure expected by the application, the file placement is correct; if it contains only source code and no published output, the application may not start.
  2. Check the IIS configuration: Verify that the site status is Started, the application pool is running, and the binding information shows the expected port and domain name. If the pool stops immediately, inspect IIS and application records from the same time in Windows Logs or Application and Services Logs in Event Viewer.
  3. Allow network access: In Windows Defender Firewall, evaluate the required inbound rule only for the TCP port the application actually uses. If the site opens on the local server but not from an external network, first inspect the firewall rule and the provider’s network security policy; changing application files is not the appropriate first correction for this symptom.
  4. Verify DNS and HTTPS: Check that the domain name points to the relevant IP address, that the HTTPS binding matches the domain name, and that there is no certificate warning. If the domain points to the wrong IP address, correct the DNS record; if it points to the correct IP but the certificate name does not match, address the certificate and binding association.
  5. Retry the same request: Record the first failed URL, the attempt time, and the error code shown. After making one change, open the same URL again and inspect IIS logs and the Event Viewer record for the new time period. If the new record no longer contains an error, verify the correction; if a different error appears, do not assume that the first error explained every cause.

Make targeted corrections based on the symptom

If you receive HTTP 403, first inspect folder permissions, the default document setting, and whether the application is actually mapped to the expected physical path. If the record clearly shows that read access is missing for the application folder, grant the IIS application pool identity access only to the required folder, preserve the previous permission information, and retry the same URL. If the result does not change, inspect the new record; granting broad permissions to all folders is not a secure correction.

For HTTP 500 or an application startup error, check which module, runtime, or application component the event record identifies. For example, hypothetically, if a newly published ASP.NET Core application appears as a site in IIS Manager but Event Viewer reports a missing hosting component during the same minute, the targeted step is to install a compatible component and restart the application pool rather than change the port. If an application-specific record is created on the next attempt and the home page responds, the correction is verified; if the error continues, restore the previously changed component setting and compare the published output and version compatibility again.

If local access works but external access does not, distinguish between the port on which the application listens and the firewall rule. If the local test also fails, focus on the application or IIS configuration; only when the local test succeeds should you focus on network access. Select one factor each time you make a change; if the result is not successful, restore the last changed value to the saved original value.

Post-publication acceptance check

When publication is complete, opening only the home page is not enough. Test the HTTP and HTTPS response through the domain name, a basic operation inside the application, static files, and, if applicable, the sign-in flow separately. The expected state is that no incorrect certificate warning appears, successful requests are recorded in IIS logs, and no new unexplained exceptions appear in the application logs. If features such as file uploads or database writes do not work, investigate them through the relevant folder, identity, and connection settings without increasing general permissions.

For the next application, use the same checklist first and record which port, pool, and folder values changed. You can review the Turkey VDS server plans page to compare the server types you need; the technical compatibility decision should still be determined by your application’s runtime, traffic pattern, and management access.


Top