﻿![]()

#### 

When you start to work locally with Sitecore OrderCloud Catalyst Examples Visual Studio solution, the first thing, you do, is clone the repo: [https://github.com/ordercloud-api/dotnet-catalyst-examples](https://github.com/ordercloud-api/dotnet-catalyst-examples)

The solution structure looks as follows:

![](https://www.brimit.com/-/media/images/blog/ordercloud/1.png)

When you start the application in IIS Express mode, you can see this error:

#### An error occurred while starting the application.

Exception: App settings not configured. Pass an Azure Config connection string into CreateWebHostBuilder().

Catalyst.Api.Program.Main(string[] args) in Program.cs, line 24

![](https://www.brimit.com/-/media/images/blog/ordercloud/2.png?h=189&amp;w=700&amp;hash=8259FA7E18E59C4EBC2CB5D0EF895087)

### Here comes the solution:

You have to open the project in Visual Studio and add the connection string as an environment variable in a new debug profile or in an existing one. You can do this by right clicking the WebApi project and go to Properties &gt; Debug &gt; New &gt; Environment Variables. Use APP\_CONFIG\_CONNECTION as the key.

The connection string have to be pointed to Azure App Configuration. If you already installed OrderCloud Headstart, you can use Azure App Configuration from there or create a new one from scratch.

![](https://www.brimit.com/-/media/images/blog/ordercloud/3.png?h=365&amp;w=700&amp;hash=3EE384BF42B9CE1899743DD0272E17DE)

Connection string you have to copy from Primary key section.

![](https://www.brimit.com/-/media/images/blog/ordercloud/4.png?h=514&amp;w=700&amp;hash=B375559EB1CF80FC5829185F7F22BD41)

In my case I used App Configuration from the OrderCloud Headstart Setup and it looks like this:

![](https://www.brimit.com/-/media/images/blog/ordercloud/5.png?h=552&amp;w=700&amp;hash=B8F8DC867DD5B421AADEF5A5C9226414)

On the screenshot below you can see how the Catalyst.Api project Debug properties should look like:

![](https://www.brimit.com/-/media/images/blog/ordercloud/6.png?h=474&amp;w=700&amp;hash=C445A6D2F038999B21F1F9476A8094D1)

Once everything is configured as was mentioned above, you can select in Visual Studio Catalyst.Api in the appropriative dropdowns and run the application. 

![](https://www.brimit.com/-/media/images/blog/ordercloud/7.png?h=32&amp;w=503&amp;hash=9FD47F7BE8B40248DD510B1A2FFFBF99)

As a result, you should be able to run the application without the exception:

![](https://www.brimit.com/-/media/images/blog/ordercloud/8.png?h=340&amp;w=700&amp;hash=E02FC83998C33187C0F2574D5C4854BC)

I hope it will save time for people who will be blocked with this issue!

###### Author

[!\[apaliakou\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/apaliakou.jpg?h=216&amp;iar=0&amp;w=360&amp;hash=5BE96F17AE5B47F66D9F684B87773675)
Andrei Paliakou
Sitecore MVP/ Lead Developer](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou)

###### More By Categories

[#E-commerce](https://www.brimit.com/blog?categories=#E-commerce)[#How-to](https://www.brimit.com/blog?categories=#How-to)[#Guides](https://www.brimit.com/blog?categories=#Guides)[Tech Talks](https://www.brimit.com/blog?categories=Tech%20Talks)[#OrderCloud](https://www.brimit.com/blog?categories=#OrderCloud)

###### More by Platform

[Data and AI](https://www.brimit.com/blog?platforms=Data%20and%20AI)[DXP](https://www.brimit.com/blog?platforms=DXP)[E-commerce](https://www.brimit.com/blog?platforms=E-commerce)[Internet of Things](https://www.brimit.com/blog?platforms=Internet%20of%20Things)[Sales and marketing automation](https://www.brimit.com/blog?platforms=Sales%20and%20marketing%20automation)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=2795204e-86f0-49e6-b9e7-241fc77c17ab&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Sitecore%20OrderCloud%20Catalyst%20-%20App%20Settings%20not%20configured&amp;kw=Sitecore%20OrderCloud%20Catalyst%20-%20App%20Settings%20not%20configured&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-ordercloud-catalyst---app-settings-not-configured&amp;r=&amp;lt=292&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=519338)