Opened Templates result in Invocation Error due to missing files - c#

Whenever I attempt to open any Unity Template in order to create a new project, the importing process is interrupted by a compilation error, that prompts me to go into Safe Mode. Upon opening Safe Mode, I am confronted with 99 error messages, all in the style of
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\[myuser]\Library\Bee\artifacts\mvdfrm\Unity.VisualScripting.TextureAssets.dll_4E2F4234F69DBB7F.mvfrm'.
However, my project directory is not in that location. I have tried installing Unity on 3 different drives (2SSD, 1HDD; clean reinstall including deleting %appdata% files and Registry keys). I have also tried creating different projects (2D & 3D) in several locations. All with the same result. Copying a friends /artifacts/ directory did not solve the issue either. Upon closer inspection, I discovered that the files in question are indeed in the project\Bee\artifacts\ folder during the working installation/import and then disappear upon error message.
At this point I have tried reinstalls of Unity, UnityHub, several restarts and clean reinstalls. I tried reimporting Assets via Unity Menu, deleting singular folders in order to force a reimport, a manual reimport, manual editing of manifest.json, deleting and reinstalling packages via Package Manager all with the same result or lack thereof.
Version: 2021.3.6f1
OS: Windows 10 Build 19044.1826
I have worked successfully with Unity on this same PC before and no other programs have ever had any problems. At this point the problem just doesnt make any sense to me anymore, I appreciate every help I can get.
Thank you
EDIT: It appears to have been caused by Anaconda, which destroyed my entire primary drive during its deinstall. After fully resetting Windows and reinstalling virtually everything, Unity finally works.
However, I still dont know the exact cause of the problem, nor a solution that does not involve the nuclear option.

Related

Cannot open SteamTrade.dll for writing. Access to the path is denied

I get the following error:
Severity Code Description Project File Line
Error Cannot open 'D:\Programming\SteamBot\SteamTrade\obj\Debug\SteamTrade.dll' for writing -- 'Access to the path 'D:\Programming\SteamBot\SteamTrade\obj\Debug\SteamTrade.dll' is denied.' SteamTrade D:\Programming\SteamBot\SteamTrade\CSC
I'm unable to compile the source with Visual Studio 2015 Community Edition on Windows 10.
After searching the internet the majority of the answer was to disable malware protection. I'm using Bitdefender Total Security 2016. First I tried to add an exception to the folder, after that even tried to disable the product, but still nothing. I can't get the project to build, failing with the same exact error.
Any idea?
Edit 1:
Still no idea. If I would be on Linux or on Drive C, I could imagine that I have actually no permission to write, but on Windows on drive D, there is no such thing. Today I'll be trying to compile it on a Virtual Machine to be sure that it's not my antivirus program. Still any suggestion is welcomed.
Alright, so after trying out everything I decided to try it on a virtual machine and it work from start. Then I tried it on a new source on my computer then it worked.
I was quite surprised why, so I removed the exception in the anti virus software, then it didn't work anymore. So I added the exception again, but it still didn't worked. So what I did next is downloaded the source in a new folder and added to the exception before I tried to build it then it worked.
Solution:
So the short answer is if you want to make it work, you get the source from git, then add it to the exception in your anti-virus software and only then you try to build it, because if you build it beforehand it won't work no matter what. This is probably related to Bitdefender Total Security 2016, but at least it started working.

"The path .. would result in a file outside the App Bundle and cannot be used" Error, mono touch / Xamarin

i am currently facing a really weird and annoying error message after migrating my Xamarin.IOS - Project to the 64bit unified - API. The exact error message is:
/Users/falcowinkler/Dev/AHK_App -Kopie/AHK_App_iOS/../ahk_app_ios/resources/.DS_Store:
Error: The path '../ahk_app_ios/resources/.DS_Store' would result
in a file outside of the app bundle and cannot be used. (AHK_App_iOS).
I get that error not only for .DS_Store but also for two other files.
Here are the things i tried.
Clean / Rebuild
delete bin / obj Folder and rebuild
I deleted the files that throw the error, just to get another message that the project is missing these files. I added them again after that, and got the same error as above again
I tried moving my project to other locations, but the error does not change in the slightest.
I tried to remove all problematic files, before migrating, which didn't work as well.
Does anybody know where all the file references are stored in Xamarin, so i can view/edit them to find out what the error is?
I mean the DS_Store file is just a tiny file from mac - finder architecture, is not even necessary for my project, but still it is referencing it, i will just have to kick out these references i guess.
If anybody encountered these issues as well, and has a solution, pls leave a quick post here, thanks :)
Update
I am now pretty sure that there are some misplaced references to files in my project, i saw a similar issue on git hub. But how can i wipe them out? I tried removing my entire resources Folder and adding it again, but it didn't help either. Error message now looks as follows:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:
Error: Bundle Resource '../ahk_app_ios/resources/.DS_Store'
not found on disk (should be at '/Users/falcowinkler/Documents/AHKKopie/ahk_app_ios/resources/.DS_Store') (AHK_App_iOS)
If anyone else has this problem, just search your project files for the filename. The .csproj File will appear, where you will be able to wipe out the reference to the file, causing the problem.
If you are using Xamarin Studio, you can delete the .DS_Store under your Ios project [ProjectName.iOS] under the Resources folder

