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.
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.
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
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.
Still getting these errors. Full stack trace of this error.
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()
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>
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
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
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
Thanks for your help. That fixed our problem.
In case others may need this, we used the following steps on each of our sites:
is working on a reply...