1

Resolved

System.IO.DirectoryNotFoundException when template directory does not exist

description

As reported by Tony F:
 
A colleague found this bug in your Dynamic Templates plugin. I sent him a template and he installed the plugin and then tried to install the template. The error he got was:
 
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Documents and Settings\hodginw\Application Data\wlwtemplates\OCOT - Audio - Podcast.wlwtemplate'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 
I suspect that the template installation code requires the directory to exist. I also suspect that you missed this because most people try to create a template before trying to install one. If you create a template, the directory gets created.

comments

jcheng wrote Sep 20, 2007 at 11:45 PM

Fixed in change set 7291.

wrote Sep 20, 2007 at 11:45 PM

wrote Sep 20, 2007 at 11:45 PM

wrote Feb 12, 2013 at 9:00 PM

wrote May 15, 2013 at 12:21 AM

wrote May 15, 2013 at 12:22 AM

wrote Jun 12, 2013 at 12:19 AM