Visual Studio 2015: LNK1104 - Root Cause: All folders are "Read Only" - windows-7-x64

I was compiling a DLL and an application, suddenly "LNK1104: cannot open exe" appeared.
On careful analysis, I found that all the folders in my machine (Windows 7 x64) appears to be "Read Only". Changing the property doesn't help.
Can someone help/provide pointer to me in resolving this "Read Only" issue.
Thanks in Advance

It is because our Company policy was updated without any precautions. And the antivirus blocked all .exe files

Related

Mac on Big Sur Eclipse problem with version.ini (Operation not permitted)

After upgrading to Big Sur this weekend, my older version of Eclipse (Mars) I use for a specific project cannot be started. I did the suggestion of updating the vm in /Applications/Eclipse.app/Contents/Info.plist -
Not able to run Eclipse on macOS Big Sur
Now I am getting this error:
!MESSAGE Could not read version file /Users/lorapowell/Documents/MARs
workspace/.metadata/version.ini STACK 0 java.io.FileNotFoundException:
/Users/lorapowell/Documents/MARs workspace/.metadata/version.ini
(Operation not permitted)
The file is there and has date (around when I did the upgrade?)
#Sat Jan 16 23:42:07 MST 2021
org.eclipse.core.runtime=2
org.eclipse.platform=4.5.2.v20160212-1500
My newer version of Eclipse is working fine.
You'll need to ensure you're running a more recent version of Eclipse than that.
The problem specifically shown here is because the Documents folder needs to be opted in to allow access from programs. This can be found in System Preferences, in the Security & Privacy preference pane on the Privacy tab.
You might find that Eclipse is showing in there with a Desktop folder without a checkmark. If that's the case, add the checkmark, then re-launch the application.
After moving the zip files for the referenced build path libraries to under my /Users/profilename and re-expanding them, then updating the .classpath for these, cleaning and rebuilding as well as closing and reopening Eclipse a few times, I got things to sort themselves out. Build works. Older eclipse, but it allows me to connect to my cmvc source project.

Eclipse PDT - Lost content assist. OverlappingFileLockException

I used Eclipse PDT Mars on 2010 Macbook for years - no problem.
I got a 2013 Macbook with latest OS. Transferred everything with migration assistant.
After OS update, I updated Eclipse - because Mars crashed every time I pressed delete with highlighted text on new OS.
I used default startup options for Eclipse 2020.
Sadly - no PHP content assist after update to Eclipse 2020 - "No default proposals."
Errors:
!ENTRY org.eclipse.jface.text 4 0 2020-04-11 00:12:22.371
!MESSAGE Unexpected runtime error while computing a text hover
!STACK 0
java.nio.channels.OverlappingFileLockException
Note: OverlappingFileLockException is repeated many times in log files.
How can I get my content assist to work? I tried changing settings, deleting work spaces.
Thank you.
Thank you #howlger
I reinstalled and created new workspace.
PHP content assist worked - and log has no errors - after I put empty workspace on main disk instead of external flash drive.
I think MacOS Catalina added too much security for external drives.

Visual Studio 2015 Nuget "There is no working folder mapping" Error

When adding the media services nuget package, VS 2015 is giving me errors about having no working folder mapping, then rolls back.
Here is an example of the message:
There is no working folder mapping for C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\lib\net45.
When I open the same solution from VS 2013, it works as expected.
Does anyone know how to resolve the error is VS 2015, or perhaps why it doesn't work there but does work in VS 2013?
(In VS 2015, I opened the solution by browsing to the sln file locally - not by retrieving the solution from source control.)
This is a known bug: https://github.com/NuGet/Home/issues/1004 Use Visual Studio 2013 for now. In the rush to get it out, Microsoft released a product that was not ready, even though technically this is a NuGet issue.
Not a long term solution, but I unbound from TFS, added the packages I needed, then rebound.
Try to unbound the solution and projects in TFS before updating the nuget packages.
To unbound try this
You should be able to avoid the error if you unbound from TFS. To unbound, go to File->Source Control->Advance->Change Source Control. Select the project and click on the Unbound button\link at top.

Eclipse plugin - TFS (Team Explorer Everywhere) not connecting to TFS Repository

