Authorization error (401) when loading treeview

G

GrantS

I am having a problem loading a tree view web control.
This problem does not occur on my development machine but
occurs when testing on a QA server.

We can load dropdown lists with data on the same pages.
When attempting to load the treeview, a trace of the call
to the database reveals no database security issue and
the data is retrieved.
I believe that the group permission and impersonation is
setup correctly on the test machine (as we can access the
application, the pages within the applicationand some
data.
The error log stack trace (see below) indicates that
there is a final HttpWebRequest check (CheckFinalStatus)
that is the point of failure. MSDN not too helpful in
terms of anything I might have ommitted.

Here is the Error log:

The remote server returned an error: (401) Unauthorized.

STACK TRACE:

at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse
(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri
uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri,
ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at
System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XPath.XPathDocument.Load(XmlReader
reader)
at System.Xml.Xsl.Compiler.LoadDocument(XmlTextReader
reader)
at System.Xml.Xsl.XslTransform.Load(String url,
XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
at
Microsoft.Web.UI.WebControls.TreeView.GetXmlReaderFromXPat
hDoc(XPathDocument xmldoc, String TreeNodeXsltSrc)
at
Microsoft.Web.UI.WebControls.TreeView.GetXmlReaderFromStri
ng(String TreeNodeSrc, String TreeNodeXsltSrc)
at Microsoft.Web.UI.WebControls.TreeView.ReadXmlSrc
(String TreeNodeSrc, String TreeNodeXsltSrc, String
strOuter)
at
Microsoft.Web.UI.WebControls.TreeView.ReadTreeNodeXmlSrc()
at Microsoft.Web.UI.WebControls.TreeView.DataBind()
at CMSDataViewer.OrgUnit.OrgUnit.RefreshTree()
at
CMSDataViewer.OrgUnit.OrgUnit.cboGrouping_SelectedIndexCha
nged(Object sender, EventArgs e)
at
System.Web.UI.WebControls.ListControl.OnSelectedIndexChang
ed(EventArgs e)
at
System.Web.UI.WebControls.ListBox.System.Web.UI.IPostBackD
ataHandler.RaisePostDataChangedEvent()
at System.Web.UI.Page.RaiseChangedEvents()
at System.Web.UI.Page.ProcessRequestMain()

************************************************8888
Hopefully someone can point me in the right direction
with this.

Cheers.

Thhanks in advance. Grant S
 
G

GrantS

We managed to find a solution to our problem. This may help others.

It might be that because we were using impersonation that we had this
problem. WE used NTFS security. The webctrl_client folder with its
files used by the treeview is stored in the root directory.

The solution was to move the webctrl_client folder into the
application folder and change the path in the source code for the
treeview control.

Cheers

Grant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top