Is not a particular example... to all Aj request function i got the
error in core.ash after the session expire (not when i close manualy ).

Client Side
function GetTopMenu()
        {
                ShowTransferStatus();
                 EHRMS.PrPage.GetTopMenu(true,GetTopMenu_callBack);
         }
 // after i run the EHRMS.PrPage.GetTopMenu
// i got the error
// if i don't put a calback function the error run exactly when i apeal
a aj function
  function GetTopMenu_callBack(res)
        {
           var ret   =  ParseAjResponse(res);
           if(ret   !=  null)
           {
                xmBuilMenuFromStructure(ret);
                if(document.SelectedMainMenuUrl!=null)
                    ChangeTheFramePage(document.SelectedMainMenuUrl);
           }
           HideTransferStatus();
        }

Server Side
  [AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]
        public object GetTopMenu(object o)
        {
            if(IsSessionExpired())
                return new AjRet(AjExceptionType.SessionExpire);

            Thread.Sleep(1000);
                     List<MenuStructure> menuList = new
List<MenuStructure>();

            MenuStructure menu      = new
MenuStructure("1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
            MenuStructure menu1     = new MenuStructure("1.1");

            menu1.AddSubMenu(new MenuStructure("1.1.2"));
            menu1.AddSubMenu(new MenuStructure("1.1.3"));
            menu1.AddSubMenu(new MenuStructure("1.1.4"));
            menu1.AddSubMenu(new MenuStructure("1.1.5"));

            ..................................

           return new AjRet(menuList);
        }

maybe if i give you the webconf will be usefull.
I use vs2005
I change some strings beacause i'm working in company who they don't
wana other to see their name.
<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
        <configSections>
                <section name="MainNetTiersService"
type="NAMESPACE.EHRMS.Main.DataAccess.Bases.NetTiersServiceSection,
NAMESPACE.EHRMS.Main.DataAccess"/>
                <section name="NAMESPACE.EHRMS.Client.DataAccess"
type="NAMESPACE.EHRMS.Client.DataAccess.Bases.NetTiersServiceSection,
HExpert.EHRMS.Client.DataAccess"/>
                <sectionGroup name="ajaxNet">

            <section name="ajaxSettings"
type="AjaxPro.AjaxSettingsSectionHandler, AjaxPro.2"/>

        </sectionGroup>



        </configSections>
        <ajaxNet>
                <ajaxSettings>
                        <urlNamespaceMappings>
                        </urlNamespaceMappings>

                        <jsonConverters>
                        </jsonConverters>
                </ajaxSettings>
        </ajaxNet>

        <appSettings/>
        <connectionStrings>
                <add name="EHRMS_Main" connectionString="Data 
Source=server01;Initial
Catalog=EHRMS_Main;Persist Security Info=True;User ID=net;Password=net"
providerName="System.Data.SqlClient"/>
                <add name="EHRMS_Client1" connectionString="Data
Source=server01;Initial Catalog=EHRMS_Client1;Persist Security
Info=True;User ID=net;Password=net"
providerName="System.Data.SqlClient"/>
                <add name="SqlProfileServices" connectionString="Data
Source=server01;Initial Catalog=EHRMS_Main;Persist Security
Info=True;User ID=net;Password=net"/>
                <add name="EHRMS_Client1ConnectionString1" 
connectionString="Data
Source=server01;Initial Catalog=EHRMS_Client1;Integrated
Security=True;MultipleActiveResultSets=False;Packet
Size=4096;Application Name=&quot;Microsoft SQL Server Management
Studio&quot;" providerName="System.Data.SqlClient"/>
        </connectionStrings>
        <system.web>
                <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
                <compilation debug="true">
                        <assemblies>
                                <add assembly="System.Management, 
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
                                <add assembly="System.Data.OracleClient, 
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                                <add assembly="System.Configuration.Install, 
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                                <add assembly="System.Design, Version=2.0.0.0, 
Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
                                <add assembly="System.Security, 
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
                                <add assembly="stdole, Version=7.0.3300.0, 
Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
                                <add assembly="System.Windows.Forms, 
Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
                <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
                <sessionState  timeout="60"></sessionState>
                <authentication mode="Forms">
                        <forms loginUrl="Login.aspx" name="Login"/>
                </authentication>
                <authorization>
                        <deny users="?"/>
                </authorization>
                <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
                <profile enabled="true" defaultProvider="SqlProvider"
automaticSaveEnabled="true">
                        <providers>
                                <clear/>
                                <add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlProfileServices" applicationName="EHRMS"
description="SqlProfileProvider for APP"/>
                        </providers>
                        <!-- Aici se adauga proprietati care trebuiesc puse in 
PROFIL. -->
                        <properties>
                                <add name="LanguageID" type="System.Int32" 
defaultValue=""/>
                                <group name="Gogu">
                                        <add name="LanguageID" 
type="System.Int32" defaultValue=""/>
                                </group>
                        </properties>
                </profile>
                <httpHandlers>
                        <add verb="POST,GET" path="*.ashx"
type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
                </httpHandlers>
        </system.web>
        <NAMESPACES.Client.DataAccess
defaultProvider="ClientSqlNetTiersProvider">
                <providers>
                        <add name="ClientSqlNetTiersProvider"........"/>
                </providers>
        </HExpert.EHRMS.Client.DataAccess>
        <MainNetTiersService defaultProvider="MainSqlNetTiersProvider">
                <providers>
                        <add name="MainSqlNetTiersProvider" ........"/>
                </providers>
        </MainNetTiersService>
</configuration>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to