I was writing a simple C program to print “HelloWorld” while using the new improved Visual Studio 2010. Program compiled fine on the first run but I started to get a weird linking error (see title of post) on recompiling later on.
I singled out the problem to a service in Windows 7. Earlier in the week, I disabled a bunch of (unnecessary) Windows service processes to speed up my OS and happened to disable “Application Experience” service as well.
Enabling the service has solved the issue completely. The reason is because Application Experience service is used to process application compatibility cache requests for applications as they are launched.
you sir , are a lifesaver !!
Awesome man, i’ve posted this problem to Microsoft but didn’t got any answer, and now just AWESOME.
that fixed it… had that problem both with c# and c
Pingback Error 1 error LNK1104: cannot open file | GauZ's Weblog
Sir,
Im using windows xp professional sp2 and getting the same error.
But i did’nt find the service “Application Experience” in services.msc in my system.. So could you please help me solve this…
Thanks so mutch, solve my problem perfectly.
This used to work for me but now it has stopped working!! ARGH!!! How can Microsoft allow something like this to be open for 3 YEARS?!
Thanks a lot sir… I was stuck in this problem for year now… You saved tons of my effort.
Thanks so much! I’ve been suffering this problem for months!!!
I’m not getting the LNK1168 error, but I am having issues with something (maybe a windows service?) locking the output files (thereby preventing further builds. It might be McAfee, I know that software is completely insane about executables.. especially when they show in Windows explorer (when you browse to a folder that houses an exe). Not sure yet.
Thanks for posting this !
Thank you! This solution resolved an issue with a client that was randomly unable to rename files/folders.
Uh, In my case (Win 8.1) disabling the service solved the issue… weird!
It did no solve the problem for me.
how do i do that descibe the steps please
Wow. Thank you. I spent 3 days trying to figure out the cause of this problem. I was almost sure it was an Explorer extension or a mini file filter as I noticed sometimes unlreated folders were not deletable for no reason and when viewing a folder in explorer.. I spent countless hours watching dependancies of different processes and monitoring handle counts…. I enabled the Application Experience service and I was able to build in MSVS back-to-back now…
I know this is an old thread…but you have saved me two weeks of tearing my hair out – two windows reinstalls and software reinstalls…all because I disabled Application Experience to cut out unneccesary services! Thank you man and may much good karma come your way.
I think it solved my error renaming and moving files -> file is in use by an other process. I had to wait for about a minute and then it worked. It annoyed me for a looooooong time. For now, it works immediately, no more error.
I wonder how this bug can still be uncorrected after 6 years, unless Microsoft wants to prevent us from stopping the spying service.
Thank you so much!!!