This is a migrated thread and some comments may be shown as answers.

The remote server returned an error: (401) Unauthorized

8 Answers 1913 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
towpse
Top achievements
Rank 2
towpse asked on 17 Nov 2009, 07:00 PM

Might anyone be able to suggest why I am geting this error when I host my web application in IIS?
If I use the Visual Studio Dev server, the page loads with a scheduler.
All I do is create a virtual directory for my app in IIS and I get the following error...

Any hep would be greatly appreciated. Thanks.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[WebException: The remote server returned an error: (401) Unauthorized.]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +302
   System.Net.WebClient.UploadString(Uri address, String method, String data) +170
   System.Net.WebClient.UploadString(String address, String method, String data) +35
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +460

[Exception: An error occurred while requesting resources from the web service. Server responded with: {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"}]
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +622
   Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +95
   Telerik.Web.UI.RadScheduler.PerformSelect() +122
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +51
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


        <telerik:RadScheduler    ID="RadScheduler1"   
                                            runat="server"   
                                            Height=""   
                                            HoursPanelTimeFormat="htt"   
                                            ValidationGroup="RadScheduler1"   
                                            StartEditingInAdvancedForm="false"   
                                            Skin="Office2007">  
            <WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> 
        </telerik:RadScheduler> 

8 Answers, 1 is accepted

Sort by
0
Accepted
Mike Taylor
Top achievements
Rank 1
answered on 19 Nov 2009, 11:41 AM
0
towpse
Top achievements
Rank 2
answered on 19 Nov 2009, 02:25 PM
perfect. somehow didn't stumble on that article.

thanks!
0
towpse
Top achievements
Rank 2
answered on 19 Nov 2009, 06:08 PM
seems to be the answer but i'm running into that issue once again.

is there anything else to investigate or debug?
0
Landon
Top achievements
Rank 1
answered on 15 May 2012, 09:24 PM
Did anyone ever get an answer for this? The initial response, marked as "answer", worked for a while, but now has stopped working, and I'm desperate! Any thoughts?
0
Landon
Top achievements
Rank 1
answered on 30 Aug 2012, 08:31 PM
Hello, is anybody out there? The fix listed is STILL not working for me! Does anyone have any idea how to fix it??
0
Ivana
Telerik team
answered on 04 Sep 2012, 11:56 AM
Hi,

You can check for the steps explained in the following ASP.NET forum:
http://forums.asp.net/t/1165237.aspx/1.

Greetings,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Nelson
Top achievements
Rank 1
answered on 09 Nov 2012, 02:06 PM
I am also running into issues with web service binding and 401 Unauthorized errors when using ServerSide Resource Population.

My current development environment is set up to use a local instance of full IIS on my Windows 7 machine (not IIS Express). I have enabled at the site root both anonymous access configured with IUSR as well as Windows Authentication to enable debugging. We do use cookies for authentication but do not integrate with ASP.NET authentication and failure to authenticate in code does not return a 401, but rather a redirect to another page. Based on this, I'm sure the issue is not our websites cookiebased authentication but rather having enabled Windows Authentication and somehow it fails as this will definitely cause a 401.

Any advice on how I may pass through my current credentials?
0
Plamen
Telerik team
answered on 14 Nov 2012, 07:06 AM
Hi Nelson,

 
We are not aware and have not been reported of another known settings that may be causing such error out of the box so it may be caused by some custom setting. If you are still observing the issue please if you find out more information  about it.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
towpse
Top achievements
Rank 2
Answers by
Mike Taylor
Top achievements
Rank 1
towpse
Top achievements
Rank 2
Landon
Top achievements
Rank 1
Ivana
Telerik team
Nelson
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or