While creating mappings using %homedir% I get the above error.
Can you advise please?

While creating mappings using %homedir% I get the above error.
Can you advise please?

Also - when I go back into the setup page I get the following error
Server Error in '/HAP' Application.
An item with the same key has already been added.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: An item with the same key has already been added.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
You cannot add 2+ mappings with the same drive letter currently. You'll want to edit the hapconfig.xml file directly and remove the extra entry.
Drive letters need to be unique
CHR1S (5th December 2012)

I should have been more specific, I have added the drive once, it then gives the "A WCF Error has occurred" it then gives the next error when I go back into the setup page. I dont even try to add another drive, the first add fails.
Thanks
Edit -
I did not add the first mapping, only the second.<mscb hideextensions=".lnk,.ini" writechecks="True" LiveAppId="">
<mappings>
<mapping drive="N" name="%username% " enablereadto="" enablewriteto="" enablemove="False" usagemode="Quota">%homedir%</mapping>
<mapping drive="N" name="Home Directory" enablereadto="All" enablewriteto="All" enablemove="False" usagemode="Quota">%homedir%</mapping>
</mappings>
Last edited by CHR1S; 5th December 2012 at 04:26 PM.
Hmm odd. Are you double clicking on the add button?
Can you try clicking save, not adding the drive, and see what's saved in to the hapconfig.xml file?
CHR1S (5th December 2012)

Weird, deleted both entries, and re added and its working perfectly.
Thanks for your help![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)