When I try to use the FTB Editor to create a link a PathTooLongException error is thrown and
when I try to use the FckEditor a PathTooLongException error is thrown when this function:
Private
Function GetFCKTemplateValue(ByVal pPart As String, ByVal pName As String, ByVal pType As String) As String
Dim tfile As String = ProviderPath.TrimEnd("/"c) & "/FCKTemplates/" & pType & "/" & pName & "/TemplateData.resx"
Return "" & DotNetNuke.Services.Localization.Localization.GetString(pPart, tfile)
End Function
is called. The exception is thrown when the Return value is set with the call to DotNetNuke.Services.Localization.Localization.GetString(pPart, tfile). The tfile variable is "/GriffinWebSite/Providers/HtmlEditorProviders/FckHtmlEditorProvider/FckTemplates/ImageBrowser/Default/TemplateData.resx"
That path is only 120 characters, so I don't understand why an exception is being thrown, I have included a copy of the stack trace below.
System.IO.PathTooLongException was unhandled by user code
Message="The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
Source="mscorlib"
StackTrace:
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
at System.Web.InternalSecurityPermissions.PathDiscovery(String path)
at System.Web.Caching.CacheDependency.Init(Boolean isPublic, String[] filenamesArg, String[] cachekeysArg, CacheDependency dependency, DateTime utcStart)
at System.Web.Caching.CacheDependency..ctor(String[] filenames, String[] cachekeys, CacheDependency dependency)
at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, CacheDependency objDependency, DateTime AbsoluteExpiration, TimeSpan SlidingExpiration, Boolean PersistAppRestart)
at DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject, CacheDependency objDependency, DateTime AbsoluteExpiration, TimeSpan SlidingExpiration, Boolean PersistAppRestart)
at DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject, CacheDependency objDependency, DateTime AbsoluteExpiration, TimeSpan SlidingExpiration)
at DotNetNuke.Services.Localization.Localization.LoadResource(Hashtable target, String language, String cacheKey, String ResourceFile, CustomizedLocale CheckCustomCulture, PortalSettings objPortalSettings)
at DotNetNuke.Services.Localization.Localization.GetResource(String ResourceFileRoot, PortalSettings objPortalSettings, String strLanguage)
at DotNetNuke.Services.Localization.Localization.GetString(String name, String ResourceFileRoot, PortalSettings objPortalSettings, String strLanguage)
at DotNetNuke.Services.Localization.Localization.GetString(String name, String ResourceFileRoot)
at DotNetNuke.HtmlEditor.FckHtmlEditorProvider.FckCustomEditorWrapper.GetFCKTemplateValue(String pPart, String pName, String pType) in G:\Documents and Settings\jfeyes\My Documents\Visual Studio 2005\WebSites\GriffinWebSite\Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKHtmlEditorProvider.vb:line 524
at DotNetNuke.HtmlEditor.FckHtmlEditorProvider.FckCustomEditorWrapper.LoadFCKCTLSettings(Boolean mAdmin) in G:\Documents and Settings\jfeyes\My Documents\Visual Studio 2005\WebSites\GriffinWebSite\Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKHtmlEditorProvider.vb:line 689
at DotNetNuke.HtmlEditor.FckHtmlEditorProvider.FckCustomEditorWrapper.Page_Load(Object sender, EventArgs e) in G:\Documents and Settings\jfeyes\My Documents\Visual Studio 2005\WebSites\GriffinWebSite\Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKHtmlEditorProvider.vb:line 536
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I belive there is a problem with DotNetNuke.Services.Localization.Localization.GetString function, it seems that when ever this routine is used to get the value from a resource file this exception is thrown. I am using the latest DNN 4.3.3. Am I the only one having this problem.
Please Help