X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

Publishing an ASP.NET Core Application with IIS on Windows VDS

HomepageArticlesTechnical GuidesPublishing an ASP.NET Core Applicat...

To publish an ASP.NET Core application on Windows VDS, first verify administrator access to the server and the application’s target .NET version. Then install the relevant runtime components and create a site and application pool in IIS. After publishing, test the same URL again and check IIS logs and application logs with timestamps; if the problem continues, change only one setting at a time.

What to know when preparing Windows VDS

This process is intended for a VDS with the Windows Server operating system installed and accessible through RDP with an administrator account. You should have access to the application files, the domain’s DNS records, and, when necessary, the provider’s firewall management. If the domain is not ready yet, you can temporarily test the publication using the server’s IP address; however, for production access, the domain, TLS certificate, and firewall rules must be handled separately.

First clarify which .NET version the application was built with and whether it is ASP.NET Core or classic ASP.NET. For ASP.NET Core applications, the relevant Microsoft Hosting Bundle component is generally required for communication between IIS and the application; its version must be compatible with the runtime environment targeted by the application. The provider’s ready-made image may already include this component, but instead of assuming that it does, it is safer to verify it through the installed programs and IIS’s relevant modules.

Steps for publishing the application in IIS

  1. Prepare the application. Use the published output folder intended to run on the target server, not the source code from the development machine. This folder should contain the files, configuration files, and dependencies required to start the application. Before publishing, do not embed production connection strings and secret values in the source code; manage them through suitable server configuration or secure environment variables.
  2. Check the runtime environment. Open IIS Manager and the installed programs on Windows Server, then review the Web Server role, the ASP.NET Core Hosting Bundle, and the .NET version targeted by the application. If the application files are correct but IIS cannot start the request or reports that the relevant module cannot be found, a missing component is a possible cause. In that case, instead of randomly installing .NET versions, verify the application’s target version, install only the required compatible component from a trusted installation source provided by the provider or Microsoft, and note the previous system state first.
  3. Create the application pool. In the Application Pools section of IIS Manager, define a separate pool for this application. For ASP.NET Core applications, the managed runtime selection and the pool’s start behavior should match the application model in use; do not automatically copy classic ASP.NET settings. Keeping the pool separate reduces the chance that a configuration or resource problem in one application will directly affect other sites. Record the name you created, its initial state, and the values you selected.
  4. Define the site and physical path. Add a site in IIS Manager under Sites and set the published folder as its physical path; if you will use a domain name, select the correct host name and protocol on the bindings screen. If another site has the same IP, port, and host name, IIS may direct the request to an unexpected site. After saving the site, open it first through local access or the test URL you selected. If the application opens but static files appear to be missing, check that the physical path points to the publication folder and that the application actually contains those files.
  5. Match the first request with the logs. Open the application’s same entry URL in a browser and note the time. If it fails, inspect the new line for the relevant site in the IIS logs, the related Application and IIS records in Windows Event Viewer, and the error recorded at the same time by the application’s own logging provider. For example, if the record clearly shows that the application folder does not have write permission, do not broaden permissions for all server folders. Instead, identify only the folder the application genuinely needs to write to and assign the narrowest suitable permission for the required account. Then record the previous permission information.
  6. Verify the change. After making only the correction you performed, open the same URL again; this time, inspect the new timestamped IIS and application records. If the HTTP response returns the expected page, no new error record is created, and the application’s basic function works, the change has achieved its purpose. If the error continues, do not assume that the first record explained the entire cause: distinguish between a module, configuration, connection, or code error in the new record, and consider restoring the last working setting before making the next change.

Making a safe correction based on the symptom

If an application startup error similar to IIS 500.30 appears, first look in Event Viewer and the application logs for the target .NET version, a missing dependency, or an exception during application startup. If the record indicates a missing runtime environment, the correction should focus on compatibility between the Hosting Bundle and the target version; if the record points to the application’s own startup code, inspect the application configuration and the relevant version change instead of continually changing IIS settings. For configuration errors such as 500.19, address the section, XML, or access problem in the site configuration; deleting the entire IIS configuration is not a safe solution.

Suppose the application opens on the home page on Windows VDS but returns an error during file upload. If a new application record shows that write permission was denied, first verify that the target upload folder exists and identify the account used by the application pool, then grant the required permission only to that folder. When you repeat the same operation, if a new record shows a size limit, that is a separate finding; you should then examine the file-upload limit and the application’s own validation together. Do not use the first permission finding as evidence for the second limit finding.

Acceptance check before going live

An appropriate initial publication means that a home page opens with the correct host name, a request produces no new error, the application’s basic session or data-access function works, and, if HTTPS is used, the certificate matches the expected domain name. Even if these checks pass, a backup, update, and monitoring plan cannot be considered established. As the application grows, processing time, memory usage, and the database connection pool should also be monitored; the fact that IIS is running does not verify all of the code’s production requirements.

If you are evaluating server resources and Windows-based application compatibility together, you can review the Turkey VDS server plans page to examine the options. Do not choose solely based on the operating system name without comparing the technical requirements and the current access model.

Next safe step

Immediately after publishing, make a short record of the folders used by the application, the application pool values, and the running version. For the next change, test the same URL with the same test data and new timestamped records; this will allow you to distinguish which change produced the successful or unsuccessful result.


Top