Visual Studio issue

GRoston

New member
Power User
VIP
Local time
4:19 PM
Messages
374
I use Visual Studio 2015 and am creating a simple program; however, some really weird crap is happening.

If open VS, build the program, the run it. No problem. However, if I then edit the program and click build, that fails because it cannot access the .exe file because of ownership issues. If I then open file explorer and try to reset the owner of the folder (and subcontainers and objects) that is denied because I an not the Administrator. If I try to make sure all the files are not readonly, that is again denied because of ownership.

However, after a minute or two, this issue goes away. This issue is clearly making development a nightmare, but I haven’t a clue as to how to resolve the issue. Any suggestions?
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK
Start by having a look at the command line output from the compiler and see what error messages are there. Look at the output window and post here any errors you got there and any other message you see.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
so whats the .exe
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
medionl/Aspire 6930G/acer x55a
OS
W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
CPU
E5300 dual core
Motherboard
medion MS7366
Memory
3gb
Graphics Card(s)
Nvidia Geforce 7100 Nforce 630i
Monitor(s) Displays
avixc
Internet Speed
n (isp resticted to 72)
Antivirus
mse/pands
Browser
palemoon
Other Info
Belkin Fd7050 n USB using Railink RT2870 drivers, more upto date
In response to Alejandro85:
Severity Code Description Project File Line Suppression State
Error Could not copy "obj\Debug\dailyKillerConvert.exe" to "bin\Debug\dailyKillerConvert.exe". Exceeded retry count of 10. Failed. dailyKillerConvert
Warning Could not copy "obj\Debug\dailyKillerConvert.exe" to "bin\Debug\dailyKillerConvert.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'bin\Debug\dailyKillerConvert.exe' because it is being used by another process. dailyKillerConvert

The error message repeated 10 times
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
medionl/Aspire 6930G/acer x55a
OS
W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
CPU
E5300 dual core
Motherboard
medion MS7366
Memory
3gb
Graphics Card(s)
Nvidia Geforce 7100 Nforce 630i
Monitor(s) Displays
avixc
Internet Speed
n (isp resticted to 72)
Antivirus
mse/pands
Browser
palemoon
Other Info
Belkin Fd7050 n USB using Railink RT2870 drivers, more upto date
torchwood: Thank you, but... I am not making a web project.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK
Warning Could not copy "obj\Debug\dailyKillerConvert.exe" to "bin\Debug\dailyKillerConvert.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'bin\Debug\dailyKillerConvert.exe' because it is being used by another process. dailyKillerConvert

This seems like a resource leak. In the initial post you mention that you run the project, the modify, recompile and this breaks.
My suspicion is that the first run of the code didn't actually finished running when you expect, thus leaking that running process, which in turn keeps the .exe locked, which in turn prevents the compiler from overwriting with the new one. You can check if that's the case with task manager, you will find a process named as your program there. Killing it would allow to compile for the next time.

If you confirm that being the case, it may indicate a bug in your program, not finishing the process when it should.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Hate to disagree, but... VS clearly showed the message "Build succeeded" before I did anything else, so this means (I think) that the compiler finished running. The program itself has no bugs - it is a rather simple program. I also know that it finished, because the last line is Me.Close.

Also, when I look in Task Manager, there is no process with my program's name running.

Not sure if this is related at all, but when I run VS and then exit is, a process called Microsoft.VsHub.Server.HttpHost.exe is still running. When I run Excel and try running a VBA macro, Excel shuts down immediately. However, when I kill this process, Excel works as expected.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK
Back
Top