Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHelp Exception being thrown in FCKEditorHelp Exception being thrown in FCKEditor
Previous
 
Next
New Post
7/27/2006 2:21 PM
 

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)

 
New Post
8/13/2006 7:31 PM
 

The error reports a pathtoolong when using the full part.

What do you have as ProviderPath inside the FCKeditor provider configuration section under your web.config?

What is the path where you installed DNN?

You must add the rootfolder + /GriffinWebSite/Providers/HtmlEditorProviders/FckHtmlEditorProvider/FckTemplates/ImageBrowser/Default/TemplateData.resx"

to count


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHelp Exception being thrown in FCKEditorHelp Exception being thrown in FCKEditor


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out