Why does Rebuild ALL Fail after moving solution folder to a different location?

I have a C# web application that I've been working on which has built properly since I began working with it. I moved the entire solution into a different folder, and now, when I try to build it says "Rebuild All failed" with no other errors. I have reviewed the verbose output from build; but, I don't see anything that jumps out at me as causing the problem. If I move the solution back to the original location, it will build again. Anyone know why the new location breaks the build?
Thanks.
The most likely cause of this error is that the location you are moving the solution to is not trusted.
For example, if you move the solution to a protected folder like C:\Program Files or C:\Windows or a network location.
If this is not the case, please advise where you are moving the file too and perhaps share any errors from your build log.
I believe I found it- turns out, moving it several directories deeper may have blown the maximum path size for NTFS (see this question: VS2010 - same soltuion (IE SVN checkout), different locations, one builds, one fails any ideas?). I moved my project to a root directory in c: and now it's compiling normally in VS2010.
A friendlier error would have been nice; but, hey, what can you do?

Setting up 32feet library

I'm trying to get started with this library: 32feet
I have a Broadcomm Bluetooth Stack and haven't been able to figure out how to get this library set up. When I run my code, I get:
Unhandled Exception: System.PlatformNotSupportedException: No supported Bluetooth protocol stack found.
After digging around on their site, I found this: Installation instructions
It says to copy the appropriate DLL's into the project and then run the Test32FeetWidcommWin32.exe. I've tried putting the files in every single folder in my Visual Studio project and then running that EXE, but I still get the same error. Initially I tried just adding the InTheHand.Net.Personal.dll file as a reference to my project, but that didn't work either.
What could I be doing wrong?
It may also simply be that BlueTooth is not turned on in Windows.
I was using the .NET InTheHand library, and received this message only because BlueTooth was turned off in Windows, and resolved it by activating BlueTooth.
I just solved this. I think the problem was an old reference in my project to the NETCF version of the DLL from when I was trying to brute-force a solution, so I wiped my project clean and then started adding everything again and it worked!
A helpful tool to those trying to figure out their problem with this is to copy and paste the app.config file into your release directory with the app you are creating, and change the name to <YOUREXENAME>.exe.config. When you then run your EXE file, it should create a more detailed trace file. For mine, I found that coredll.dll was the culprit by not loading and was masked by the Stack not supported exception. After an easy Google search I found the problem to be with NETCF.
edit: To be clear, after I cleaned out my project a bit I re-added the reference to the correct InTheHand.Net.Personal.dll file and also added the 32feetWidcomm.dll file to my Release folder.

The "WireUpCoreRuntime" task failed unexpectedly Visual studio 2017

I am developing UWP application for remote device using VS17. I suddenly got this message
Error The "WireUpCoreRuntime" task failed unexpectedly.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Microsoft.Build.Net.CoreRuntimeTask.WireUpCoreRuntime.InternalExecute()
at Microsoft.Build.Net.CoreRuntimeTask.WireUpCoreRuntime.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() DataManagementApp
And I am stuck at this error for about week. I dont know what cause it. Last thing that I made was that I move GPIO routines to external library. After that, each build ends with this message.
What I tried:
Turn off antivirus
Redo last update (library is working on other similar solutions)
Redo several last changes in build
update VS, repair VS and repair SDKs
update versions of libraries
reboot target device
build project on other PC (with fresh VS), copy code on brand new project and
run it on my or other PC
get rid of anything that using Linq library in code.
Run VS as administrator
With no success at all. I will be very happy if anyone will help me with solving this problem.
I messed up with appxmanifest file. I use AppServices for background work. In this example they have got some changes in appxmanifest file, but they suddenly throws error.
<Application Id="AppServicesProvider.App"
Executable="$targetnametoken$.exe"
EntryPoint="AppServicesProvider.App">
Have to be simplified into
<Application Id="App">
And it throws no error anymore.
I experienced the same error renaming the Assembly name for a UWP application.
I discovered you also need to open Package.appxmanifest and change the Entry point to the same value you used in Assembly name.

Categories

Resources