Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Not Found Exception in UWP projects #20

Closed
Nicolaasjvv opened this issue Jan 18, 2017 · 3 comments
Closed

File Not Found Exception in UWP projects #20

Nicolaasjvv opened this issue Jan 18, 2017 · 3 comments

Comments

@Nicolaasjvv
Copy link

Nicolaasjvv commented Jan 18, 2017

When porting a Windows 8.1 Universal app to Windows 10 UWP, we suddenly started getting File not found exceptions for classes using the priority queue. I tested it in isolation, creating a new project, referencing the latest PriorityQueue library (4.0.0) obtained through NuGet, and we still get the same.

Here are some details:

When does this happen
During run time, whenever a priority queue object is instanciated. Otherwize, the project builds just fine.

What happens

A file not found exception is thrown, here is the complete message:

An exception of type 'System.IO.FileNotFoundException' occurred in TestApp.exe but was not handled in user code

Additional information: Could not load file or assembly 'Priority Queue UWP, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

How is the code used.

Just a simple initializer will do, see this sample:
TestPage.txt

Additional info
For Windows 10 UWP, the following target platforms and minimum versions were specified during project creation.

targetplatform

I cannot think of a reason for this to happen, all the files are safely where they should be, although with windows 10 projects, all NuGet packages are stored on disk under C:/{UserName}/.nuget/packages. All files are present.

@winterscar
Copy link

I'm experiencing the same issue with the exact same configuration.

@BlueRaja
Copy link
Owner

BlueRaja commented Mar 5, 2017

Looks like a versioning issue? You say you're using the latest version (4.0.0) but that error says it's looking for version 3.0.0. Try searching for Priority Queue UWP, Version=3.0.0.0 in your project/solution files and see what turns up.

@BlueRaja
Copy link
Owner

BlueRaja commented Mar 5, 2017

I've added support for both .Net Standard 1.0 and PCL net40+sl5+win8+wpa81+wp8 in version 4.0.2. If this was caused by the library not supporting the correct framework version, it should be fixed now.

Please reopen if you encounter this issue again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants