none
Task Sheduler

    Question

  • Hey All,

    One of the my Project [Desktop application] which is developed in vs 2010. I am install new vs 2013 so  the project working fine.in my project i created a set up which have task scheduler which is working fine with vs 2010 old set up But right now i am started code in vs2013 and Build new setup everything is working fine to install new setup but task is not created with task scheduler. the Following warning is shown while debug the code. please help me.


    Warning    1    Unable to delete file "E:\Mihirs Domico\domicoloader\eDomico.Sync\eDomicoInstaller\obj\Release\Interop.TaskScheduler.dll". The process cannot access the file 'E:\Mihirs Domico\domicoloader\eDomico.Sync\eDomicoInstaller\obj\Release\Interop.TaskScheduler.dll' because it is being used by another process.    eDomicoInstaller

    • Moved by Kristin Xie Tuesday, December 8, 2015 9:48 AM
    Friday, November 27, 2015 1:50 PM

Answers

All replies

  • This means that your dll is being utilized by another application.  Because this is happening during the build, Visual Studios is trying to delete the specific file, but because another application has a lock on it, windows is preventing it from being deleted.

    I find typically restarting Visual Studios will release what hold there is on the dll.  If not, then try looking at this:

    http://superuser.com/questions/117902/find-out-which-process-is-locking-a-file-or-folder-in-windows

    Friday, November 27, 2015 2:00 PM
  • Are you still running your application?

    Stop it before installing the new version.


    Hope that helps.

    Technet articles: WPF: MVVM Step 1; All my Technet Articles

    Friday, November 27, 2015 4:06 PM
  • C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(2212,5): warning MSB3305: Processing COM reference "TaskScheduler" from path "C:\Windows\SysWOW64\taskschd.dll". At least one of the arguments for 'IRegisteredTask.GetRunTimes' cannot be marshaled by the runtime marshaler.  Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.
    3>  eDomicoInstaller -> E:\Mihirs Domico\domicoloader\eDomico.Sync\eDomicoInstaller\bin\Release\eDomicoInstaller.dll

    This is Warning i got while i am build the setup.so it no create task in task scheduler

    Monday, November 30, 2015 9:40 AM
  • Hi Mihir.Patel,

    Sorry for my late reply.

    This forum is discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.

    >>Build new setup everything is working fine to install new setup but task is not created with task scheduler.

    Based on your description, this is not a C# code issue, I am afraid this is out of our support scope.

    To better help you,  I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, December 8, 2015 9:47 AM
  • You might try them over here.

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsgeneraldevelopmentissues

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Tuesday, December 8, 2015 1:50 PM
    Moderator