PDA

View Full Version : Ext.Net & Ext.Net.Mobile in same project, ItemTag validation (_tkn_1): Reference token (ext.net.global.icons) was not found.



unicorn64
Mar 18, 2017, 1:33 PM
Hi all,
We have a Asp.Net MVC project using Ext.Net and we try to develop mobile pages using Ext.Net.Mobile on same project.
I added Ext.Net.Mobile from Nuget to working project, and run it.
It gives error because of duplicate names on handler and module sections in web.config for DirectRequestHandler and DirectRequestModule, i renamed like



<system.webServer>
<httpErrors errorMode="Detailed" />

<handlers>
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
<add name="MobileDirectRequestHandler" verb="*" path="*/ext-mobile.axd" preCondition="integratedMode" type="Ext.Net.Mobile.ResourceHandler" />
</handlers>

<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
<add name="MobileDirectRequestModule" preCondition="managedHandler" type="Ext.Net.Mobile.DirectRequestModule, Ext.Net.Mobile" />
</modules>
</system.webServer>


this time it gives error,



ItemTag validation (_tkn_1): Reference token (ext.net.global.icons) was not found.

[Exception: ItemTag validation (_tkn_1): Reference token (ext.net.global.icons) was not found.]
Transformer.NET.ItemTag.Validate() +204
Transformer.NET.TextTransformer.Handle() +159
Transformer.NET.TextTransformer.Transform(List`1 tokensType, Dictionary`2 variables) +28
Transformer.NET.TextTransformer.Transform(List`1 tokensType) +11
Transformer.NET.TextTransformer.Transform() +27
Ext.Net.ExtNetTransformer.Transform(String text) in c:\Sources\Ext.NET.4\Premium\src\Core\ExtNetTransf ormer.cs:137
Ext.Net.InitScriptFilter.Transform() in c:\Sources\Ext.NET.4\Premium\src\Core\InitScriptFi lter.cs:69
Ext.Net.InitScriptFilter.Flush() in c:\Sources\Ext.NET.4\Premium\src\Core\InitScriptFi lter.cs:59
Ext.Net.Mobile.InitScriptFilter.Flush() +88
System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +9762825
System.Web.HttpResponse.FilterOutput() +104
System.Web.CallFilterExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +58
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +69


do you have any idea? how can Ext.Net & Ext.Net.Mobile could be used in same project?