Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

System.IO.FileNotFoundException Error on PCF Control Initialisation

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

I'm just trying to follow a tutorial on creating a PCF Control. I have installed the PowerApps CLI, however when I run the command to initialise the control, I get an error.

The command I have run in my Powershell (running as administrator):

pac pcf init --namespace CanvizPCF --name PCFDemoControl --template field

This generates the following exception for me:

"[ERROR] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
[ERROR] at bolt.cli.Session.Run(String[] args, String hostName, IEnvirons environs, IUserSettingsPersistence userSettingsPersistence, IOutputWindow outputWindow, Action errorCallback)
[ERROR] at bolt.cli.Session.Run(String[] args, String hostName, IOutputWindow outputWindow, Action errorCallback)
[ERROR] at bolt.Program.Main(String[] args)"

Checking my .NET version by running dotnet --version I get "3.1.201"

Has anyone experienced this before or have any guidance on what I need to do to resolve this?

Many thanks,

Tom.

  • Sujeev Profile Picture
    Sujeev 20 on at
    RE: System.IO.FileNotFoundException Error on PCF Control Initialisation

    Hi Tom,

    I am also facing the same issue. Did you found the solution, if yes could you post it here please.

    I have installed  .Net Framework 4.6.2 in my machine

    Thanks,

    Sulo

  • Tom Davies Profile Picture
    Tom Davies 10 on at
    RE: System.IO.FileNotFoundException Error on PCF Control Initialisation

    Hi Andrew,

    Thank you for the reply.

    I will post this question in the forum you have suggested as well.

    Thanks very much,

    Tom.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: System.IO.FileNotFoundException Error on PCF Control Initialisation

    Tom,

    I haven't experienced anything similar but as a suggestion you can ask your question here  - powerusers.microsoft.com/.../pa_component_framework

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans