Oct 20, 2014, 10:08 AM
[CLOSED] Ext is undefined & re-built Ext.Net
Hello,
for our project, we need to use Ext.Net 1.x and Ext.Net 2.x in reference because we made our web application in 1.x a few years ago and now we want to slowly migrate to 2.x.
So, initially, we want to use both version because it will be very expensive (in time) to migrate everything.
To use both, we need to change the Ext.Net.dll of one version.
To do this, we get the source code of 2.x.
We built a sample project which works with Ext.Net 2.x.
Now we try to rename it.
To test, we changed this :
- the default namespace in the 2.x sourcecode
- the namespace of every files
- every webResource in AssemblyInfo.cs
- the Web.config of our sample project.
The compilation of Ext.Net2 (the new name) do not throw any errors.
But when we try to generate the project, we have this error :
"Ext" is undefined on :
for our project, we need to use Ext.Net 1.x and Ext.Net 2.x in reference because we made our web application in 1.x a few years ago and now we want to slowly migrate to 2.x.
So, initially, we want to use both version because it will be very expensive (in time) to migrate everything.
To use both, we need to change the Ext.Net.dll of one version.
To do this, we get the source code of 2.x.
We built a sample project which works with Ext.Net 2.x.
Now we try to rename it.
To test, we changed this :
- the default namespace in the 2.x sourcecode
- the namespace of every files
- every webResource in AssemblyInfo.cs
- the Web.config of our sample project.
The compilation of Ext.Net2 (the new name) do not throw any errors.
But when we try to generate the project, we have this error :
"Ext" is undefined on :
<script type="text/javascript">
//<![CDATA[
Ext.net.ResourceMgr.init({id:"ResourceManager1",aspForm:"form1",theme:"gray",appName:"Test_Tableau_Bord",icons:[{name:"Information",url:"/Test_Tableau_Bord/WebResource.axd?d=rCuciMpIuTMe2gBP1iGvW5lpteGWUDwa8Ql8CS7SyeoC4fy3ZTywkLvQ8NOHCfEHf0PA6z3JwzZr8dXyVP3zUCdcJpGL28VsURpwIrCGCTzyqdBCkx5euVK1_-h2udmuNTZNjUNi2HjC1A96Fv1MzQ2&t=635494012503630000"},{name:"Table",url:"/Test_Tableau_Bord/WebResource.axd?d=KVYltv9pZmJ7b4F_byExMIPN0pMa26GP5rSarHBXfBAaQYyK9UAOjHCP_aYxQcIfHeP2aKQIfu5iulpgPBBW0lkT8aZNgYrV_iyWvMn7sLa38GTZu2U-Y69N7WGWwZZWbnx23u4 [...I cut this]
//]]>
</scrip
With firebug, I have these errors :"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=zZ7PktA2Vr2DX3-zLhBeBZU64nd-OMC5pX-l3YgYfNFe_6eQMSFHd35SLojPe8t8b2vQK1Chx35dK4uNZb0-MQsG1F-yHdesgTb-98pnoIA7Ds9SX_q9GaLz1GJUx8RTxFQDjPP-wWff7CzcLLV8ceBoUewQyFhwUqfHfS5w5tDkevyI4xc7fBStE4OUr0OHdkRE6QDmJT9YDBC1kfjZNA2&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=s80zOnwElwT3FdcBgTt9On-CLWoHwImgPDI9e2hBRCj3rL7uXu7jB86QXVQEdKgrWXhrRhVs-yRMUfnVPnd2d9lRiAwO8ROleXYOfJU8U-viBxb_iL1aY42MWbZZzZG2L3sfonUYh7qZr7q_azFrdaMWqjJOARFCk61Im_OMN9V0F_Vbk76ULpc0Vsvxh77-0&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=CfsPshHlsfpEZwv3c2RXxcs1g355TF50N0cis9m4hfuvwF2VzuTVSA71RlgXEmSTaWdW5616xVHUoHYCokWda4uesMg7zNSjZU-yWnjBkx-9QIiqj_VcRodxZAw21buhbLk__Td5r1U3H6gonkChg6pjO5TnMawr3me0BOfC2GiUo_EqTI8XNykjZk25figt0&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=ylozb5tQudCk5r37PMpw4VZ7bGN9x7XM83H7TJD2EKCSJV4E2lMZ98WeUdxDnOvPej2dEerV_x_HE1dICq5JtpmJt7g3Yzd66wYzDTQ5u8bW5fggUlsCdspTe19iqAucLqpshfz3lvF8-tvWLp6vLg2&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=4NA1P-P2nWHZ1NdjZn0S2pyAaqKTjS-EGu1J4PRRmjMyBLACBcdkEDBJnFJdU3wOWFfHitYPQ-ozvAP6RU-rTHZXVxwVkqz-eHokpK5ILN2AwUe3olHzzTqh-OP-3ev5lFiNmD5w8Awq_Ec4tP3oRw2&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=ahos8t34Iw02W4yXwK7OzVAfVa3I5l7RJUYO29xb4ZLFazeY8dwtD68co8UqzgKq1FRn5n3Mhk2D0kTcBQhdzD5la787opcpBWD_bF43Symwi9A-gKxCQTNR549RplDgF40GHmeMFilVx0TwkzREEAv6FH6RLOBXqV0cSV0jwIQ1&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=4NA1P-P2nWHZ1NdjZn0S2pyAaqKTjS-EGu1J4PRRmjMyBLACBcdkEDBJnFJdU3wOWFfHitYPQ-ozvAP6RU-rTHZXVxwVkqz-eHokpK5ILN2AwUe3olHzzTqh-OP-3ev5lFiNmD5w8Awq_Ec4tP3oRw2&t=635494012503630000"
WebReso...3630000
"NetworkError: 404 Not Found - http://localhost/Test_Tableau_Bord/WebResource.axd?d=ahos8t34Iw02W4yXwK7OzVAfVa3I5l7RJUYO29xb4ZLFazeY8dwtD68co8UqzgKq1FRn5n3Mhk2D0kTcBQhdzD5la787opcpBWD_bF43Symwi9A-gKxCQTNR549RplDgF40GHmeMFilVx0TwkzREEAv6FH6RLOBXqV0cSV0jwIQ1&t=635494012503630000"
WebReso...3630000
ReferenceError: Ext is not defined
Ext.net.ResourceMgr.init({id:"ResourceManager1",aspForm:"form1",theme:"gray",app...
Do you have any idea?
Last edited by Daniil; Jan 06, 2015 at 4:25 PM.
Reason: [CLOSED]