[CLOSED] Ext is undefined & re-built Ext.Net

Page 2 of 6 FirstFirst 1234 ... LastLast
  1. #11
    Please review this file
     <Ext.Net v1>\Ext.Net\Core\XControl\Helpers.cs
    There is the ExtNetDataItem property. I guess you should change the embedded path.
  2. #12
    the path has already been changed. Every Ext.Net is Ext.v1Net now.

    extNetDataItem = new ClientScriptItem(
                            "Ext.v1Net.Build.Ext.v1Net.extnet.extnet-data.js",
                            "Ext.v1Net.Build.Ext.v1Net.extnet.extnet-data-debug.js",
                            "/extnet/extnet-data.js",
                            "/extnet/extnet-data-debug.js");
    Where Ext.ux.data is built?
  3. #13
    Where Ext.ux.data is built?
    Sorry, I don't quite understand the question.

    By the way, have you not forgotten to correct this in Ext.NET v1 as well?
    private static GlobalConfig settings = ConfigurationManager.GetSection("extnet") as GlobalConfig;
    Sure, only if you rename the section in Web.config.
  4. #14
    I changed that

    private static GlobalConfig settings = ConfigurationManager.GetSection("extnetv1") as GlobalConfig;
    even if I dont need to because I did not call it in web.config (not the same project).

    It says that "Ext.ux.data is undefined" so I try to find where data is instantiated. But I have no idea where to search.
    Is it in the js?
  5. #15
    I changed that
    private static GlobalConfig settings = ConfigurationManager.GetSection("extnetv1") as GlobalConfig;
    even if I dont need to because I did not call it in web.config (not the same project).
    I don't quite understand why you don't need to do that.

    Please clarify have you attached the v1 Ext.Net.ResourceHandler in Web.config?

    It says that "Ext.ux.data is undefined" so I try to find where data is instantiated. But I have no idea where to search.
    Is it in the js?
    It is inside this file.
    http://svn.ext.net/premium/branches/...-data-debug.js

    This file is attached to a page via
    <script src=...></script>
  6. #16
    I changed that
    private static GlobalConfig settings = ConfigurationManager.GetSection("extnetv1") as GlobalConfig;
    And this is my web.config (I hide some parts for the project, sorry)
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Pour plus d'informations sur la configuration de votre application ASP.NET, consultez
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]">
                <section name="[...].Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" requirePermission="false" />
            </sectionGroup>
            <section name="extnetv1" type="Ext.v1Net.GlobalConfig" requirePermission="false" />
        </configSections>
        <appSettings>
            <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
        </appSettings>
        <connectionStrings>
            <add name="ApplicationServices" connectionString="data source=[...]\SqlExpress;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
            <add name="DCxManagerEntities" connectionString="metadata=res://*/[...].csdl|res://*/[...].ssdl|res://*/[...].msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=[...]\SqlExpress;Initial Catalog=[...];Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
        </connectionStrings>
        <system.web>
            <pages>
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
                      assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
                </controls>
            </pages>
            <httpRuntime maxRequestLength="30720" maxQueryStringLength="32768" />
            <httpModules>
                <add name="DirectRequestModule" type="Ext.v1Net.DirectRequestModule, Ext.v1Net" />
            </httpModules>
            <authentication mode="Windows" />
            <!--
                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="Off" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            <httpHandlers>
                <add path="*/ext.axd" verb="*" type="Ext.v1Net.ResourceHandler" validate="false" />
                <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
            </httpHandlers>
            <compilation debug="true" targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
                    <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
                    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
                    <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
                </assemblies>
            </compilation>
            <membership>
                <providers>
                    <clear />
                    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
                </providers>
            </membership>
            <profile>
                <providers>
                    <clear />
                    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
                </providers>
            </profile>
            <roleManager enabled="false">
                <providers>
                    <clear />
                    <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
                    <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
                </providers>
            </roleManager>
        </system.web>
        <system.net>
            <mailSettings>
                <smtp from="[...]">
                    <network host="[...]" password="[...]" userName="[...]" />
                </smtp>
            </mailSettings>
        </system.net>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false" />
            <modules runAllManagedModulesForAllRequests="true">
                <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.v1Net.DirectRequestModule, Ext.v1Net" />
            </modules>
            <handlers>
                <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.v1Net.ResourceHandler" />
                <remove name="ChartImageHandler" />
                <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[...]" />
            </handlers>
            <defaultDocument>
                <files>
                    <clear />
                    <add value="default.aspx" />
                    <add value="Default.htm" />
                    <add value="Default.asp" />
                    <add value="index.htm" />
                    <add value="index.html" />
                    <add value="iisstart.htm" />
                </files>
            </defaultDocument>
            <security>
                <requestFiltering>
                    <requestLimits maxUrl="32768" maxQueryString="32768" />
                </requestFiltering>
            </security>
        </system.webServer>
        <applicationSettings>
            <[...].Properties.Settings>
                <setting name="VersionDate" serializeAs="String">
                    <value>04-10-2012 - 17-17</value>
                </setting>
            </[...].Properties.Settings>
        </applicationSettings>
    </configuration>
    With Firebug, I still have 2 request failure on webresource. How can I know which one is wrong?

    EDIT :

    I saw on Firebug that "extnet-core.js" is loaded.
    Last edited by slavina; Oct 28, 2014 at 8:26 AM.
  7. #17
    Please post the Page Sources of the page that you are testing with.

    I mean the Page Sources option in the browser, not the code of .aspx page.
  8. #18
    Here's the page. It's the login page of the project.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1"><title>
    	Page d'accueil
    </title><link rel="shortcut icon" type="image/x-icon" href="./Design/project_name.png" /><link rel="icon" type="image/x-icon" href="./Design/project_name.png" />
        <style type="text/css">
            html
            {
                height: 100%;
            }
            body
            {
                height: 100%;
                margin: 0px;
                padding: 0px;
                background-image: url(./Design/fond_connexion.jpg) !important;
                background-position: center;
                background-repeat: no-repeat;
            }
            .text-red
            {
                text-align: center !important;
                color: Blue !important;
            }
            .text-blue-spec
            {
                text-align: center !important;
                color: #0f6b91 !important;
                font: 14px/18px arial,sans-serif;
                font-weight: bold;
                font-style: italic;
            }
            .text-blue-normal
            {
                text-align: center !important;
                color: #0f6b91 !important;
                font: 14px/18px arial,sans-serif;
            }
        </style>
        <script type="text/javascript">
            var generateValidation = function () {
                Ext.net.DirectMethods.GenerateValidation();
            }
            var manageRegistration = function (result, error) {
                if (result != undefined) {
                    if (result.message != "true") {
                        Ext.Msg.alert('Erreur', result.message);
                    } else {
                        RegistrationValidation.clear();
                        Ext.Msg.alert('Erreur', 'Veuillez saisir le nouveau code de validation');
                        Captcha.imageUrl = result.filename;
                    }
                }
            }
    
            var resize = function (a, b, c, d) {
                if (!WindowLogin.hidden) { WindowLogin.center(); WindowLogin.show(); }
                if (!WindowError.hidden) { WindowError.center(); WindowError.show(); }
                if (!Window1.hidden) { Window1.center(); Window1.show(); }
                if (!WindowAbout.hidden) { WindowAbout.center(); WindowAbout.show(); }
                if (!Registration.hidden) { Registration.center(); Registration.show(); }
            }
    
        </script>
    </head>
    <body>
        <form method="post" action="Default.aspx" id="form1">
    <div class="aspNetHidden">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQ5MjY2NzY5MA9kFgICAw9kFggCAw8UKhJTeXN0ZW0uV2ViLlVJLlBhaXIBDwUJdnNNZW1iZXJzFCsAAQ8FBlJlYWRlchQrBAEPBQRiYXNlFgIeCklEUHJvcGVydHkFA0tleWQCBQ8UKwQBDwUJdnNNZW1iZXJzFCsAAQ8FBlJlYWRlchQrBAEPBQRiYXNlFgIfAAUCSWRkAg0PZBYCZg9kFgJmD2QWAgIDDxQrBAEPBQl2c01lbWJlcnMUKwACDwUOQXV0b0xvYWRQYXJhbXMPAgIUKwACFCsEAQ8FBGJhc2UWBh4ETmFtZQUFc3RhcnQeBVZhbHVlBQEwHgRNb2RlCylpRXh0LnYxTmV0LlBhcmFtZXRlck1vZGUsIEV4dC52MU5ldCwgVmVyc2lvbj0xLjcuMC4yNjIxMywgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0yZTEyY2UzZDAxNzZjZDg3ABQrBAEPBQRiYXNlFgYfAQUFbGltaXQfAgUCMTUfAwsrBQAPBQZSZWFkZXIUKwQBDwUEYmFzZRYCHwAFAklkZAIPD2QWAgIJD2QWAgIBDxQrBAEPBQRiYXNlDxYCHgZMYXlvdXQFBGF1dG9kZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WLAUQUmVzb3VyY2VNYW5hZ2VyMQULV2luZG93TG9naW4FBUxvZ2luBQNQd2QFB0J1dHRvbjEFC1dpbmRvd0Vycm9yBQdCdXR0b24yBQtXaW5kb3dBYm91dAUHQnV0dG9uMwUHV2luZG93MQUJVGFiUGFuZWwxBQpHcmlkUGFuZWwxBQ5QYWdpbmdUb29sYmFyMQUOUGFuZWxQYXJhbWV0ZXIFAklkBQlGaXJzdE5hbWUFCExhc3ROYW1lBQdDb21wYW55BRFGdW5jdGlvbkluQ29tcGFueQUITGFuZ3VhZ2UFA0xvZwUIUGFzc3dvcmQFD0NvbmZpcm1QYXNzd29yZAUFRW1haWwFD1JlZ2lzdGVyaW5nRGF0ZQUOTGFzdENvbm5lY3Rpb24FC1Byb2ZpbGVOYW1lBQpCdXR0b25TYXZlBQxSZWdpc3RyYXRpb24FElJlZ2lzdHJhdGlvbkNsaWVudAUUUmVnaXN0cmF0aW9uTGFuZ3VhZ2UFFFJlZ2lzdHJhdGlvbkxhc3ROYW1lBRVSZWdpc3RyYXRpb25GaXJzdE5hbWUFE1JlZ2lzdHJhdGlvbkNvbXBhbnkFFFJlZ2lzdHJhdGlvbkZ1bmN0aW9uBRFSZWdpc3RyYXRpb25FbWFpbAURUmVnaXN0cmF0aW9uUGhvbmUFE1JlZ2lzdHJhdGlvbkNvbW1lbnQFBWN0bDQ5BQxQYW5lbENhcHRjaGEFBWN0bDUzBRZSZWdpc3RyYXRpb25WYWxpZGF0aW9uBRJSZWdpc3RyYXRpb25CdXR0b24FBWN0bDYxksmG78dcUAcPiSXv2lHEpOMgf0kdy/yyrMibXvF056I=" />
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <div class="aspNetHidden">
    
    	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="635AEA9C" />
    	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAKf5/lgTlya7Bh29sEC9dRTBUdYWMLkI/tXuqI0HQ389Bu2YYYKIq28s7LsMh6BzaOkMGbWLQcM8yAMYwc1cYyC" />
    </div>
        
        
        
        
        
        
        <div id="GridPanel1_Content" class="x-hidden"></div><div id="PanelParameter_Content" class="x-hidden"></div>
        
        <Ext.v1Net.InitScript>
    	<script type="text/javascript" src="/project_name/extjs/adapter/ext/ext-base-js/ext.axd?v=26213"></script>
    	<script type="text/javascript" src="/project_name/extjs/ext-all-js/ext.axd?v=26213"></script>
    	<script type="text/javascript" src="/project_name/extnet/extnet-core-js/ext.axd?v=26213"></script>
    	<script type="text/javascript" src="/project_name/extnet/locale/ext-lang-fr-js/ext.axd?v=26213"></script>
    	<script type="text/javascript" src="/project_name/WebResource.axd?d=BQ_qNswYDEBNq0xgd5atcau920jOAjI1ZTIkUE84Zm8E9qx1zj-FM4OylR0ePmPG1J190O4cQVlRM_RdI7KTmwewwZnS9T38G3SiNZauxFBcADu2M0k7NYTXhoR6KKkfS7YTm5OyX4JnIFuNpHV2JGh2jzKWWsmZRz3HwTMIT801&amp;t=635496752358720000"></script>
    	<script type="text/javascript">
    	//<![CDATA[
    		Ext.v1net.ResourceMgr.init({id:"ResourceManager1",BLANK_IMAGE_URL:"/project_name/extjs/resources/images/default/s-gif/ext.axd",aspForm:"form1",theme:"blue",appName:"project_name",icons:["Lock","Lightning","Disk","Cancel"]});Ext.onReady(function(){Ext.QuickTips.init();Ext.apply(Ext.v1net.DirectMethods, { GenerateValidation:function(config){Ext.v1net.DirectMethod.request("GenerateValidation",Ext.applyIf(config || {}, {}));} });this.StoreLanguage=new Ext.ux.data.PagingStore({proxyId:"StoreLanguage",autoLoad:true,reader:new Ext.data.JsonReader({fields:[{name:"Key",type:"int"},{name:"Value",type:"string"}],idProperty:"Key"}),directEventConfig:{},proxy:new Ext.data.PagingMemoryProxy([{"Key":2,"Value":"Anglais"},{"Key":1,"Value":"Fran?ais"}], false)});this.StoreClient=new Ext.ux.data.PagingStore({proxyId:"StoreClient",autoLoad:true,reader:new Ext.data.JsonReader({fields:[{name:"Id",type:"int"},{name:"Name",type:"string"}],idProperty:"Id"}),directEventConfig:{},proxy:new Ext.data.PagingMemoryProxy([{"Id":0,"Name":"GEOPLC"}], false)});new Ext.Window({id:"WindowLogin",renderTo:Ext.get("form1"),height:150,width:350,items:[{id:"Login",xtype:"textfield",fieldLabel:"Identifiant",autoFocus:true,listeners:{specialkey:{fn:function(item,e){if (e.getKey() == e.ENTER) { Button1.ajaxListeners.click.fire(); }}}}},{id:"Pwd",xtype:"textfield",fieldLabel:"Mot de Passe",inputType:"password",listeners:{specialkey:{fn:function(item,e){if (e.getKey() == e.ENTER) { Button1.ajaxListeners.click.fire(); }}}}}],layout:"form",closable:false,buttonAlign:"center",buttons:[{id:"Button1",iconCls:"icon-lightning",text:"Connexion",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.v1net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"V?rification en Cours..."},userFailure:function(response,result,el,type,action,extraParams,o){WindowError.show();},control:this});},delay:20}}}],draggable:false,iconCls:"icon-lock",padding:20,title:"Login",tools:[{id:"gear",handler:generateValidation,qtip:"Demande Inscription ou Information"},{id:"help",handler:function(event,toolEl,panel){WindowAbout.show();},qtip:"A propos"}],hidden:false,resizable:false});new Ext.Window({id:"WindowError",labelWidth:5,hidden:true,renderTo:Ext.get("form1"),height:150,width:350,items:[{id:"ctl07",xtype:"label",html:"<div class='text-red'>...div>"},{id:"ctl09",xtype:"label",html:"<div class='text-red'>...</div>"}],layout:"form",closable:false,buttonAlign:"center",buttons:[{id:"Button2",text:"Fermer",listeners:{click:{fn:function(item,e){Login.clear(); Pwd.clear(); WindowError.hide();}}}}],draggable:false,padding:10,resizable:false});new Ext.Window({id:"WindowAbout",labelWidth:5,hidden:true,renderTo:Ext.get("form1"),height:200,width:350,items:[{id:"Label1",xtype:"label",html:"<div class='text-blue-normal'>...</div>"},{id:"Label2",xtype:"label",html:"<div class='text-blue-spec'>...</div>"},{id:"Label3",xtype:"label",html:"<div class='text-blue-normal'>Version : 1.0</div>"}],layout:"form",closable:false,buttonAlign:"center",buttons:[{id:"Button3",text:"Fermer",listeners:{click:{fn:function(item,e){WindowAbout.hide();}}}}],draggable:false,padding:10,resizable:false});new Ext.Window({id:"Window1",hidden:true,renderTo:Ext.get("form1"),height:420,width:450,items:{id:"TabPanel1",xtype:"tabpanel",width:400,items:[{store:this.Store1=new Ext.ux.data.PagingStore({proxyId:"Store1",autoLoad:{params:{"start":0,"limit":15}},reader:new Ext.data.JsonReader({fields:[{name:"Id"},{name:"Name"}],idProperty:"Id"}),directEventConfig:{},proxy:new Ext.data.PagingMemoryProxy({}),beforeLoadParams:function(store,options){if (!options.params){options.params = {};};Ext.apply(options.params,{});Ext.applyIf(options.params,{"start":0,"limit":15});}}),id:"GridPanel1",xtype:"netgrid",autoWidth:true,height:290,bbar:{id:"PagingToolbar1",xtype:"ux.paging",pageSize:15,hideRefresh:true,prependButtons:true},title:"Connexion",autoExpandColumn:"Name",hideHeaders:true,loadMask:{showMask:true},sm:this.RowSelectionModel1=new Ext.grid.RowSelectionModel({proxyId:"RowSelectionModel1",singleSelect:true}),stripeRows:true,view:this.GridView1=new Ext.grid.GridView({proxyId:"GridView1",scrollOffset:2}),selectionMemory:false,cm:this.ColumnModel1=new Ext.grid.ColumnModel({proxyId:"ColumnModel1",columns:[{align:"center",dataIndex:"Name",header:"Client",id:"Name"}]}),directEvents:{rowclick:{fn:function(item,rowIndex,e){var params=arguments;Ext.v1net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"Connexion en cours..."},control:this,action:'RowClick'});},delay:20}}},{id:"PanelParameter",monitorValid:true,labelWidth:150,height:440,items:[{id:"Id",xtype:"hidden"},{id:"FirstName",xtype:"textfield",anchor:"100%",fieldLabel:"Nom"},{id:"LastName",xtype:"textfield",anchor:"100%",fieldLabel:"Pr?nom"},{id:"Company",xtype:"textfield",anchor:"100%",fieldLabel:"Entreprise"},{id:"FunctionInCompany",xtype:"textfield",anchor:"100%",fieldLabel:"Fonction"},{id:"Language",xtype:"combo",anchor:"100%",fieldLabel:"Langue",selectOnFocus:true,displayField:"Value",hiddenName:"Language_Value",mode:"local",queryDelay:10,selectOnFocus:true,triggerAction:"all",valueField:"Key",store:StoreLanguage,submitValue:true},{id:"Log",xtype:"textfield",anchor:"100%",fieldLabel:"Identifiant",dataIndex:"Login",readOnly:true},{id:"Password",xtype:"textfield",anchor:"100%",fieldLabel:"Mot de passe",inputType:"password"},{id:"ConfirmPassword",xtype:"textfield",anchor:"100%",fieldLabel:"Confirmer Mot de passe",inputType:"password"},{id:"Email",xtype:"textfield",anchor:"100%",fieldLabel:"Email",vtype:"email"},{id:"RegisteringDate",xtype:"datefield",anchor:"100%",fieldLabel:"Date d'enregistrement",dataIndex:"RegisteringDate",readOnly:true,vtype:"daterange",hideTrigger:true,format:"d/m/Y"},{id:"LastConnection",xtype:"datefield",anchor:"100%",fieldLabel:"Derni?re Visite",dataIndex:"LastConnection",readOnly:true,vtype:"daterange",hideTrigger:true,format:"d/m/Y"},{id:"ProfileName",xtype:"textfield",anchor:"100%",fieldLabel:"Profil",dataIndex:"ProfileName",readOnly:true}],layout:"form",buttonAlign:"center",buttons:[{id:"ButtonSave",iconCls:"icon-disk",text:"Enregistrer",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.v1net.DirectEvent.confirmRequest({userSuccess:function(response,result,el,type,action,extraParams,o){Ext.Msg.alert('Sauvegarde','...');},userFailure:function(response,result,el,type,action,extraParams,o){Ext.Msg.alert('Erreur','...');},control:this});},delay:20}}}],frame:true,padding:10,title:"Mon Compte"}],activeTab:0},layout:"fit",closable:false,draggable:false,title:"Utilisateur",resizable:false});new Ext.Window({id:"Registration",hidden:true,renderTo:Ext.get("form1"),height:480,width:450,items:[{id:"RegistrationClient",xtype:"combo",anchor:"100%",fieldLabel:"Client",displayField:"Name",hiddenName:"RegistrationClient_Value",triggerAction:"all",valueField:"Id",store:StoreClient,submitValue:true},{id:"RegistrationLanguage",xtype:"combo",anchor:"100%",fieldLabel:"Langue",displayField:"Value",hiddenName:"RegistrationLanguage_Value",triggerAction:"all",valueField:"Key",store:StoreLanguage,submitValue:true},{id:"RegistrationLastName",xtype:"textfield",anchor:"100%",fieldLabel:"Nom"},{id:"RegistrationFirstName",xtype:"textfield",anchor:"100%",fieldLabel:"Pr?nom"},{id:"RegistrationCompany",xtype:"textfield",anchor:"100%",fieldLabel:"Organisme"},{id:"RegistrationFunction",xtype:"textfield",anchor:"100%",fieldLabel:"Fonction"},{id:"RegistrationEmail",xtype:"textfield",anchor:"100%",fieldLabel:"Email",vtype:"email"},{id:"RegistrationPhone",xtype:"textfield",anchor:"100%",fieldLabel:"T?l?phone"},{id:"ctl46",xtype:"container",labelAlign:"top",items:{id:"RegistrationComment",xtype:"textarea",anchor:"100%",fieldLabel:"Message",height:70},layout:"form"},{id:"RegristrationAntiBot",xtype:"container",style:"margin-bottom: 5px;",items:[{id:"ctl49",columnWidth:0.5,unstyled:true},{id:"PanelCaptcha",height:60,width:300,items:{id:"Captcha",xtype:"netimage",height:60,width:300},layout:"auto"},{id:"ctl53",columnWidth:0.5,unstyled:true}],layout:"netcolumn"},{id:"RegistrationValidation",xtype:"textfield",anchor:"100%",fieldLabel:"Validation"},{id:"ctl57",xtype:"container",items:{id:"RegistrationSuccess",xtype:"label",html:"Inscription enregistr? avec succ?s",hidden:true},layout:"form"}],layout:"form",closable:false,buttonAlign:"center",buttons:[{id:"RegistrationButton",iconCls:"icon-disk",text:"Enregistrer",directEvents:{click:{fn:function(item,e){var params=arguments;Ext.v1net.DirectEvent.confirmRequest({eventMask:{showMask:true,msg:"Eneregistrement en cours",removeMask:true},userSuccess:function(response,result,el,type,action,extraParams,o){manageRegistration(result.extraParamsResponse);},userFailure:function(response,result,el,type,action,extraParams,o){Ext.Msg.alert('Erreur', 'Erreur non g?r?');},control:this});},delay:20}}},{id:"ctl61",iconCls:"icon-cancel",text:"Fermer",listeners:{click:{fn:function(item,e){Registration.hide();}}}}],draggable:false,padding:10,title:"Inscription",resizable:false});new Ext.v1net.Viewport({id:"Viewport1",renderTo:"form1",monitorResize:true,layout:"fit",listeners:{resize:{fn:resize}}});});
    	//]]>
    	</script>
    </Ext.v1Net.InitScript><Ext.v1Net.InitStyle>
    	<link rel="stylesheet" type="text/css" href="/project_name/extjs/resources/css/ext-all-embedded-css/ext.axd?v=26213" />
    </Ext.v1Net.InitStyle><Ext.v1Net.InitScript.Warning><script type="text/javascript">Ext.onReady(function(){Ext.Msg.show({title:'Warning',msg:'The <code>web.config</code> file for this project is missing the required DirectRequestModule.<br /><br /><div style="margin-left:48px;"><b>Example</b><br /><br /><code>&lt;system.web><br />&nbsp;&nbsp;&lt;httpModules><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name="DirectRequestModule" type="Ext.v1Net.DirectRequestModule, Ext.v1Net" /><br />&nbsp;&nbsp;&lt;/httpModules><br />&lt;/system.web></code><br /><br />More information available at "<a href="https://examples2.ext.net/?/Getting_Started/Introduction/Overview/">Getting Started</a>".</div><br />',buttons: Ext.Msg.OK,icon: Ext.MessageBox.WARNING});});</script></Ext.v1Net.InitScript.Warning>
        </form>
    </body>
    </html>
  9. #19
    There are two things.

    This
    <script type="text/javascript" src="/project_name/WebResource.axd?d=BQ_qNswYDEBNq0xgd5atcau920jOAjI1ZTIkUE84Zm8E9qx1zj-FM4OylR0ePmPG1J190O4cQVlRM_RdI7KTmwewwZnS9T38G3SiNZauxFBcADu2M0k7NYTXhoR6KKkfS7YTm5OyX4JnIFuNpHV2JGh2jzKWWsmZRz3HwTMIT801&amp;t=635496752358720000"></script>
    It is the "extnet-data..." JavaScript file. Though, the URL should be something like this:
    <script type="text/javascript" src="/extnet/extnet-data-js/ext.axd?v=26213"></script>
    It needs to determine why it doesn't render the URL with "ext.axd".
    the path has already been changed. Every Ext.Net is Ext.v1Net now.

    extNetDataItem = new ClientScriptItem(
                            "Ext.v1Net.Build.Ext.v1Net.extnet.extnet-data.js",
                            "Ext.v1Net.Build.Ext.v1Net.extnet.extnet-data-debug.js",
                            "/extnet/extnet-data.js",
                            "/extnet/extnet-data-debug.js");
    Are you sure the embedded path is correct here? I guess you have not renamed the "Build\Ext.Net" folder to "Build\Ext.v1Net".

    Another thing is:
    <Ext.v1Net.InitScript.Warning>
        <script type="text/javascript">
            Ext.onReady(function(){Ext.Msg.show({title:'Warning',msg:'The <code>web.config</code> file for this project is missing the required DirectRequestModule.<br /><br /><div style="margin-left:48px;"><b>Example</b><br /><br /><code>&lt;system.web><br />&nbsp;&nbsp;&lt;httpModules><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name="DirectRequestModule" type="Ext.v1Net.DirectRequestModule, Ext.v1Net" /><br />&nbsp;&nbsp;&lt;/httpModules><br />&lt;/system.web></code><br /><br />More information available at "<a href="https://examples2.ext.net/?/Getting_Started/Introduction/Overview/">Getting Started</a>".</div><br />',buttons: Ext.Msg.OK,icon: Ext.MessageBox.WARNING});});
        </script>
    </Ext.v1Net.InitScript.Warning>
    It looks the DirectRequestModule is not attached.
  10. #20
    I guess everything is ok :

    Click image for larger version. 

Name:	Capt1.PNG 
Views:	10 
Size:	20.4 KB 
ID:	15911

    Click image for larger version. 

Name:	Capt2.PNG 
Views:	9 
Size:	9.6 KB 
ID:	15921

    For the second point, you can see in the webconfig that DirectRequestModule looks good.
Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. [CLOSED] CycleButton built from store
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 24, 2013, 12:52 AM
  2. [Gauge] Minimum not correct when built in code behind.
    By joris.moonen in forum 2.x Help
    Replies: 0
    Last Post: May 10, 2012, 10:08 AM
  3. Replies: 14
    Last Post: Mar 02, 2012, 9:22 AM
  4. are they in built method?
    By joydeepsen in forum 1.x Help
    Replies: 2
    Last Post: Jun 04, 2009, 4:18 AM
  5. [CLOSED] Will v0.6 be released/built under .net 2.0 framework
    By stevejebson in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 09, 2008, 7:35 PM

Tags for this Thread

Posting Permissions