Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8640897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:23:23+00:00 2026-06-12T11:23:23+00:00

Having a StorageFolder object and trying to create a folder with a name that

  • 0

Having a StorageFolder object and trying to create a folder with a name that contains a colon somewhere inside (not at the beginning or the end) results in a COM error with HRESULT 80004005 (HRESULT E_FAIL).

Example:
await ApplicationData.Current.TemporaryFolder.CreateFolderAsync(“abc:xyz”,
CreationCollisionOption.OpenIfExists);

If the colon is at the beginning ot at the end I get a HRESULT 8007007b with the message “The filename, directory name, or volume label syntax is incorrect”. That’s fine.

I checked with other invalid chars but only a colon leads to E_FAIL.

This may be a problem if the user enters the folder name. Workaround is of course to simply check for a colon in the filename.

Does anyone know a possible reason for the E_FAIL error? I assume that COM thinks the foldername starts with an URI but can of course not figure out what kind of URI it is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:23:24+00:00Added an answer on June 12, 2026 at 11:23 am

    Well, COM’s infamous error reporting is back with a vengeance. We’ve gotten spoiled from years of .NET’s excellent and informative exceptions but that rug got pulled by WinRT. COM is the underlying interop mechanism and HRESULTs are the way errors get reported.

    E_FAIL is the canonical error code, the only descriptive text you can get with that is “Unspecified error”. Which is accurate, the Microsoft programmer that handled that code could not or did not want to produce a more descriptive error. Another great doozy is E_UNEXPECTED, it translates to “Catastrophic failure”. The term “catastrophic” really refers to the value of the error message if you ever get it.

    Speculating somewhat, the “abc:xyz” path string is actually valid. It refers to an alternate data stream named “xyz”, stored in file “abc”. So checking the path string isn’t going to raise a stink, at first. You are however creating a folder by that name, not a file. A folder cannot have an alternate data stream. Apparently this is discovered very late, too late to still produce a more accurate error code. It should have produced a Windows error and they are wrapped appropriately in a HRESULT by or-ing it with 0x8007000 but that wasn’t done for unguessable reasons.

    No way to send feedback about this, the Windows group doesn’t have the equivalent of DevDiv’s connect.microsoft.com. Good thing you know what caused the error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having some invokeMethod that takes in (java.lang.String method_name, Object[] params, Class[] params_classes) How would
Having pointer to COM interface that are implemented by some concrete component class object
Having a duh moment trying to implement a new content page Here's the structure
Having C++ console utility. The code inside parses the command line input and depending
I'm trying to join a bunch of pages that are in different languages to
Having a bizarre issue that I'm hoping people can shed some like on. When
Having some trouble looping through these arrays , i have 4 properties that identical
Having an issue with a drop-down inside a dropdown login menu using the twitter
Having noticed a small mistake in my C# code (end of line 4): Domain.Models.Patient
Having a weird issue with IE that I've never seen before. A whole bunch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.