Share via

SharePoint Foundation 6759

Андрей Михалевский 3,471 Reputation points
2024-10-15T08:44:39.3266667+00:00

Hello. I got this error. How to fix it and determine what the problem is ?

I have kaspersky antivirus on the server, but the folder C:\inetpub\ is excluded from scanning.

Exception in the Execute method of the “SPSolutionDeploymentJobDefinition” job definition (identifier “ead738b4-84b5-472e-98df-3fb0355227f2”). The process cannot access the file 'C:\inetpub\wwwroot\wss\VirtualDirectories\MsProjectPwaSp19\web.config' because it is being used by another process.

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

Answer accepted by question author
  1. Yanli Jiang - MSFT 31,681 Reputation points Microsoft External Staff
    2024-10-17T01:54:03.0466667+00:00

    Hi @Андрей Михалевский ,

    Great to know that and thanks for sharing the update here.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [SharePoint Foundation 6759]

    Issue Symptom:

    Hello. I got this error. How to fix it and determine what the problem is ?

    I have kaspersky antivirus on the server, but the folder C:\inetpub\ is excluded from scanning.

    Exception in the Execute method of the “SPSolutionDeploymentJobDefinition” job definition (identifier “ead738b4-84b5-472e-98df-3fb0355227f2”). The process cannot access the file 'C:\inetpub\wwwroot\wss\VirtualDirectories\MsProjectPwaSp19\web.config' because it is being used by another process.

    Current status:

    Thank you. The cause of the error has been found. It was caused by the developer.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community members to see the useful information when reading this thread. Thanks for your understanding!


1 additional answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 31,681 Reputation points Microsoft External Staff
    2024-10-16T01:51:22.8+00:00

    Hi @Андрей Михалевский ,

    Welcome to Q&A forum!

    Are you using SharePoint Foundation 2013?

    The error you're encountering indicates that the web.config file is being accessed by another process, which is preventing the SharePoint solution deployment from completing. Since you mentioned that the C:\inetpub\ folder is excluded from scanning by Kaspersky antivirus, it might not be the cause of the issue.

    Here are some steps you can take to troubleshoot and resolve the problem:

    1. Identify the Process: Use tools like Process Explorer to find out which process is locking the web.config file. This will help you determine if another application is using it.
    2. Restart IIS: Sometimes, simply restarting IIS can resolve file access issues. You can do this by running the command iisreset /noforce in a command prompt.
    3. Check for Other Services: Ensure that no other SharePoint services or applications are running that might be accessing the web.config file.
    4. Review ULS Logs: Check the SharePoint ULS logs for any additional error messages that might provide more context about the issue.
    5. Antivirus Settings: Even though you've excluded the folder, double-check the settings to ensure that no other related folders or processes are being scanned.
    6. Permissions: Ensure that the account running the SharePoint services has the necessary permissions to access the web.config file.

    Hope these can help.

    Good day!


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.