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

RadScriptManager not woirking with login screen

2 Answers 227 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Pivetal
Top achievements
Rank 1
Pivetal asked on 23 Oct 2008, 09:08 AM
I have a Login.aspx as follows:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>QspeeQ NOC</title>
    <link href="CSS/Default.css" rel="stylesheet" type="text/css" />
</head>
<body class="Login">
    <form id="form1" runat="server" >
    
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>        

    </form>
    
    
</body>
</html>


If I set Login.aspx as my start page and use:

<authentication mode="Windows"/>

in the web.config everything works as expected; but as soon as I change the authentication to:

<authentication mode="Forms">
            <forms loginUrl="Login.aspx" protection="None" timeout="1" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="default.aspx" cookieless="UseCookies" enableCrossAppRedirects="false"/>
        </authentication>
        <authorization>
            <deny users="?"/>
        </authorization>

I get the following error:

if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

I am using:
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

Hope this is enough information to go on!
Thanks in Advance
Bleddyn










2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 23 Oct 2008, 01:01 PM
Hi Bleddyn,

To avoid the generated error, you need to add the following block to your web.config file:

<configuration> 
...  
<location path="Telerik.Web.UI.WebResource.axd">  
   <system.web> 
     <authorization> 
       <allow users="*"/>  
     </authorization> 
   </system.web> 
 </location> 
...  
</configuration>  

Review the relevant paragraph of this documentation topic for more details:
http://www.telerik.com/help/aspnet-ajax/troubleshooting.html

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Pivetal
Top achievements
Rank 1
answered on 23 Oct 2008, 01:50 PM
That's great thanks!
Bleddyn
Tags
Ajax
Asked by
Pivetal
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Pivetal
Top achievements
Rank 1
Share this question
or