Hey,
I was using Monodevelop for some time(~4 months) and everything was perfect until this week.
Now whenever I try to Run a console project I get this error: /usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3021: Unable to copy file "obj/x86/Release/AppName.exe" to "bin/Release/AppName.exe". Access to the path is denied. (MSB3021) (AppName).
The strange thing is that when I go to the folder bin/Release I DO find the AppName.exe. so I used manually mono AppName.exe to run the app.
An other problem is that in Godot mono I have the same error :/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(4215,5): error MSB3021: Unable to copy file ".mono/temp/obj/Tools/GodotTestAA.dll" to ".mono/temp/bin/Tools/GodotTestAA.dll". Access to the path is denied. when I try to run a scene, so I can't even try my game.
I thought that the problem is from my installation of mono or monodevelop so I completely purged both of them and reinstalled them again, but nothing.
I also tried to run Godot mono as root(as root not with administrative rights), it worked but I know that it isn't good to run apps as root so I decided to look for another solution in the monodevelop forums, godot forums and here, but the only thing that I found is: Unable to copy file, Access to the path is denied but the post was 8 years old and any of the solution worked
Note: I am on Ubuntu(PopOS exactly).
I will really appreciate your help ;)
After I did some more research and tests I found that the problem is from my drive file format, mono(for some reasons) is not compatible with exfat file format.
So to fix the problem you will have to move your project to an ext drive.
Related
I'm at a complete loss as to what to do. Every time I try to build my project in Visual Studio 2015 I get an error saying,
Unknown build error, 'This file is currently not available for use on this computer.'
It does not name the file nor give me any clues whatsoever as to what the issue is. I've deleted my obj and bin folders to no effect. I've restored a backup from earlier this morning and it also happens in this project as well.
Has anyone come across this problem before?
You can troubleshoot missing file problems with SysInternals Process Monitor.
Set a filter on the process that causes the issue.
Reproduce the issue
Save the result as XML
Get ProcMon Log Analyzer - Disclaimer: I'm the author of the tool
Analyze the XML
Why do it like that?
When loading DLLs, Windows may look in the current directory first, then in PATH and then in Windows system32 directory. All the unsuccessful accesses will be traced, even if the DLL is finally found.
ProcMon Log Analyzer will find out whether the loading of a file was finally successful or not and how many attempts it took.
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.
I am trying to convert my nunit xml tests to html but I cannot get NAnt running
When I try to launch NAnt manually I get this right away followed by a Nant stopped working pop up:
The First Type of permission failed was: System.Security.Permissions.FileIOPermission
Unhandled Exception: System.Reflection.TargetInvocationException
I get a similar result when I try to start it's proccess in c# which I need to do in the end.
I made a build file from this website and I also tried their steps manually: http://ajeeshvl.wordpress.com/2010/11/16/converting-nunit-xml-test-result-to-html-formatc-seleniumrc-nunit-framework/
I tried moving the build file to the same folder as NAnt.exe and in the downloaded nunit2report file but that didnt make it work either.
It's very confusing to use NAnt and I still can not find Nunit2Report console exe(if there is one) and I've been trying to find clearer steps online.
My NAnt version is 0.92
And I am using Windows 8 as my OS
Thank you
Can you right click on the downloaded zip file for NAnt and unblock it. Then extract it and try. This was the issue I got on Windows 7.
Nunit2Report console exe is a part of nantcontrib. You will have to download it.
http://nantcontrib.sourceforge.net/
Recently I wrote a small winForm program using C# language. In the app I use C# to invoke a "*.dll" file written in C++. It works all right in my Visual Studio 2012 and on my computer, but when I move it to other computer, it always pops an error about “ Unable to load DLL ' *.dll',can not find specified module.(Exception from HRESULT: 0x8007007E). ”.
I've searched the internet for solution. There are also some similar questions regarding problems that others met and it seems that they also have not found the right solution yet. I also tried some methods like moving my '*.dll' file to windows\system32 or write the app current directory to System Enviroment Variable, but this also didn't work.
Now I really don't know how to deal with it. So I'll be very appreciative if someone could give some help.
I'm new here and thanks very much.
Pretty old post but shows up first in Google so I am gonna post my solution to the issue: I was writing a minimal DLL in C++ which I integrated in a minimal C# console application and got the same error that you stated above. The final fix is simple: Your target PC might not have the appropriate VS redistributable package installed. In my case (VS 2013) it was this one here: http://www.microsoft.com/en-us/download/details.aspx?id=40784 for some reason it does not work to copy the required DLLs from the system32 folder manually... what a freak bug taking me half a day to find out. I did not find this anywhere online, will do some cross-posting now...
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.