Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7783355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:48:53+00:00 2026-06-01T19:48:53+00:00

In the latest BETA 4.37.11, when using FileVersionInfo.GetVersion it throws an exception The path

  • 0

In the latest BETA 4.37.11, when using FileVersionInfo.GetVersion it throws an exception “The path is not of legal form.”

at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32
maxPathLength) at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path) at
System.Diagnostics.FileVersionInfo.GetFullPathWithAssert(String
fileName) at
System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)

Specifically this is happening when trying to use MvcMiniProfiler.ProfiledDbConnection which tries to call

Version = FileVersionInfo.GetVersionInfo(typeof(MiniProfiler.Settings).Assembly.Location).ProductVersion;

in static Settings() ctor.

This works fine when using the 4.31 build of LINQPad. In the BETA, the Location property of the assembly appears to be “” while in 4.31 it returns the proper path to the file.

Any ideas or workarounds to get this to work? In my script there a few features of the new BETA that I have grown used to and not really looking forward to giving them up yet.

Also found this “The location of the loaded file that contains the manifest. If the loaded file was shadow-copied, the Location is that of the file after being shadow-copied. If the assembly is loaded from a byte array, such as when using the Load(Byte[]) method, Location is an empty string (“”).”

Wonder if LINQPad Beta has changed the way it loads assemblies?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:48:54+00:00Added an answer on June 1, 2026 at 7:48 pm

    LINQPad did change the way it loaded assemblies in 4.3x (to avoid locking user references while queries ran). Because of the problems you describe (assemblies losing their Location and CodeBase), the mechanism was changed in 4.4x so that referenced assemblies have a physical presence when LINQPad shadows them. Try the latest beta – it should fix your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using sharpPDF 1.3.1 (latest non-beta). When creating a table with cellpadding < 3
I'm trying the latest Entity Framework Migrations beta 01 release. It works fine using
I have a small ASP.NET MVC application developed using the latest beta version. What
I have: jquery1.6.min, jquery-tmpl.js (latest beta) and knockout-1.2.0.js. I am using a very simple
I am using the latest beta of Visual Studio 2010 and the Entity Framework.
Is it possible to install the beta iPhone SDK as well as the latest
My latest project is to build a billing system with multiple profile like 100+
I am using the latest NHibernate 2.1.0Beta2. I'm trying to unit test with SQLite
I'm using the latest WPF toolkit , specifically the DatePicker . Everything works fine,
Does anybody using latest enterprise library 4.1 in mono? I used mono migration analyzer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.