+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / (401) Unauthorized Error

(401) Unauthorized Error

6 posts, 0 answered
  1. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    28 Oct 2008
    Link to this post

    <html>
        <head>
            <title>The remote server returned an error: (401) Unauthorized.</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>

        <body bgcolor="white">

                <span><H1>Server Error in '/Gallikers' Application.<hr width=100% size=1 color=silver></H1>

                <h2> <i>The remote server returned an error: (401) Unauthorized.</i> </h2></span>

                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

                <b> Description: </b>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.

                <br><br>

                <b> Exception Details: </b>System.Net.WebException: The remote server returned an error: (401) Unauthorized.<br><br>

                <b>Source Error:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>

    Line 267:            foreach (IWebModule module in ModuleManager.GetWebModulesValues())
    Line 268:            {
    <font color=red>Line 269:                if (module is SecuredModule &amp;&amp; ((SecuredModule)module).CanCreate())
    </font>Line 270:                    webModules.Add(module);
    Line 271:            }</pre></code>

                      </td>
                   </tr>
                </table>

                <br>

                <b> Source File: </b> d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs<b> &nbsp;&nbsp; Line: </b> 269
                <br><br>

                <b>Stack Trace:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>

    [WebException: The remote server returned an error: (401) Unauthorized.]
       System.Net.HttpWebRequest.GetResponse() +5313085
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +104
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +76
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +32
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +296
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +53
       Telerik.ManagerBase`1.Initialize() +505
       Telerik.ManagerBase`1..ctor(String providerName) +21
       Telerik.ManagerBase`1..ctor() +11
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +15
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +32
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +56
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +5
       Telerik.Security.Permissions.SecuredModule.CanCreate() +34
       Admin_Default.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:269
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +55
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +19
       Admin_Default.OnLoad(EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:69
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    </pre></code>

                      </td>
                   </tr>
                </table>

                <br>

                <hr width=100% size=1 color=silver>

                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

                </font>

        </body>
    </html>
    <!--
    [WebException]: The remote server returned an error: (401) Unauthorized.
       at System.Net.HttpWebRequest.GetResponse()
       at Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie)
       at Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke)
       at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy()
       at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie)
       at Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri)
       at Telerik.Notifications.Newsletters.DataManager.OnInitialized()
       at Telerik.ManagerBase`1.Initialize()
       at Telerik.ManagerBase`1..ctor(String providerName)
       at Telerik.ManagerBase`1..ctor()
       at Telerik.Notifications.Newsletters.DataManager..ctor(String providerName)
       at Telerik.Notifications.Newsletters.DataManager.get_Providers()
       at Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots()
       at Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots()
       at Telerik.Security.Permissions.SecuredModule.CanCreate()
       at Admin_Default.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:line 269
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e)
       at Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e)
       at Admin_Default.OnLoad(EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:line 69
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.sitefinity_admin_default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gallikers\8eac0a45\95ec0f5d\App_Web_36f009lt.8.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    --><!--
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

  2. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    28 Oct 2008
    Link to this post
    Forgive me, I didn't mean to post the HTML. I'm having an issue with a fresh installation of Sitefinity 3.5. The only thing that isn't "by the book" is that I'm using Microsoft SQL Server 2008, which I don't think is officially supported, but I'm not certain that this error is related. It's happening specifically when I log into the CMS. It does appear that I am able to authenticate, because a refresh will then load the page as it originally should have. Any ideas?

    Thank you, Joseph

    Server Error in '/Gallikers' Application.

    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:

    Line 267:            foreach (IWebModule module in ModuleManager.GetWebModulesValues())
    Line 268:            {
    Line 269:                if (module is SecuredModule && ((SecuredModule)module).CanCreate())
    Line 270:                    webModules.Add(module);
    Line 271:            }

    Source File: d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs    Line: 269

    Stack Trace:

    [WebException: The remote server returned an error: (401) Unauthorized.]
       System.Net.HttpWebRequest.GetResponse() +5313085
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +104
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +76
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +32
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +296
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +53
       Telerik.ManagerBase`1.Initialize() +505
       Telerik.ManagerBase`1..ctor(String providerName) +21
       Telerik.ManagerBase`1..ctor() +11
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +15
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +32
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +56
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +5
       Telerik.Security.Permissions.SecuredModule.CanCreate() +34
       Admin_Default.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:269
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +55
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +19
       Admin_Default.OnLoad(EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Default.aspx.cs:69
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
  3. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    28 Oct 2008
    Link to this post
    Here is a second example:
     

    Server Error in '/Gallikers' Application.

    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:

    Line 25:         this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None;
    Line 26:         // END EXCLUDE FOR COMMUNITY
    Line 27:         this.MainMenu.DataBind();
    Line 28:     }
    Line 29: 

    Source File: d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Admin.master.cs    Line: 27

    Stack Trace:

    [WebException: The remote server returned an error: (401) Unauthorized.]
       System.Net.HttpWebRequest.GetResponse() +5313085
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +104
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +76
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +32
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +296
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +53
       Telerik.ManagerBase`1.Initialize() +505
       Telerik.ManagerBase`1..ctor(String providerName) +21
       Telerik.ManagerBase`1..ctor() +11
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +15
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +32
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +56
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +5
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +73
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +3677
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       Admin_Admin.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\Gallikers\Sitefinity\Admin\Admin.master.cs:27
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Oct 2008
    Link to this post
    Hello Joseph,

    Could you try to enable Anonymous access in IIS for this application? It is not related to Sql2008 server.
    The problem is that the request to the web service couldn't be authenticated.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    28 Oct 2008
    Link to this post
    That resolved the issue. I didn't realize that was what it was looking for. We had it locked-down for development purposes.
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Oct 2008
    Link to this post
    Hello Joseph,

    I am glad that everything is fine.
    Let us know if you have any other questions!

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
6 posts, 0 answered