I'm trying to implement face recognition in C# using FaceRecognitionDotNet package and I load the files that I think are needed (.dat files) but all the time it says file not found. I have tried to catch the exception but it doesn't return the name of the file that is missing so I don't know what I have to fix
This are the files that I have.
This is the exception I get.
I tried adding and downloading files many times but it doesn't work
Related
Error when loading Image
I have now gotten this error multiple times after accessing my project on a different computer then coming back to my laptop.
I tried finding a solution online to this error but could not find anything about this specific error. I cleared the unity cache and other project settings to try and fix this issue based on similar issues.
Edit
Moved answer from the question to the posted answer.
After doing some tests I found that this problem can be solved fairly easily. To fix/go around this issue,
Go to the location of the bundled package that is listed in the error. There will be a bunch of .tgz files.
Copy the .tgz file that is showing in the error message (in this instance it is com.unity.adaptiveperformance-2.1.1.tgz).
Navigate then to: C:\Users\<username>\AppData\Local\Unity\cache\npm\packages.unity.com
Make a folder in this directory named without the version number and extension (folder name in this instance would be com.unity.adaptiveperformance).
Enter this folder and create a sub-folder with the given version number (this instance 2.1.1).
Paste the .tgz file that you copied before into this folder and rename it package.tgz.
Open the .tgz file or extract the file to the version number folder you created. Image of final directory path and files
My understanding of this problem is that after syncing data between my main computer and my laptop made it to where the package data would be regenerated on my laptop. When this occurred, my laptop would not be able to extract a given package from unity's compressed packages for the editor. This caused me to have to manually extract that given package into the unity cache. (Note: syncing was done through onedrive)
After you have added the file, close and relaunch the unity project and it should pass this error without issue. I thought I should post this issue and the solution I found for others that may find themselves with this same issue.
Today im having issues with the Monogame content pipeline, I tried building a .spritefont file, it did not throw any errors when building, but I get the following error when I run it:
Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found. ---> System.IO.FileNotFoundException: Could not find file "/home/unrhypercam/Monogame/Engine3/Engine3/Engine3/bin/Debug/Content/Debug.xnb"
As far as I know, this file is supposed to be generated automatically,
I also did not use the normal content pipeline, but the MGCB editor provided by Monogame
I cant seem to find anything on the subject, any info would help
Edit: I fixed the content pipeline, and it is not the problem, any help would be appricieated
You are correct in guessing that .xnb files should be generated automatically in your folder. I am assuming this exception is being thrown only at your code, and the Content Pipeline builds all your content without any errors. This can be due to that fact that the path to your content file inside your code is different than the path the content file is actually being exported to.
You should check inside the \bin folder inside the folder your Content.mgcb file is, and compare the path of your "Debug.xnb" file to the one you are using in the code. Since the content pipeline's export path can be easy to mess up, it's better to check in the \bin folder and correct the path inside your code
So I have this SSIS package that has a script task that is copying files to a destination and then putting their data into C# data structures to parse later. However, it runs through the first file and then suddenly I get this exception from a try catch in my main method stating:
Error: 0x12 at Copy xxx Files to New Destination, there was an exception :<
which said: : Could not find file 'C:\Program Files\Microsoft SQL
Server\130\DTS\binn\xxx370xxxxx_xxx.rpt'.
the thing that caught my eye is that the file path changed from a different place, I don't store anything in the sql server binn folder...
Question:
Could the file path it's trying to read from not be the Bin file and that exception is reporting this folder because of some underlying reason,
in addition
Have any good advice for debugging a broken package with C# script tasks?
I am new to this project and don't have much to lean on for figuring it out and debugging C# code in BIDS is seemingly very not intuitive. (doesn't hit breakpoints, can't step through my c# code.)
Posting this as proposed answer, said below by Martin Smith:
It won't be making it up. Your code is trying to find a file there. I would imagine that C:\Program Files\Microsoft SQL Server\130\DTS\binn is a default working folder location and somewhere you are just using a file name instead of a full path.
I'm programming in c#, trying to read text from a file to create a map for a game that I'm making, but for some reason I keep getting the following error:
Could not find a part of the path
'F:\TiledLevel01\TiledLevel01\bin\x86\Debug\Content\Map.txt'.
Can anyone tell me where I may be going wrong? Thanks in advance!
Presumably that file exists in your project, so highlight the file in Solution Explorer, hit F4, and set its Build Action to Content. That will copy the file to the output folder on build.
I'm trying to integrate CLIPS with visual studio, I'm using CLIPS.Net, and I have a problem with the load function, I get Exception
Failed to load file 'test.clp'
I tried to replace my file with the file in the samples, and I get the exception again! my file is working in the Clips and I have tested it.
Can you help me please?
Have you tried specifying the full path to the file?