Sep 13, 2013, 12:55 PM
-
-
Sep 13, 2013, 2:43 PMyes, both extjs libraries load and function. I have functioning pages with textareas, textfields, radiobuttons, treepanels, gridpanels and imagebuttons
looking in firebug, heres the snip from comments in 2 seperate loaded axd files
Ext JS Library 3.0+ This file is part of Ext JS 4.2
-
Sep 13, 2013, 4:39 PMFor some reason, it doesn't load the resources in my project.
Could you, please, demonstrate the entire Web.config? -
Sep 13, 2013, 5:47 PMDaniil, I've sent it to support@object.net
also here's the things we had to do:
- Rename Ext.Net folders to Ext.v1Net
- Rename Assembly name to Ext.v1Net and Default namespace to Ext.v1Net in project file
- Replace Ext.Net with Ext.v1Net in .CS files
- Replace HttpContext.Current.Items["xx"] with HttpContext.Current.Items["v1xx"] in .CS files
- Replace Ext.net with Ext.v1net in all files
- Replace X-Ext.Net with X-Ext.v1Net in .JS files
- You'll also need to change namespaces in Ext.Net.Utilities & NewtonSoft
Last edited by betamax; Sep 13, 2013 at 6:08 PM. - Rename Ext.Net folders to Ext.v1Net
-
Sep 16, 2013, 5:40 AMThank you for the Web.config and the instruction.
I see it is going to work.
You made many changes. Probably, you need to apply some more changes regarding license keys.
Probably, it is not getting read from a Web.config.
There is the following ResourceManager's property.
It is from v2. It looks very similar in v1.public virtual string LicenseKey { get { if (this.licenseKey != null) { return this.licenseKey; } if (this.DesignMode) { return ""; } if (HttpContext.Current != null) { string token = "Ext.Net.LicenseKey"; object obj = HttpContext.Current.Application[token]; if (obj == null) { obj = ResourceManager.Session(token); } if (obj != null && obj is string) { return (string)obj; } } return GlobalConfig.Settings.LicenseKey; } set { this.licenseKey = value; } }
You could debug it trying to understand why it is not getting read. Also you can consider a possibility to set up a license key in another way, for example, in the global Application object. -
Sep 16, 2013, 2:09 PMOk. That's a start. Thanks for the suggestion. We will look into this asap.
-
Sep 24, 2013, 8:01 PMYou were close in saying it was not getting read from config file. This line of code defines where Ext looks for the key:
We changed that hard-coded string to "extnet1" and now v1 will look for extnet1 and version 2 will look for extnet in web.config.private static GlobalConfig settings = ConfigurationManager.GetSection("extnet") as GlobalConfig;
-
Sep 25, 2013, 3:36 AMSo, have the unlicensed messages disappeared?
-
Sep 25, 2013, 2:59 PMyes.
FYI - there is also an issue where in certain scenarios the two DirectRequestModuleswill both run, as in when changing the page encoding type, and though they are identical, the ResourceManagers that are subsequently called are not. The result is a empty response context being returned.
We have had to add code in DirectRequestModule that determines which version of ext is making the request. Then we either allow the code to run through, or return. -
Sep 25, 2013, 3:19 PMOK, thank you for all the details. You have done the good job.
I am not sure we are going to support it in Ext.NET. Though, we will bear it in mind.
Anyway, this thread will help others who would like to use both v1 and v2 in the same application.
Similar Threads
-
[CLOSED] Running ext.net 1 and 2 side by side
By bogc in forum 2.x Legacy Premium HelpReplies: 1Last Post: Nov 06, 2012, 5:40 PM -
[CLOSED] Store to be client-side or server-side paginated upon the checkbox change
By Aparna_B in forum 1.x Legacy Premium HelpReplies: 3Last Post: Dec 26, 2011, 1:32 PM -
[CLOSED] Adding Items to Store Client-side, want to retrieve server side
By rthiney in forum 1.x Legacy Premium HelpReplies: 1Last Post: Dec 01, 2010, 5:14 PM -
[CLOSED] Example of dynamic window with form from Client Side, created on Server Side
By rthiney in forum 1.x Legacy Premium HelpReplies: 4Last Post: Mar 19, 2010, 11:35 AM -
Creating a composite server-side/client-side Control based on Coolite/ExtJs
By r_honey in forum 1.x HelpReplies: 6Last Post: Sep 01, 2009, 1:06 PM