Create a new empty project, running: [Trace] Debugging started for the following file: Main [Error] System.IO.FileNotFoundException: at System.Signature.Init(ObjectHandleOnStack _this, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, RuntimeMethodHandleInternal methodHandle) at

[Trace] Debugging has started for the following file: Main
[Error] System.IO.FileNotFoundException:
at System.Signature.Init(ObjectHandleOnStack _this, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, RuntimeMethodHandleInternal methodHandle)
at System.Signature.Init(ObjectHandleOnStack _this, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, RuntimeMethodHandleInternal methodHandle)
at System.Reflection.RuntimeConstructorInfo.<get_Signature>g__LazyCreateSignature|21_0()
at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable1 source, Func2 predicate, Boolean& found)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type) Creating a new empty workflow also reports this error. What is the problem?

Hi @rpa0021 ,
UiPath is unable to load a required dependency/package. Clearing caches, restoring packages, and updating/reinstalling Studio usually resolves the issue.

Thanks

Hi @rpa0021,

This looks like a missing or corrupted dependency/package issue rather than a problem with your workflow, especially since the error also occurs in a newly created empty project.

I would suggest trying these steps in order:

  1. Close UiPath Studio.

  2. Clear the UiPath/NuGet package cache.

  3. Reopen Studio and restore the project dependencies.

  4. Check that the required package versions are available in Manage Packages.

  5. If the issue still occurs even with a completely new project, repair or reinstall UiPath Studio.

You can also check the Event Viewer / Studio logs for the name of the DLL or package that cannot be found. That can help identify the exact missing dependency.

Since the error is System.IO.FileNotFoundException during .NET reflection/JSON initialization, I would first focus on the local Studio installation and package/cache environment rather than the workflow itself.

reinstalling studio has been my go to for troubleshooting at this point, it just takes a few minutes and it’s easy to do…UiPath gets lots of weird bugs and I don’t really need to spend the time to figure out what is causing them if step one is a reinstall

Hi @rpa0021

This looks like a UiPath Studio dependency/package issue, not a workflow issue.

Since even a new empty project gives the same error, try Restore Dependencies and check Manage Packages for any missing or corrupted package.

If that doesn’t help, a Studio repair/reinstall may be needed.