# Example Project throws an error

**URL:** <https://community.auth0.com/t/example-project-throws-an-error/48151>\
**Category:** Get Help\
**Created:** [August 17, 2020, 3:33pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151 "2020-08-17T15:33:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![develop](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/develop/32/12814_2.png) [@develop](https://community.auth0.com/u/develop)\
**Post date:** [August 17, 2020, 3:33pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/1 "2020-08-17T15:33:19Z")

</div>

I’ve downloaded the example project and when attempting to run get the error: Severity Code Description File Line Source Suppression State  
Error The expression ““App\_Start\BundleConfig.cs”.GetPathsOfAllDirectoriesAbove()” cannot be evaluated. Method ‘System.String.GetPathsOfAllDirectoriesAbove’ not found. Build

How might I go about correcting this?

Thanks.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [August 17, 2020, 4:31pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/2 "2020-08-17T16:31:37Z")

</div>

Good morning,

Could you provide which sdk you are using and any other reproduction steps you can provide?

This doesn’t seems to be an Auth0 error. I checked a few places and it seems this error generally occurs when there’s a compatibility issue between `Microsoft.Net.Compilers` 2.x (vs2017) and 3.x (vs2019). A few people on different forums (stackoverflow) said that downgrading from v3 to v2 fixed the issue specifically on our build agents which only had VS2017.

Please let me know if this helps!

---

<div class="post-metadata">

**Author:** ![develop](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/develop/32/12814_2.png) [@develop](https://community.auth0.com/u/develop)\
**Post date:** [August 17, 2020, 5:03pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/3 "2020-08-17T17:03:47Z")

</div>

Hi Karen,

Thanks for engaging. I think this is what you are asking for. If not, let me know what specifically you would like to know.

Microsoft Visual Studio Professional 2017  
Version 15.9.11  
VisualStudio.15.Release/15.9.11+28307.586  
Microsoft .NET Framework  
Version 4.8.03752

Installed Version: Professional

I would agree it doesn’t seem directly like an Auth0 error, but it is coming from that solution. When I first downloaded the solution, it needed we to install .net Framework 4.7.2, which I got from here: [.NET SDKs downloads for Visual Studio](https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral).

Then in NuGet it wanted some missing libraries installed, which I allowed it to do. Now the solution opens in VS without issue, but when running the App I get: Severity Code Description File Line Source Suppression State  
Error The expression ““App\_Start\BundleConfig.cs”.GetPathsOfAllDirectoriesAbove()” cannot be evaluated. Method ‘System.String.GetPathsOfAllDirectoriesAbove’ not found. Build

So I’m not sure where to go next. Any additional insight would be greatly appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [August 19, 2020, 1:12pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/5 "2020-08-19T13:12:32Z")

</div>

Good morning,

Could you link me to the auth0 sdk that you are using for this project? So, I can give this a go for you and see if I can reproduce/solve this issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![develop](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/develop/32/12814_2.png) [@develop](https://community.auth0.com/u/develop)\
**Post date:** [August 20, 2020, 1:22pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/6 "2020-08-20T13:22:18Z")

</div>

Hi Karen…Thanks so much for looping back. I installed VS2019 Pro, and ran the project from there. It ran as expected, so I’m good for now. Once again, thanks for checking in!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 21, 2020, 1:24pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/7 "2020-08-21T13:24:35Z")

</div>

We’re here for you @develop!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 5, 2020, 1:24pm UTC](https://community.auth0.com/t/example-project-throws-an-error/48151/8 "2020-09-05T13:24:38Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
