Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas 160 posts 335 karma points
    Apr 01, 2015 @ 08:16
    Thomas
    0

    ERROR Umbraco.Core.UmbracoApplicationBase - Illegal characters in path.

    Hi, suddenly on the log file i am receiving the following error on a production environment using Umbraco v6.2.3

    Any suggestions on how to fix it?

    2015-04-01 03:47:53,924 [115] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 18] An unhandled exception occurred System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str) 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.HttpRequest.get_PhysicalPath() at UrlRewritingNet.Web.UrlRewriteModule.OnBeginRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2015 @ 08:21
    Jan Skovgaard
    0

    Hi Thomas

    What changes have been made when this started to appear? Did you create a new document type, which could perhaps contain some special characters like - or _ for instance? Or could it be that there is a content node that has a characters, which is not allowed and needs to be mapped to something else in the /config/umbracoSettings.config?

    /Jan

  • Thomas 160 posts 335 karma points
    Apr 01, 2015 @ 08:24
    Thomas
    0

    How can i find that? Is there something to enable in order to see it in the log file? I haven't change or enter any new DocumentType. I don't know if the users had enter node or content within a node that probably have special characters. Is there any way to discover and get more information in the log file?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 01, 2015 @ 08:25
    Dennis Aaen
    0

    Hi Thoms,

    Could it be this issue that you have? http://issues.umbraco.org/issue/U4-3614, I can see that you are using a newer version, but it´s worth checking. Claus did also experience also this error in this thread, perhaps you can set some logging up. Like Claus did https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/63461-String-reference-not-set-to-an-instance-of-a-String

    Hope this helps,

    /Dennis



  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2015 @ 08:26
    Jan Skovgaard
    0

    Hi Thomas

    Unfortunately there is no easy way of figuring this out.

    Perhaps you can ask the the client about what new pages has been created and then check to see if they contain some weird character in the nodename.

    /Jan

  • Thomas 160 posts 335 karma points
    Apr 01, 2015 @ 08:32
    Thomas
    0

    By taking a quick look on their nodes i saw that they are using the following characters in some node names : ; , !

    Will this be a possibility to raise that error?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2015 @ 08:37
    Jan Skovgaard
    101

    Hi Thomas

    Yes I believe so - Any reason why they're using them? Either they should rename the pages or you should handle it in the /config/umbracoSettings.config -> requestHandler -> urlReplacing and then write something like

     <char org=":">-</char>
    <char org=";">-</char>
    <char org="!">-</char>
    

    The character you want to use as a replacement can be whatever legal character you prefer.

    Hope this helps.

    /Jan

  • Thomas 160 posts 335 karma points
    Apr 01, 2015 @ 08:43
    Thomas
    0

    Thank you. I will try to add these characters in umbracoSettings.config and see if that fix the error otherwise i will search for another special characters. Reason for using them? It is a travel portal site and for some node titles they want to mention something special for example and they add these characters. They are users-writers and i cannot change their mind as you can understand. :-)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2015 @ 08:55
    Jan Skovgaard
    0

    Hi Thomas

    Yeah, writers should not be concerned with tech-stuff like this so doing the replacement is the right way to go. I forgot to mention that after making the changes you'll need to recycle the app pool. Otherwise they don't take effect.

    /Jan

  • Thomas 160 posts 335 karma points
    Apr 02, 2015 @ 10:17
    Thomas
    0

    Back again and the problem still exists. I add all the following characters in umbracoSettings.config but still i am getting the same error. I download their database locally, search all the node names one by one, i couldn't find any other character that is not included in the following list. The strange think is that running the application locally from visual studio i am not getting this error. In live environment i am getting it.

    <urlReplacing removeDoubleDashes="true">
          <char org=" ">-</char>
          <char org="&quot;"></char>
          <char org="'"></char>
          <char org="%"></char>
          <char org="."></char>
          <char org=";"></char>
          <char org="/"></char>
          <char org="\"></char>
          <char org=":"></char>
          <char org="#"></char>
          <char org="+">plus</char>
          <char org="*">star</char>
          <char org="&amp;"></char>
          <char org="?"></char>
          <char org="á">aa</char>
          <char org="Á">aa</char>
          <char org="à">aa</char>
          <char org="À">aa</char>
          <char org="â">aa</char>
          <char org="Â">aa</char>
          <char org="å">aa</char>
          <char org="Å">aa</char>
          <char org="ã">aa</char>
          <char org="Ã">aa</char>
          <char org="ä">ae</char>
          <char org="Ä">ae</char>
          <char org="æ">ae</char>
          <char org="Æ">ae</char>
          <char org="ç">cc</char>
          <char org="Ç">cc</char>
          <char org="é">ee</char>
          <char org="É">ee</char>
          <char org="è">ee</char>
          <char org="È">ee</char>
          <char org="ê">ee</char>
          <char org="Ê">ee</char>
          <char org="ë">ee</char>
          <char org="Ë">ee</char>
          <char org="í">ii</char>
          <char org="Í">ii</char>
          <char org="ì">ii</char>
          <char org="Ì">ii</char>
          <char org="î">ii</char>
          <char org="Î">ii</char>
          <char org="ï">ii</char>
          <char org="Ï">ii</char>
          <char org="ñ">nn</char>
          <char org="Ñ">nn</char>
          <char org="ó">oo</char>
          <char org="Ó">oo</char>
          <char org="ò">oo</char>
          <char org="Ò">oo</char>
          <char org="ô">oo</char>
          <char org="Ô">oo</char>
          <char org="ø">oe</char>
          <char org="Ø">oe</char>
          <char org="õ">oo</char>
          <char org="Õ">oo</char>
          <char org="ö">oe</char>
          <char org="Ö">oe</char>
          <char org="ß">ss</char>
          <char org="ú">uu</char>
          <char org="Ú">uu</char>
          <char org="ù">uu</char>
          <char org="Ù">uu</char>
          <char org="û">uu</char>
          <char org="Û">uu</char>
          <char org="ü">ue</char>
          <char org="Ü">ue</char>
          <char org="ÿ">yy</char>
          <char org="|">-</char>
          <char org="&lt;"></char>
          <char org="&gt;"></char>
          <char org=",">-</char>
          <char org="!"></char>
          <char org="(">-</char>
          <char org=")">-</char>
          <char org="«">-</char>
          <char org="»">-</char>
          <char org="‘">-</char>
          <char org="’">-</char>
          <char org="“">-</char>
          <char org="”">-</char>
          <char org="΄">-</char>
          <char org="'">-</char>
          <char org="´">-</char>
          <char org="`">-</char>
          <char org="¢">cent</char>
          <char org="©"></char>
          <char org="÷"></char>
          <char org="µ"></char>
          <char org="·"></char>
          <char org="¶"></char> 
          <char org="±"></char>
          <char org="€">euro</char>
          <char org="£">pound</char>
          <char org="®"></char>
          <char org="§"></char>
          <char org="™"></char>
          <char org="¥">yen</char>
          <char org="°">degree</char>
          <char org="&#160;"></char>
        </urlReplacing>

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 03, 2015 @ 14:36
    Jan Skovgaard
    0

    Hi Thomas

    What IIS version are you using locally and what are you using on the server?

    /Jan

  • Thomas 160 posts 335 karma points
    Apr 03, 2015 @ 16:30
    Thomas
    0

    Locally i have windows 8.1 with IIS 8 and the server is Windows 2012 R2 with IIS 8 also.

Please Sign in or register to post replies

Write your reply to:

Draft