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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Exception being thrown in FTB Editor and FCK EditorException being thrown in FTB Editor and FCK Editor
Previous
 
Next
New Post
7/27/2006 5:08 PM
 
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

 
New Post
7/27/2006 7:55 PM
 

Hi

A user contacted me about a similar behavior a few months ago.

Your path: "/GriffinWebSite/Providers/HtmlEditorProviders/FckHtmlEditorProvider/FckTemplates/ImageBrowser/Default/TemplateData.resx"

but, you must include the root:

c:\myfolder\...\..\+ your path

I mean, the directory where your DNN resides

And, .net add some other chars too. You can see more info here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=177902&SiteID=1

I am searching more info about possible solutions on this, but you will have to install your project giving it a shortest root folder.


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
7/27/2006 8:08 PM
 

Here is a link with more information about this

http://williamwishart.co.uk/blogs/technical/archive/2006/05/16/5.aspx


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
7/28/2006 8:36 AM
 
So what your saying is I have to install my site in the root directory "C:\" right now its at the default location for Visual Studio 2005 "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites". what happens when the site gets deployed to a remote web server? clearly this is NOT a solution. Any way even when system.IO resolves the full path from my post above it would be "C:/Documents and Settings/Administrator/My Documents/Visual Studio 2005/WebSites/GriffinWebSite/Providers/HtmlEditorProviders/FckHtmlEditorProvider/FckTemplates/ImageBrowser/Default/TemplateData.resx" wich is only 200 characters so what is getting appended to the path by DNN code that makes it throw the exception? Everyone else seems to be running it fine with the default Visual Studio 2005 Starter Kit install the only difference I can think of is that my OS is Win XP64 but that should not matter. What happens if you try to use the create link button in the FTBEditor, does it give you the pathtoolong error?
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Exception being thrown in FTB Editor and FCK EditorException being thrown in FTB Editor and FCK Editor


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