Service Manager 2019 - Error when exporting management pack

Chris.Pierce 101 Reputation points
2021-08-24T21:34:18.117+00:00

This afternoon, when I tried to export a management pack from the SCSM 2019 console, I received the error below.
I have exported MPs numerous times without any issue.
The error talks about 'access denied' but I have full admin rights on the server. I am able to save other files to the same folder from different applications.


126149-image.png


Date: 8/24/2021 4:16:24 PM
Application: System Center Service Manager
Application Version: 10.19.1035.101
Severity: Error
Message: An error was encountered while running the task.

: Failed to open file or the specified XmlWriter object.
Access to the path '[ ]' is denied.
System.UnauthorizedAccessException: Access to the path '[ ]' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
at Microsoft.EnterpriseManagement.Configuration.IO.ManagementPackXmlWriter.OpenWriter(ManagementPack mp)


Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
237 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 18,771 Reputation points
    2021-08-25T08:56:09.757+00:00

    Hi,

    For testing purposes, we could grant everyone full control to this folder.

    Open the file explorer.
    Go to the location of the folder.
    Right click and select properties.
    Click on Security
    In the "Permissions" tab, add everyone and grant full control to the folder.
    Click Apply.

    1 person found this answer helpful.

Your answer

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