---
title: Running Sitefinity Locally Within IIS on Windows 10
description: Run your Sitefinity projects locally through your IIS right on your PC. It's a simple process that can help speed up your Sitefinity development.
image: https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-plain-charts-blue.jpg
---

<https://www.inalign.com>

- [About](https://www.inalign.com/about-us)
- [Code](https://www.inalign.com/custom-development)
- [Sitefinity](https://www.inalign.com/sitefinity-development)
- [Blog](https://www.inalign.com/sitefinity)
- [Contact Us](https://www.inalign.com/contact-us/)

# Running Sitefinity Locally Within IIS on Windows 10

by [Gregg Crystal](https://www.inalign.com/sitefinity/author/gregg-crystal) Dec 08, 2020

 

There are many reasons why you may need to run Sitefinity on your local PC running Windows 10.

1. You don't have the source code, just the deployed files, so you can't run the site within Visual Studio
2. You want to work on cshtml and CSS changes in the fastest possible way (without having Visual Studio recompile).

Sitefinity can be very SLOW to startup after a build, so we like to minimize the number of times we have to do a complete startup. Note that starting with Sitefinity version 13, the startup time has been greatly reduced (another reason to upgrade!).

When you're running within IIS locally, you can make changes the ResourcePackages folder (for Feather development), change cshtml files in your MVC Views folder, and make CSS changes without having the website startup again.

Remember that Sitefinity is just a .NET website! So if you're familiar with .NET, these steps should be common for you.

## Database Setup - SQL Express

Assuming you are using an existing Sitefinity website, then you'll need to restore a backup of that database.

You can use almost any version of SQL Express. For more recent deployments I use 2016, 2017, or 2019, depending on the client's request. Note that it's easy to go forward with SQL (such as 2014 to 2016) but almost impossible to go backward (2016 to 2014).

Make sure SQL Express is setup for remote connections.

Login to your SQL instance with SQL Management Studio, right click on the instance in Object Explorer, and select Properties.

 ![SQL Server Properties](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis.png?width=376&name=sf-blog-running-local-iis.png "Running Sitefinity Locally Within IIS")

Make sure 'Allow remote connections to this server' is checked.

 ![Allow remote connections to this server](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-02.png?width=690&name=sf-blog-running-local-iis-02.png "Running Sitefinity Locally Within IIS")

Now you can restore the database to SQL Express.

## Next, Create a Website in IIS

You can install IIS locally on Windows 10.

You can find this within the Control Panel under 'Turn Windows features on or off'.

![Add IIS from Windows 10 Features](https://www.inalign.com/hubfs/image-png-1.png)

If you are already developing with Visual Studio, you might notice that you have IIS Express installed. What we're installing here is the full version, and when you do a search on 'IIS' from your Windows 10 search box, you should see IIS appear.

This is the version that was installed for me:

![IIS Version](https://www.inalign.com/hubfs/image-png-2.png)

 

Once installed, you can add a website within IIS.

Right click on 'Sites' and select 'Add Website'

![Add site within IIS](https://www.inalign.com/hubfs/image-png-3.png)

 

 ![Add a website to IIS and set host headers](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-03.png?width=585&name=sf-blog-running-local-iis-03.png "Running Sitefinity Locally Within IIS")

Note that we're just going to use localhost as the url, with a port of 8383. I have many sites running locally. The default is port 80, but you can't share ports with more than one website, so in this case I just picked 8383.

Note that the Application Pool automatically named 'sf926200', which is the same name as the site.

Go to Application Pools within IIS and makes sure that you have .NET 4 selected.

 ![Set Application Pool](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-04.png?width=302&name=sf-blog-running-local-iis-04.png "Running Sitefinity Locally Within IIS")

## Publish and Copy Sitefinity Files

Make sure you are copying files from the published version of your site or from the web server and that you are copying to the same folder as you setup within IIS.

## Change DataConfig.Config

If you copied from a web server, your database connection strings are probably not going to be the same.

Open Windows Explorer and change this file:

 ![Modify DataConfig.Config](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-05.png?width=813&name=sf-blog-running-local-iis-05.png "Running Sitefinity Locally Within IIS")

Change the 'ConnectionString' property to point to your local DB.

 ![Database Connection String Changes](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-06.png?width=818&name=sf-blog-running-local-iis-06.png "Running Sitefinity Locally Within IIS")

## Run the site - Oops-HTTP Error 500.19!

 ![HTTP Error 500.19](https://www.inalign.com/hs-fs/hubfs/BlogSitefinity/sf-blog-running-local-iis-07.png?width=818&name=sf-blog-running-local-iis-07.png "Running Sitefinity Locally Within IIS")

You can look up the error here.

[https://support.microsoft.com/en-us/kb/943891](https://support.microsoft.com/en-us/kb/943891)

In my case, I had a rewrite in the web.config that redirected all http traffic to https. My local IIS isn't setup to do this, so I had to comment this code out.

## Recycle the Application Pool, and Browse the Site

If you change the web.config, the website will restart automatically.

If you have changes to make in the DataConfig.Config file, the website will NOT automatically restart (even though it feels like it should, since it's a Config file).

Recycling the app pool in IIS will do the trick.

## Testing the Build Process

Running locally within IIS also allows you to test the build and deployment process before you need to move this to a test server.

Sitefinity does not always add the DataConfig.Config files to the published output. These files are not typically copied from a local development area to a server, as the settings within these files are server specific.

## Editing CSHMTL Files

You can edit files directly in the ResourcePackages area (such as /ResourcePackages/Bootstrap4 if you're in Sitefinity v13.x).

Note that you don't have to recompile to get changes to appear with the CMS.

Likewise, assuming you are using a Pure MVC development environment within Sitefinity, as you add cshtml files under ResourcePackages/Bootstrap4/MVC/Views, the changes will automatically appear within the CMS.

 

### Related Posts

[![10 Sitefinity Features Marketers Can Easily Use with Any Website](https://www.inalign.com/hubfs/Inalign_March2018/Layout/sitefinity-background-supercharge-4.jpg)](https://www.inalign.com/sitefinity/10-sitefinity-features-marketers-can-easily-use-with-any-website)

[10 Sitefinity Features Marketers Can Easily Use with Any Website](https://www.inalign.com/sitefinity/10-sitefinity-features-marketers-can-easily-use-with-any-website)

[![What PHP Developers Need to Know When Working With Sitefinity](https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-plain-sf-people-at-computers-blue.jpg)](https://www.inalign.com/sitefinity/what-php-developers-need-to-know-when-working-with-sitefinity)

[What PHP Developers Need to Know When Working With Sitefinity](https://www.inalign.com/sitefinity/what-php-developers-need-to-know-when-working-with-sitefinity)

[![Running Sitefinity Locally Within IIS on Windows 10](https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-plain-charts-blue.jpg)](https://www.inalign.com/sitefinity/running-sitefinity-locally-within-iis)

[Running Sitefinity Locally Within IIS on Windows 10](https://www.inalign.com/sitefinity/running-sitefinity-locally-within-iis)

[![Speeding Up Sitefinity Development: Inline Editing](https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-development-blue.jpg)](https://www.inalign.com/sitefinity/speeding-up-sitefinity-development-inline-editing)

[Speeding Up Sitefinity Development: Inline Editing](https://www.inalign.com/sitefinity/speeding-up-sitefinity-development-inline-editing)

[![Solution to the Sitefinity Error: The located assembly's manifest definition does not match the assembly reference.](https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-crash-org.jpg)](https://www.inalign.com/sitefinity/sitefinity-error-assembly-manifest-does-not-match)

[Solution to the Sitefinity Error: The located assembly's manifest definition does not match the assembly reference.](https://www.inalign.com/sitefinity/sitefinity-error-assembly-manifest-does-not-match)

[![How to Customize Module Builder Widget Templates with Conditional Statements](https://www.inalign.com/hubfs/BlogSitefinity/sf-hero-plain-charts-orange.jpg)](https://www.inalign.com/sitefinity/how-to-customize-module-builder-widget-templates-with-conditional-statements)

[How to Customize Module Builder Widget Templates with Conditional Statements](https://www.inalign.com/sitefinity/how-to-customize-module-builder-widget-templates-with-conditional-statements)

[More](https://www.inalign.com/sitefinity/topic/sitefinity)

---

### Subscribe to Our Blog

---

### Topics

- [Recent](https://www.inalign.com/)
- [Inbound Marketing](https://www.inalign.com/topic/inbound-marketing)
- [Technology](https://www.inalign.com/topic/tech-marketing)
- [Manufacturing](https://www.inalign.com/topic/industrial-manufacturing)
- [Energy](https://www.inalign.com/topic/retail-energy)
- [Sitefinity](https://www.inalign.com/sitefinity)

---

[![5 Conversion Killers Every Marketer Should Avoid](https://no-cache.hubspot.com/cta/default/413787/80197558-1902-4342-bb36-b0d3da7222ec.png)](https://cta-redirect.hubspot.com/cta/redirect/413787/80197558-1902-4342-bb36-b0d3da7222ec)

## This Post Was Written by Gregg Crystal

CEO and Founder of Inalign, Inc. (www.inalign.com), a full stack Software Development firm specializing in building web and line of business applications. We focus on .NET, Angular, SQL Server, and Sitefinity.

Connect with me:

<https://www.linkedin.com/in/greggcrystal/>

### About Inalign

[Visit Inalign.com](https://www.inalign.com)

### Visit Us On LinkedIn

[Visit LinkedIn](https://www.linkedin.com/company/inalign-inc)

### Check Out Our Portfolio

[Visit Portfolio](https://www.inalign.com/Portfolio/portfolio-home/)

### Get a Free Assessment

![inaligngraylogo](https://www.inalign.com/hs-fs/file-1175323414-png/Inalign/Images/inaligngraylogo.png)

## 800.602.9947

- [Code](https://www.inalign.com/custom-development)
- [Sitefinity](https://www.inalign.com/sitefinity-development)
- [Blog](https://www.inalign.com/sitefinity)
- [About](https://www.inalign.com/about-us)

## ABOUT INALIGN

Inalign is a full stack Software Development firm specializing in building web and line of business applications. We focus on .NET, Angular, SQL Server, and Sitefinity.

We’ve worked with 300+ customers on thousands of projects for over 20 years!

## FOLLOW INALIGN

[![twitter_icon](https://www.inalign.com/hs-fs/file-1175323379-png/Inalign/Images/twitter_icon.png)](http://twitter.com/inaligninc)[![linkedin_icon](https://www.inalign.com/hs-fs/file-1175323409-png/Inalign/Images/linkedin_icon.png)](http://www.linkedin.com/companies/inalign-inc)[![facebook_icon](https://www.inalign.com/hubfs/Inalign/Facebook_Icon.png)](https://www.facebook.com/pages/Inalign-Inc/171479400405)