Build/Rebuild on VS 2017 cause warning "Unable to delete file. Access to the path is denied."

Add-in Express™ Support Service
That's what is more important than anything else

Build/Rebuild on VS 2017 cause warning "Unable to delete file. Access to the path is denied."
 
May Wolfgang




Posts: 17
Joined: 2013-05-09
Hello,

My scenarios is:
- I create a new project with Visual Studio 2017, using the last version of Add-in Express.
- I register the dll from Visual Studio.
- Then, after each modification, I made a build/rebuild to see the changes
- If I do not "unregister" before build/rebuild, then I receive this error:
'Unable to delete file "..\bin\Release\MyAddin1.dll". Access to the path '..\bin\Release\MyAddin1.dll' is denied.
- No office launched that can use the dll.

This is normal?
It does not happened when I used previous version of Visual Studio and also an old version of Add-in Express.
Posted 05 Oct, 2018 02:10:44 Top
Andrei Smolin


Add-in Express team


Posts: 16656
Joined: 2006-05-11
Hello Wolfgang,

May Wolfgang writes:
No office launched that can use the dll


That is, no host Office application of your add-in is listed on the Details tab of the Task Manager window?

What is the host application(s)? OneNote?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2018 04:25:47 Top
May Wolfgang




Posts: 17
Joined: 2013-05-09
The developed project(where I found the warning) is for MS Outlook.
But then, I created a sample project, a new ADX COM Add-in for MS Word.
I found the same warning. No Office Word opened.
Posted 05 Oct, 2018 04:55:13 Top
Andrei Smolin


Add-in Express team


Posts: 16656
Joined: 2006-05-11
Is this a warning or error? If it is a warning and if the project builds correctly, we saw it on our machines previously; google mentions it many times. We assume this issue can be safely ignored. Also, it looks like they solve it as we are unable to reproduce it any longer. Try to update your Visual Studio 2017; it is 15.8.5 on my machine.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2018 05:34:12 Top
May Wolfgang




Posts: 17
Joined: 2013-05-09
Yes, it is a warning. My Visual Studio 2017 is also 15.8.5 version.
And after the build, the DLL is builded. If I want to delete from the source folder, by hand, I can do that.
So, I will ignore that warning, till a new version of VS.
Thank you for your response.
Posted 05 Oct, 2018 06:06:23 Top
Andrei Smolin


Add-in Express team


Posts: 16656
Joined: 2006-05-11
You are welcome.

It's strange that we saw this issue previously on our machines and we are unable to reproduce it now.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2018 06:36:41 Top