I'm running OSX 10.9 Maverick, following a restart I began to see the following message:
"An internal error occurred during: "Refreshing TFS Repository information for https://yourwebsite.visualstudio.com/DefaultCollection/".
The character '
' is not permitted in server paths."
I've tried removing all traces of Eclipse & Team Explorer Everywhere and re-installing it as a clean-version but the error continues.
Here's a list of files/directories I removed..
Users/My-Mac/Library/Application Support/Microsoft/Team Foundation/
Users/My-Mac/.eclipse
Users/My-Mac/Preferences/org.eclipse.platform.ide.plist
Users/My-Mac/Documents/Workspace/
Users/My-Mac/Library/Caches/org.eclipse.platform.ide/
Users/My-Mac/Library/Saved Application State/org.eclipse.platform.ide.savedState
Applications/Eclipse
LOG:
Pastebin of log - http://pastebin.com/XSukZRb2
The error was actually with the machines name!
'My-Mac' contains an hyphin, which seems to cause issues when using TEE. I updated my machine name to MyMac (Preferences -> Sharing -> Update 'Computer Name'). Once the machine name was updated to MyMac, I removed the old Eclipse workspace and added a new one.
TFS loaded correctly this time, no more character issue.
I deeply suspect it is another symptom of the TFS/.NET MAX_PATH problem. We have some very long paths in our enlistment and we keep our enlistment roots limited to 12 characters to avoid exceeding the limit. On this Mac, I enlisted to the default eclipse workspace path, like /Users/apple.dev/Documents/workpspace/abcdefgh. When syncing I hit the error. Tried multiple times with the same result. When I mapped to /abcdefgh. the problem went away.
Alex, for your case, it's entirely possible that removing the '-' in your machine name changed the length of a path string and put you under the limit. Hopes this helps you.
PS: Visual Studio / Team Services folks, I'm ex-Microsoft/DevDiv. Feel free to contact me if you have questions or want to try a private drop.

org.eclipse.swt.SWTError: Item not added

Does somebody know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" is raising againg and again?
I'm using WebSphere Studio Site Developer (Windows) 5.1.0
The only stack trace in the .metadata/log file is:
SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 sep 17, 2008 16:39:00.564
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException: org.eclipse.swt.SWTError: Item not added
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.eclipse.swt.SWTError.<init>(SWTError.java:82)
at org.eclipse.swt.SWTError.<init>(SWTError.java:71)
at org.eclipse.swt.SWT.error(SWT.java:2358)
at org.eclipse.swt.SWT.error(SWT.java:2262)
at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
at org.eclipse.swt.widgets.Menu.createItem(Menu.java:464)
at org.eclipse.swt.widgets.MenuItem.<init>(MenuItem.java:77)
at org.eclipse.ui.internal.AcceleratorMenu.setAccelerators(AcceleratorMenu.java:177)
at org.eclipse.ui.internal.WWinKeyBindingService.updateAccelerators(WWinKeyBindingService.java:316)
at org.eclipse.ui.internal.WWinKeyBindingService.clear(WWinKeyBindingService.java:175)
at org.eclipse.ui.internal.WWinKeyBindingService.update(WWinKeyBindingService.java:267)
at org.eclipse.ui.internal.WWinKeyBindingService$1.partActivated(WWinKeyBindingService.java:107)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:49)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:47)
at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1180)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1833)
at org.eclipse.ui.internal.WorkbenchWindow$7.run(WorkbenchWindow.java:1496)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:1483)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1363)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1263)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1223)
at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:1093)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
I had exactly the same problem. I did not restart my machine, and just used "eclipse -clean" to start eclipse. It worked. Thanks Jon for the hint.
Does restarting your computer resolve the problem with being able to open the workspace? There is a forum post (http://forums.sun.com/thread.jspa?messageID=3131484#3131484) that describes a similar problem with an identical stack trace as the one shown above. In the post, the author mentions that their machine was low on resources (they did not specify what type of resources were running low).
If restarting your computer does not work, you may want to try starting eclipse with the clean option:
eclipse -clean
The clean option will clean out any caches that Eclipse has created.
If all else fails, you may want to open a bug for this problem at https://bugs.eclipse.org/bugs/. Including a copy of your workspace (if possible), and including the stack trace in the bug would be helpful information for the person trying to diagnose the problem.
Good Luck!
Well, some things you can try are:
Delete workspace .metadata dir. Obviously you will lose your workbench configuration.
Rename your .metadata dir. Start Eclipse, and you will have a new .metadata dir. Close Eclipse, delete the new dir, and rename back the original dir. It sometimes works.
HI,
Check the task manager, whether any java process(java.exe or javaw.exe) running even after the closing of workbench. Kill those processes. You will get this error resolved
For me, I think this has something to do with my dual monitor setup and Actual Multiple Monitors that I have installed. I disabled that and the problem is gone.
This worked when I moved the eclipse.ini from the eclipse install folder (where .exe is present). I ran into this problem when I was trying to increase the heap size in the eclipse.ini file (although I had seen this error earlier)