MSIX Runtime: support for share folder creation needed.

%3CLINGO-SUB%20id%3D%22lingo-sub-225258%22%20slang%3D%22en-US%22%3EMSIX%20Runtime%3A%20support%20for%20share%20folder%20creation%20needed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225258%22%20slang%3D%22en-US%22%3E%3CP%3ERunning%20a%20MSIX%20package%20on%20a%20domain%20joined%20machine%2C%20logged%20in%20as%20a%20domain%20admin.%26nbsp%3B%20The%20MSIX%20application%20works%20with%20a%20file%20from%20a%20network%20share.%26nbsp%3B%20The%20user%20and%20machine%20accounts%20have%20full%20permissions%20on%20the%20share%20(and%20folders).%26nbsp%3B%20The%20MSIX%20app%20calls%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3BSystem.IO.Directory.CreateDirectory(foldername)%3C%2FP%3E%3CP%3Eto%20create%20a%20folder%20on%20the%20network%20share.%26nbsp%3B%20This%20call%20succeeds%20in%20a%20native%20install%20of%20the%20application%2C%20but%20fails%20with%20a%20ACCESS_DENIED%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225412%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Runtime%3A%20support%20for%20share%20folder%20creation%20needed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225412%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20easier.%26nbsp%3B%20Here%20is%20the%20MSIX%20file%20with%20the%20app.%26nbsp%3B%20One%20would%20launch%20the%20app%20(TMEdit)%2C%20and%20open%20a%20Microsoft%20App-V%20package%20from%20a%20file%20share%2C%20such%20as%20%5C%5Cserver%5Cshare%5Csomefolder%5Cpackagename%5Cpackagename.appv%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20save%20the%20file%20off%20using%20default%20settings.%26nbsp%3B%20This%20would%20attempt%20to%20create%20the%20folder%20%5C%5Cserver%5Cshare%5Csomefolder%5Cpackagename_2%20and%20this%20causes%20the%20access%20denied.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20app%20version%20in%20this%20package%20doesn't%20actually%20trap%20for%20this%20and%20crashes%20when%20it%20subsequently%20tries%20to%20use%20that%20folder%2C%20but%20the%20problem%20is%20the%20access%20denied.%26nbsp%3B%20Your%20test%20team%20can%20re-sign%20the%20package%20to%20test%2C%20or%20contact%20me%20and%20I'll%20send%20the%20self-signed%20cert%20and%20password.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225397%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Runtime%3A%20support%20for%20share%20folder%20creation%20needed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225397%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThis%20sounds%20like%20something%20we%20should%20take%20a%20look%20at%20in%20more%20depth.%20Are%20you%20able%20to%20file%20a%20bug%20through%20the%20feedback%20hub%20using%20the%20%22Recreate%20My%20Problem%22%20option%20to%20capture%20logs%20and%20screenshots%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225364%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Runtime%3A%20support%20for%20share%20folder%20creation%20needed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225364%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Access_Denied%20error%20is%20seen%20in%20the%20procmon%20trace%20of%20the%20application%20when%20it%20makes%20this%20call.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225330%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Runtime%3A%20support%20for%20share%20folder%20creation%20needed.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225330%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Timothy%2C%3C%2FP%3E%0A%3CP%3ECan%20you%20elaborate%20-%20when%20do%20you%20see%20the%20ACCESS_DENIED%20error%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Running a MSIX package on a domain joined machine, logged in as a domain admin.  The MSIX application works with a file from a network share.  The user and machine accounts have full permissions on the share (and folders).  The MSIX app calls:

  System.IO.Directory.CreateDirectory(foldername)

to create a folder on the network share.  This call succeeds in a native install of the application, but fails with a ACCESS_DENIED

4 Replies

Hi Timothy,

Can you elaborate - when do you see the ACCESS_DENIED error?

The Access_Denied error is seen in the procmon trace of the application when it makes this call.  

Hi @TIMOTHY MANGAN

This sounds like something we should take a look at in more depth. Are you able to file a bug through the feedback hub using the "Recreate My Problem" option to capture logs and screenshots?

 

 

This is easier.  Here is the MSIX file with the app.  One would launch the app (TMEdit), and open a Microsoft App-V package from a file share, such as \\server\share\somefolder\packagename\packagename.appv 

 

Then save the file off using default settings.  This would attempt to create the folder \\server\share\somefolder\packagename_2 and this causes the access denied.

 

The app version in this package doesn't actually trap for this and crashes when it subsequently tries to use that folder, but the problem is the access denied.  Your test team can re-sign the package to test, or contact me and I'll send the self-signed cert and password.