[1.2] [DirectMethodProxyID(IDMode = DirectMethodProxyIDMode.ClientID)] Not work properly on Production server

  1. #1

    [1.2] [DirectMethodProxyID(IDMode = DirectMethodProxyIDMode.ClientID)] Not work properly on Production server

    I generate some UserControls dinamicaly loaded from a class.

    For every UserControl i've set
    [DirectMethodProxyID(IDMode = DirectMethodProxyIDMode.ClientID)]
    before the class declaration

    If I try to istantiate more then one of the same UserControl on the same page in my local server everything works fine
    but, when i upload all site in Production Server DirectsMethods called from All UserControl istantiated go to the last istantiated UserControl DirectMethod

    There are any problems in Production Server ?
    Last edited by Daniil; Oct 31, 2011 at 1:52 PM. Reason: Please use [CODE] tags
  2. #2
    Do you have public link to the page on the production server?
    If no then post generated page (View Source from browser)
  3. #3

    This is the header inclusion scripts

    source_of_page_with_problem.txt
    browser_control_code.txt

    Quote Originally Posted by Vladimir View Post
    Do you have public link to the page on the production server?
    If no then post generated page (View Source from browser)
    I'll send you this file with head inclusion of extjs scripts and configuration.

    Thank's for your fast response :) !!!


    The problem occurs when in c# code ".ascx.cs" file i use the Id name of an object istantiated in ".ascx" file

    
        [DirectMethod]
        public void SaveAssociation(string json)
        {
    
            Explorer.Hide();
        }
    Calling this DirectMethod the object whit ID "Explorer" in the UserControl is recognised like the last "Explorer" ID which is inizialized in the last UserControl in the same Page.
    Last edited by stez; Oct 10, 2011 at 1:07 PM. Reason: Specifications
  4. #4
    Hi,

    This thread
    http://forums.ext.net/showthread.php?13522
    can be helpful to understand and solve the problem.
  5. #5

    Thanks, but i think that's a server configuration problem!!

    Quote Originally Posted by Daniil View Post
    Hi,

    This thread
    http://forums.ext.net/showthread.php?13522
    can be helpful to understand and solve the problem.
    In my local server everything work's fine but on production server doesn't work. The problem is on server side, not in the javascript function into the UserControl.
    DirectMethod is correctly called, but Ext.net find latest control DirectMethod! Not the DirectMethod from the correct UserControl ID :/ . I Think there is a problem with the UniqueID of the UserControl.
    Anyone can help me ?
  6. #6
    I understand that you get the problem on a production server only, but can you give a try to create a test project to reproduce the problem?

    Just, unfortunately, we can't reproduce it and have no idea how to fix.
  7. #7

    You can see the problem at this link in post

    Quote Originally Posted by Daniil View Post
    I understand that you get the problem on a production server only, but can you give a try to create a test project to reproduce the problem?

    Just, unfortunately, we can't reproduce it and have no idea how to fix.

    This is a test link:

    http://test.ivisionweb.it/admin/edit/editor.aspx?id=13


    If you try to insert image from button "immagine" appears a window to select a file. Now you can select the image and then when you click to "OK" button to associate image, the DirectMethod called is DirectMethod of "Allegato" wich is the same UserControl Loaded.


    In a hosting server "aruba" everything works fine!! :/
    Last edited by stez; Oct 17, 2011 at 3:01 PM.
  8. #8
    I'm afraid the online sample doesn't help us, because you have already posted the page source.

    We need something to reproduce the problem on our side to debug.

    I think the one thing can help is the test project which would reproduce the problem.

    Maybe you could create a test project and test it under the Visual Studio web server.

    If the problem doesn't appear, you could try on IIS.

Similar Threads

  1. [CLOSED] Ext.Net status unlicensed in production server
    By sbg in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Aug 03, 2012, 5:44 PM
  2. Server side notification does not work
    By XVincentX in forum 1.x Help
    Replies: 12
    Last Post: Feb 16, 2011, 3:46 PM
  3. DirectMethodProxyID in .NET 3.5
    By d.urazalinov in forum 1.x Help
    Replies: 1
    Last Post: Jun 29, 2010, 2:30 PM
  4. [CLOSED] spotlight doesn't work properly with window control
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 10, 2009, 2:43 PM
  5. Replies: 5
    Last Post: May 13, 2009, 12:10 PM

Posting Permissions