License check failed, with exception: Sdl.Core.PluginFramework.PluginFrameworkException: No Application specific plug-in directory found.

Hi, I am trying to create a new localization project using the project automation API. It is a standalone application. Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Globalization;
using Sdl.Core.Settings;
using Sdl.Core.Globalization;
using Sdl.ProjectAutomation.Core;
using Sdl.ProjectAutomation.FileBased;
using Sdl.ProjectAutomation.Settings;
using Sdl.Core.PluginFramework;
using Studio.AssemblyResolver;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        
        public Form1()
        {           
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {

            ProjectInfo info = new ProjectInfo();
            info.Name = "Demo Project";
            info.Description = "This is a programmatically created project.";
            info.DueDate = DateTime.Now.AddDays(7);
            FileBasedProject newProject = new FileBasedProject(info);         
        }    
    }
}

I got an error at FileBasedProject newProject = new FileBasedProject(info);    Here is the error:

License check failed, with exception: Sdl.Core.PluginFramework.PluginFrameworkException: No Application specific plug-in directory found.
   at Sdl.Core.PluginFramework.DefaultPluginLocator..ctor()
   at Sdl.Core.PluginFramework.PluginManager.get_DefaultPluginRegistry()
   at Sdl.Common.Licensing.Provider.Core.LicensingProviderManager.get_LicensingProviderFactories()
   at Sdl.Common.Licensing.Provider.Core.LicensingProviderManager.CreateProvider(ILicensingProviderConfiguration config)
   at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetCurrentLicensingProvider()
   at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetProduct()
   at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
   at Sdl.ProjectApi.Licensing.StudioLicense.GetLicenseWithoutConsumingSeatsOrUsages()
   at Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_ProductLicense()
   at Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
   at Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()


I have put the assembly resolver in the main entrance point but I still get the same error. Here is my Program.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Studio.AssemblyResolver;


namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            AssemblyResolver.Resolve();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

What did I do wrong? Do I need to register a plugin directory using the plugin manager in the Core API?

Thanks!!