Copied to clipboard

Flag this post as spam?

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


  • Hugh Hart 11 posts 31 karma points
    Jan 09, 2012 @ 19:56
    Hugh Hart
    0

    Error reading Courier Config file: searching in the wrong location?

    Get the following error in our systems: 

    Error reading Courier Config file: System.IO.FileNotFoundException: Could not find file '<our website>\umbraco\plugins\UmbracoCourier\settings\courier.config'... 

    Of course, it will never find that file. We have Courier 2.5.1 installed and the configuration file in question is located at <our websitge>\config\courier.config. What is searching for the wrong file? How can we eliminate the error message.

  • Hugh Hart 11 posts 31 karma points
    Feb 01, 2012 @ 16:36
    Hugh Hart
    0

    Still getting these errors. Full stack trace of this error.

    Error reading Courier Config file: System.IO.FileNotFoundException: Could not find file 'D:\GroupApps\UAT.CrawfordAndCompany.com\umbraco\plugins\UmbracoCourier\settings\courier.config'.
    File name: 'D:\GroupApps\UAT.CrawfordAndCompany.com\umbraco\plugins\UmbracoCourier\settings\courier.config'
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Threading.CompressedStack.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at Umbraco.Courier.BusinessLogic.Settings.Config.ensureSettingsDocument()
     
  • Hugh Hart 11 posts 31 karma points
    Feb 01, 2012 @ 16:56
    Hugh Hart
    0

    The incorrect link is called out in two of the four package.xml files. Each "<file>...</file>" is preceeded by the path to the package.xml file.

    ...\App_Data\0267452c-dff1-4245-b207-95c3f7d43355\package.xml
        <file>
          <guid>4a02125f-d125-4177-9473-e294985839e6.config</guid>
          <orgPath>/config</orgPath>
          <orgName>courier.config</orgName>
        </file>

    ...\App_Data\f1153c66-ad7f-4c45-86fe-b0a479fa4abb\package.xml
        <file>
          <guid>4a02125f-d125-4177-9473-e294985839e6.config</guid>
          <orgPath>/config</orgPath>
          <orgName>courier.config</orgName>
        </file>

    ...\App_Data\0ae2b136-b8d7-4fd3-a953-621f5eabc3ea\package.xml
        <file>
          <guid>4dc8bd62-6ad3-4a24-9d4d-5f8e14ed7ebe.config</guid>
          <orgPath>/umbraco/plugins/UmbracoCourier/Settings</orgPath>
          <orgName>courier.config</orgName>
        </file>

    ...\App_Data\f9f458d3-fb98-43ad-97ed-5dbf35115545\package.xml
        <file>
          <guid>4dc8bd62-6ad3-4a24-9d4d-5f8e14ed7ebe.config</guid>
          <orgPath>/umbraco/plugins/UmbracoCourier/Settings</orgPath>
          <orgName>courier.config</orgName>
        </file>

  • Per Ploug 865 posts 3491 karma points MVP admin
    Feb 02, 2012 @ 15:21
    Per Ploug
    0

    Hi Hugh

    I believe you have both Courier 1.3 and Couirer 2.0 installed on your site, as that config location is the old config location in Courier 1.3

    /per

  • Hugh Hart 11 posts 31 karma points
    Feb 02, 2012 @ 15:56
    Hugh Hart
    0

    Thanks for your quick reply.

    A month or so ago ago we installed version 2 without removing version 1.3. We found that this didn't work too well. Then we uninstalled all Courier instances, and reinstalled the version 2 again. Courier works fine in our installation. The courier.config for version 1.3 was removed as part of the package uninstall.

    I am sure that our problem is caused by our mistake.

    Question: would it be safe to delete the 2 directories in App_Data that contain the erroneous package.xml that point to the old, missing courier.config?

    Then yesterday later, I searched the entire website for anything that looked like the path or string to the Courier 1.3 version files. I found 2 instances of the courier.config path for 1.3 in App_Data. The following shows only the snippet related to Courier.

    File: \App_Data\0ae2b136-b8d7-4fd3-a953-621f5eabc3ea\package.xml
        <file>
          <guid>4dc8bd62-6ad3-4a24-9d4d-5f8e14ed7ebe.config</guid>
          <orgPath>/umbraco/plugins/UmbracoCourier/Settings</orgPath>
          <orgName>courier.config</orgName>
        </file>

    File: \App_Data\f9f458d3-fb98-43ad-97ed-5dbf35115545\package.xml
        <file>
          <guid>4dc8bd62-6ad3-4a24-9d4d-5f8e14ed7ebe.config</guid>
          <orgPath>/umbraco/plugins/UmbracoCourier/Settings</orgPath>
          <orgName>courier.config</orgName>
        </file>

    There are also 2 other instances where the correct directory is indicated. And this path has never appeared in the error messages:

    File: \App_Data\0267452c-dff1-4245-b207-95c3f7d43355\package.xml
        <file>
          <guid>4a02125f-d125-4177-9473-e294985839e6.config</guid>
          <orgPath>/config</orgPath>
          <orgName>courier.config</orgName>
        </file>

    File: \App_Data\f1153c66-ad7f-4c45-86fe-b0a479fa4abb\package.xml
        <file>
          <guid>4a02125f-d125-4177-9473-e294985839e6.config</guid>
          <orgPath>/config</orgPath>
          <orgName>courier.config</orgName>
        </file>

    Any ideas or suggestions would be greatly appreciated.

    Thanks,
    HMH

  • Per Ploug 865 posts 3491 karma points MVP admin
    Feb 03, 2012 @ 15:17
    Per Ploug
    0

    Yup you can safely delete those folders, if you are still seeing this issue, you must have a courier dll in /bin folder, so I would remove all Courier installs (install the packages) 

    and then remove any Dlls that contain the word "courier" from /bin, then do a clean re-install of courier 2.5.4.1 

    /per

  • Hugh Hart 11 posts 31 karma points
    Mar 05, 2012 @ 17:14
    Hugh Hart
    0

    Thanks for your help. That fixed our problem.

    In case others may need this, we used the following steps on each of our sites:

    1. Uninstalled any courier packages through the Umbraco administrator login
    2. IIS Manager -- turned off the web site
    3. Deleted all DLLs with "courier" in their name as suggested above
    4. Deleted every folder that had a GUID type name in the App_Data folder
    5. Sometimes we also deleted everything in the Umbraco/plugins/courier folder, but left the folder itself
    6. IIS Manager -- turned on the web site
    7. Via Umbraco administrator login, installed Courier in the normal manner
    8. Tested Courier operation -- everything worked great.
Please Sign in or register to post replies

Write your reply to:

Draft