# Buisness analise

**URL:** <https://forums.pega.com/t/buisness-analise/9420>\
**Category:** General\
**Tags:** pega-robotic-automation, robotic-process-automation\
**Created:** [April 30, 2025, 8:42am UTC](https://forums.pega.com/t/buisness-analise/9420 "2025-04-30T08:42:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MilchoP9](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MilchoP9](https://forums.pega.com/u/MilchoP9)\
**Post date:** [April 30, 2025, 8:42am UTC](https://forums.pega.com/t/buisness-analise/9420/1 "2025-04-30T08:42:02Z")

</div>

Hello pega Team,

I need support regarding one issue. When I validate a script, it works fine, but when I run the process, an error occurs: “Could not load file or assembly ‘Microsoft.AspNetCore.StaticFiles, Version=2.2.0’”.

Any adivece here?

 ![error.png](https://pega1.discourse-cdn.com/pega/original/2X/c/c1544d5763c2790b1c37cad5d9db5d96431e1440.png)

---

<div class="post-metadata">

**Author:** ![Sairohith](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sairohith/32/23362_2.png) [@Sairohith](https://forums.pega.com/u/Sairohith)\
**Post date:** [April 30, 2025, 8:52pm UTC](https://forums.pega.com/t/buisness-analise/9420/2 "2025-04-30T20:52:32Z")

</div>

@MilchoP9 The error you’re seeing _“Could not load file or assembly ‘Microsoft.AspNetCore.StaticFiles, Version=2.2.0’”_ usually means that the required .NET library is either missing or not properly referenced in your application. While validating the script might succeed because it doesn’t actually run the full process, executing it requires all dependencies to be present. To fix this, install the missing package using NuGet by running `Install-Package Microsoft.AspNetCore.StaticFiles -Version 2.2.0` in the package manager console or add it to your `.csproj` file. Make sure your application targets a compatible .NET Core version (like 2.2) and that all required libraries are included during deployment. Rebuild your solution after making these changes to ensure the assembly is loaded correctly.

---

<div class="post-metadata">

**Author:** ![ThomasSasnett](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/thomassasnett/32/7690_2.png) [@ThomasSasnett](https://forums.pega.com/u/ThomasSasnett)\
**Post date:** [May 1, 2025, 1:22am UTC](https://forums.pega.com/t/buisness-analise/9420/3 "2025-05-01T01:22:33Z")

</div>

@MilchoP9Please ignore the AI response before mine. It seems like you’ve likely created a script using a third-party assembly. Make sure you place that assembly and any of its dependencies into %AppData%\Pegasystems\PublicAssemblies when you reference them from Studio. Re-add those references to your project from the Project properties and they should be attached with the deployment package when you create one. If not, you can attach them manually by selecting Add-\>Advanced-\>Deployable File.

---

<div class="post-metadata">

**Author:** ![MilchoP9](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MilchoP9](https://forums.pega.com/u/MilchoP9)\
**Post date:** [May 2, 2025, 1:10pm UTC](https://forums.pega.com/t/buisness-analise/9420/4 "2025-05-02T13:10:24Z")

</div>

@ThomasSasnett , I’ve added manually and it works. Thaks
