What is redirection.config?


https://forum.kartris.com/Topic6799.aspx
Print Topic | Close Window

By shulemj - Thu 17 Nov 2016
From one day to the other, we cannot access the frontend, and we get this error.



<BEGIN ERROR MESSAGE>
-----------------------------------------------------------------------------
>> Version:2.9005
>> URL:http://www.malchutjudaica.com/Default.aspx
>> Page:
-----------------------------------------------------------------------------
>> 11/17/2016 7:46:33 AM
>> 47.16.211.251
>> DESCRIPTION:
System.UnauthorizedAccessException: Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions



at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.GetAdminSection(String bstrSectionName, String bstrSectionPath)
at Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath)
at Microsoft.Web.Administration.ServerManager.SitesSectionCreator()
at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate`1 valueFactory)
at Microsoft.Web.Administration.ServerManager.get_SitesSection()
at Microsoft.Web.Administration.ServerManager.SitesCollectionCreator()
at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate`1 valueFactory)
at Microsoft.Web.Administration.ServerManager.get_Sites()
at CkartrisBLL.RecycleAppPool()
at CurrenciesBLL.ConvertCurrency(Int16 _ToCurrencyID, Decimal _FromValue, Int16 _FromCurrencyID)
at UserControls_Skin_FeaturedProducts.LoadFeaturedProducts()
at UserControls_Skin_FeaturedProducts.Page_Load(Object sender, EventArgs e)
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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

==================================================
<END ERROR MESSAGE>

By shulemj - Thu 17 Nov 2016
Now also having issues with viewing, editing or cloning versions in the backend!

If anyone is willing to provide support (for pay), please contact me.
By Tiggywiggler - Thu 17 Nov 2016
Are you getting the same error when trying to clone etc.?

FYI this can be an IIS error or a Windows Security error and may require moving things around on the backend. Do you have access to the desktop of your server via Remote Desktop?



Have you made any changes recently?
By shulemj - Thu 17 Nov 2016
Thanks for your quick reply.

Yes, it happens when I want to clone.

No, I do not have remote access. (it's a shared environment.)
By Tiggywiggler - Thu 17 Nov 2016
Do you have access to IIS? Sometimes in a shared environment each sharing member has its own IIS version.
By shulemj - Thu 17 Nov 2016
I have access to IIS Manager:

http://forum.kartris.com/Uploads/Images/986bd81a-009a-4450-9daa-f45b.png
By Tiggywiggler - Thu 17 Nov 2016
It looks to be a permissions issue based on the user that is trying to access the folder. It could be that someone who looks after the shared environment has changed an access somewhere.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/424613dc-96ed-48ec-8001-291e8cff8156/systemunauthorizedaccessexception-filename-redirectionconfig-error-cannot-read-configuration?forum=tfsbuild

You may need to tell them what application identity you are running under. It does not appear to be something you can change from within IIS unless you have the option to change the user of the application pool itself. This thread has a few comments on the subject https://forums.iis.net/t/1154515.aspx.

Unfortunately, unless you have remote access to the server it is hosted on, there isn't a great deal I could do to support you with this problem. It is something you need the support of the person administering the server for.
By shulemj - Thu 17 Nov 2016
Thanks. I will reach out to them.
By Tiggywiggler - Fri 18 Nov 2016
How did you get on with this please?
By shulemj - Fri 18 Nov 2016
Funny you should ask. I just got it resolved this instant.

Initially they told me that:

We did not patch your server for long time. And also, you never had permission in C:\Windows\system32\inetsrv\config in shared hosting.


But then he wrote back:
I simply tried to turn on detailed error from your web.config. Seems your site works fine now after initialization.



And, it works now perfectly.

Thanks for checking.
By Tiggywiggler - Fri 18 Nov 2016
"We did not patch your server for long time." - That's a bit of a worry!

Glad you got it working though mate. Good luck with the rest of your work Smile
By shulemj - Fri 18 Nov 2016
Thanks a lot.