`UriFormatException` when adding a `#load` tag to my query

I am receiving a System.UriFormatException: Invalid URI: The format of the URI could not be determined. exception when adding a #load tag to my linqpad script's. This includes adding xunit support to the queries.

Possible Cause:
I believe the cause of this issue is that I use a relative path for my queries folder.

Version Info:
LINQPad Version: 7.7.3 x64 (beta)
Host runtime version: 6.0.14
Default query runtime version: 7.0.3
Default query reference assembly version: 7.0.3
Roslyn Version: 4.4.0-6.22561.11
FSharp.Compiler.Service version:
NuGet client version:
Results rendering engine: Edge Chromium Engine 110.0.1587.63 (WebView2)


  • Try the latest beta and let me know if it fixes this issue.

  • edited March 17

    Thanks for the quick turnaround time! It no longer has an unhandled exception; however, I now get this message:

    I did make sure the file was saved prior to adding xunit to the query.

    Here are my logs btw: https://pastebin.com/hVhStpWw

  • I'm sorry, I didn't notice the comment you made previously about the likely cause. LINQPad doesn't support a relative path for the My Queries folder. I presume you want it to be relative to where LINQPad has been installed?

  • edited March 17

    I use the portable versions of linqpad5 as well as linqpad7 and keep my queries in a common location. My folder structure looks like this:

    ├── queries (common queries dir)
    ├── snippets (common snippets dir)
    ├── plugins (common plugins dir)
    ├── linqpad5 (portable app dir)
    └── linqpad7 (portable app dir)

    I gotta say, for it not being a supported feature, this is the first issue I have run into with it :)

Sign In or Register to comment.