question

00chrispierce00 avatar image
0 Votes"
00chrispierce00 asked XinGuo-MSFT commented

Service Manager 2019 - Error when exporting management pack

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)




msc-service-manager
image.png (69.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XinGuo-MSFT avatar image
1 Vote"
XinGuo-MSFT answered XinGuo-MSFT commented

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Interesting. That seemed to work. Not sure why that was necessary. Oh well.

Thank you!

Chris

0 Votes 0 ·

So it seems that there should be a lack of certain permissions.
To narrow this problem, we can try to remove everyone, and individually add permissions to the current user/SCSM service account/machine account.

0 Votes 0 ·