help.axcms.netAxinom Logo
Save Save Chapter Send Feedback

KB10007: System.Net.WebException: The remote server returned an error: (401) Unauthorized

when publishing page, using Active Directory authentication for Management System.

SYMPTOMS

Following exception is thrown when publishing page, using Active Directory authentication for Management System.

System.Net.WebException: The remote server returned an error: (401)
Unauthorized. at System.Net.HttpWebRequest.GetResponse() at
Axinom.AECMS.page.AxPageBase.GetHtml(String url) at
Axinom.AECMS.WebControls.AxPage.CreateSnapshotFile(AxChannel channel) at
Axinom.AECMS.BulkOperations.CreatePageSnapshotFileActivity.DoExecute(IClassifiable element)

CAUSE

Management system site is using Integrated Windows Authentication and prohibits anonymous access. When creating snapshot, CMS background process tries to open the web page in publish/preliminary folder through HTTP. Access for the user under which ASP.NET process is running (usually ASPNET on Windows XP or Network Service on Windows 2003) should be granted to allow this.

SOLUTION

The easiest way is to allow Anonymous access to publish/preliminary folder in IIS.

MORE INFORMATION

http://en.help.axinom.de/en_help_cms_inst_iis.AxCMS?ActiveID=1353 - Select your IIS version and read the Authentication section.

APPLIES TO

AxCMS.net versions: All versions