Jan 14, 2015, 9:32 AM
[CLOSED] Internet Explorer 11 won't display any ext.net dynamic control after deployment
I am working with Framework 4.5.1 and VS2013 Update 4.
In the develpoment environment the application works, but in production environment, using IE11 I can't get ext controls.
Using browser javascript console Ext.net is a null reference.
I tried both witn Chrome and FireFox and the page is displayed.
This happens both on a 2008 R2 Server with Framework 4.5.2 and a 2012 R2 Server.
In this project I got also errors with the license activation when the licensekey is located in global.asax instead of in web.config. If you want I may open a new thread.
I have referenced the last svn version compiled with 4.5.1 WebForm Debug.
There are no errors in the server "Application Events"
Html page:
In the develpoment environment the application works, but in production environment, using IE11 I can't get ext controls.
Using browser javascript console Ext.net is a null reference.
I tried both witn Chrome and FireFox and the page is displayed.
This happens both on a 2008 R2 Server with Framework 4.5.2 and a 2012 R2 Server.
In this project I got also errors with the license activation when the licensekey is located in global.asax instead of in web.config. If you want I may open a new thread.
I have referenced the last svn version compiled with 4.5.1 WebForm Debug.
There are no errors in the server "Application Events"
Html page:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ButtonLoading.aspx.vb" Inherits="BBros.ExtCookbook.ButtonLoadingStae" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Il pulsante finisce da solo l'animazione quando esce dal suo evento click</div>
</form>
</body>
</html>
Code behind:Imports Ext.Net
Public Class ButtonLoadingStae
Inherits System.Web.UI.Page
Dim btn As Button
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim rm As New ResourceManager
Me.Controls.Add(rm)
btn = New Button With {.Text = "Cliccami"}
btn.LoadingState = New ButtonLoadingState With {.Text = "Aspetta..."}
AddHandler btn.DirectEvents.Click.Event, AddressOf btn_Click
Me.Controls.Add(btn)
End Sub
Private Sub btn_Click(sender As Object, e As EventArgs)
System.Threading.Thread.Sleep(2000)
End Sub
End Class
My web.config file is this (license has been replaced with x):<?xml version="1.0"?>
<!--
Per ulteriori informazioni sulla configurazione dell'applicazione ASP.NET, visitare
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>
<extnet theme="Gray" licenseKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5.1"/>
<httpRuntime targetFramework="4.5"/>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
<pages enableSessionState="true">
<controls>
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
<namespaces>
<add namespace="Ext.Net"/>
<!--<add namespace="Ext.Net.MVC"/>-->
</namespaces>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
</modules>
<handlers>
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
HTML Page in Internet Explorer 11.0.9600.17498 does not display the button and its source is this and it is identical to the chrome html:<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" rel="stylesheet" href="/extcookbook/extjs/packages/ext_theme_gray/build/resources/ext-theme-gray-all-embedded-css/ext.axd?v=37070" id="ext-theme" />
<link type="text/css" rel="stylesheet" href="/extcookbook/extnet/resources/css/extnet-all-embedded-css/ext.axd?v=37070" id="extnet-styles" />
<script type="text/javascript" src="/extcookbook/extjs/ext-all-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extjs/packages/ext_theme_gray/build/ext-theme-gray-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extnet/extnet-all-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extnet/locale/ext-locale-it-js/ext.axd?v=37070"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
</title>
<script type="text/javascript">
//<![CDATA[
Ext.net.ResourceMgr.init({id:"ctl03",aspForm:"form1",theme:"gray",appName:"extcookbook"});Ext.onReady(function(){Ext.create("Ext.button.Button",{id:"ctl04",renderTo:"App.ctl04_Container",text:"Cliccami",loadingState:{text:"Aspetta..."},directEvents:{click:{fn:function(item,e){Ext.net.directRequest({control:this});}}}});});
//]]>
</script>
</head>
<body>
<form method="post" action="buttonloading.aspx" id="form1">
<div class="aspNetHidden">
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="E0111240" />
</div>
<div>
Il pulsante finisce da solo l'animazione quando esce dal suo evento click</div>
</form>
</body>
</html>
<div id="App.ctl04_Container"></div>
Chrome page is this (identical to IE):
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" rel="stylesheet" href="/extcookbook/extjs/packages/ext_theme_gray/build/resources/ext-theme-gray-all-embedded-css/ext.axd?v=37070" id="ext-theme" />
<link type="text/css" rel="stylesheet" href="/extcookbook/extnet/resources/css/extnet-all-embedded-css/ext.axd?v=37070" id="extnet-styles" />
<script type="text/javascript" src="/extcookbook/extjs/ext-all-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extjs/packages/ext_theme_gray/build/ext-theme-gray-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extnet/extnet-all-js/ext.axd?v=37070"></script>
<script type="text/javascript" src="/extcookbook/extnet/locale/ext-locale-it-js/ext.axd?v=37070"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
</title>
<script type="text/javascript">
//<![CDATA[
Ext.net.ResourceMgr.init({id:"ctl03",aspForm:"form1",theme:"gray",appName:"extcookbook"});Ext.onReady(function(){Ext.create("Ext.button.Button",{id:"ctl04",renderTo:"App.ctl04_Container",text:"Cliccami",loadingState:{text:"Aspetta..."},directEvents:{click:{fn:function(item,e){Ext.net.directRequest({control:this});}}}});});
//]]>
</script>
</head>
<body>
<form method="post" action="buttonloading.aspx" id="form1">
<div class="aspNetHidden">
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="E0111240" />
</div>
<div>
Il pulsante finisce da solo l'animazione quando esce dal suo evento click</div>
</form>
</body>
</html>
<div id="App.ctl04_Container"></div>
Could you help me?
Last edited by Daniil; Jan 15, 2015 at 8:35 AM.
Reason: [CLOSED]