Problem with .NET Window control in ASP.NET

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Problem with .NET Window control in ASP.NET

    Hi All,

    We are developing an application and we have a problem for which I cannot
    find any information anywhere.
    The application consists of a windows user control and an ASP.NET
    application that has a Web Form loading this control using the object tag.
    The HTML code looks like this:

    <OBJECT id="LoginControl" style="WIDTH: 673px; HEIGHT: 388px"
    classid="../WinControls/CommonWinControls.dll#CommonWinControls.UCBatchFor m"
    name="LoginControl" VIEWASTEXT>
    <PARAM NAME="HideAcq" VALUE="<%=HideAcq%>">
    <PARAM NAME="AcqFormType" VALUE="<%=AcqFormType%>">
    <PARAM NAME="AllowAccess" VALUE="<%=AllowAccess%>">
    <PARAM NAME="strUser" VALUE="<%=strUser%>">
    <PARAM NAME="SelectedConnection"
    VALUE="<%=SelectedConnection%>">
    <PARAM NAME="CurCulture" VALUE="<%=CurCulture%>">
    <PARAM NAME="DBDate" VALUE="<%=DBDate%>">
    <PARAM NAME="SupervisorGroup"
    VALUE="<%=strSuperVisorGroup%>">
    </OBJECT>

    Assumption for this is to have .NET Framework installed on the client
    machine and trust the resource coming from the web server. We would expect
    the dll to be downloaded to the client machine the first time the machine
    requests the aspx page that contains this control. Instead of that, the
    problem that we are facing is that the control seems to be downloaded
    every time you request the page. It looks like the machine 'does not know'
    that the control has been used in the past and it will force to download
    again.

    We have recreated the assemblies that are being downloaded as strong named
    assemblies. The steps we followed are as below:
    1. sn -k "testkey.snk"
    2. Included in the AssemblyInfo.vb the line that points to the file:
    <Assembly: AssemblyKeyFileAttribute("testkey.snk")>
    3. Rebuilded the assemblies and created the dll. Copied the dll in the
    directory from where we reference it using the object tag in the
    webapplication.
    4. Tried again.

    I don't see any difference. I am using the FUSLOGVW.EXE and the GACUTIL
    commands to see what's going on and the results are:

    GACUTIL1.txt is the GACYTIL /ldl output after the first time the app is
    run. FUSLOGVW (FUSLOGVW1.txt) is showing that the cache lookup in
    unsuccessful. The weird thing is that when I open a new Internet Explorer
    window requesting the application again (same machine and the first
    instance is still running) when I run again the gacutil /ldl command it
    will show me that the files are downloaded again so the total number of
    files is now 4. Using the same logic if the application is run again the
    number of files will go on 6 then 8, 10... and so on.

    I even tried to add the dll in the GAC, using the gacutil /i
    Commonwincontrols.dll. This adds the dll successfully and I can see this
    be running the gacutil /lr. But the behavior stays the same.

    Any ideas?

    Thanks in advance

    Theodoros.Savvides@ctl.com Guest

  2. Similar Questions and Discussions

    1. Window Control in IE
      Hi, I am trying to place a Window Control on IE. I have created a windows control inheriting from UserControl. Then I place the control using...
    2. problem to run WINDOW user control
      i created WINDOW user control (not web user control), that connect via socket to server. this WINDOW user control will be host in the IE . when...
    3. Control the size of the window
      Is there a way, in Dreamweaver, to set the size of the window? Thanks, David
    4. Remote control window
      Does anyone know how to make a remote window. I would like to open a window by hitting a button in the main window and I would like this new window...
    5. control browser window size
      Yes, what you are wanting to do is easily done with JavaScript. However, like the majority of folks, I'd really appreciate it if you wouldn't try...
  3. #2

    Default Re: Problem with .NET Window control in ASP.NET

    Hi Marco.

    I tested this. For some reason I cannot get the textbox and the button.
    When i look in the GAC though it has one entry for the windows control
    library.

    WindowsControlLibrary1, Version=1.0.1250.31651, Culture=neutral,
    PublicKeyToken=null, Custom=null

    This entry remains one i.e. i do not get a new entry when I open a new IE.
    Which is what I wanted to do in my side.
    Can I ask you to send me the WindowsControllibrary and webapplication
    projects? I can then see in the code what is it that you are doing
    different from us that works :-) !

    Also, I noticed in the aspx page the folowing attribute that I donot
    understand. What is it used for?
    data
    ="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQR SBIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJ hbnNpdGlvbmFsLy9FTiI+DQo8SFRNTD48SEVBRD4NCjxNRVRBI Gh0dHAtZXF1aXY9Q29udGVudC1UeXBlIGNvbnRlbnQ9InRleHQ vaHRtbDsgY2hhcnNldD13aW5kb3dzLTEyNTIiPg0KPE1FVEEgY 29udGVudD0iTVNIVE1MIDYuMDAuMjgwMC4xMTcwIiBuYW1lPUd FTkVSQVRPUj48L0hFQUQ+DQo8Qk9EWT4NCjxQPiZuYnNwOzwvU D48L0JPRFk+PC9IVE1MPg0K"

    BTW I have .NET Framework 1.0 with SP2.

    Thanks
    Theo
    Theodoros.Savvides@ctl.com Guest

  4. #3

    Default RE: Problem with .NET Window control in ASP.NET

    Hello Theodoros,
    It seems that you want your windows control to be downloaded only the first
    time. I asked the IE client team about this,
    and they told me that you can't do anything about it. The good thing is
    that it download part of it. Not all the control
    is downloaded. You can check on this by taking a Netmon Trace.

    For more information on Netmon check the following Kb articles:

    812953 HOW TO: Use Network Monitor to Capture Network Traffic
    [url]http://support.microsoft.com/?id=812953[/url]

    295405 HOWTO: Capture TCP and HTTP Data Frames Using Network Monitor and
    MSXML
    [url]http://support.microsoft.com/?id=295405[/url]

    310875 Description of the Network Monitor Capture Utility
    [url]http://support.microsoft.com/?id=310875[/url]

    Please let me know if you need to download Netmon. Usually Microsoft
    Systems Management Server (SMS)
    includes Network Monitor.


    Thanks,
    Bassel Tabbara
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.


    --------------------
    | From: [email]Theodoros.Savvides@ctl.com[/email]
    | Subject: Problem with .NET Window control in ASP.NET
    | MIME-Version: 1.0
    | X-Newsreader: Lotus Notes Release 6.0 September 26, 2002
    | X-MIMETrack: Serialize by Notes Client on Theodoros A
    Savvides/NIC/CTL(Release 6.0|September
    | 26, 2002) at 09/07/2003 11:39:57
    | Content-Type: multipart/mixed; boundary="=_mixed 002F9A8DC2256D5E_="
    | Message-ID: <OjH9uWfRDHA.2408@TK2MSFTNGP10.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet
    | Date: Wed, 09 Jul 2003 01:39:58 -0700
    | NNTP-Posting-Host: 213.207.151.60
    | Lines: 1
    | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:157945
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    |
    | Hi All,
    |
    | We are developing an application and we have a problem for which I cannot
    | find any information anywhere.
    | The application consists of a windows user control and an ASP.NET
    | application that has a Web Form loading this control using the object
    tag.
    | The HTML code looks like this:
    |
    | <OBJECT id="LoginControl" style="WIDTH: 673px; HEIGHT: 388px"
    |
    classid="../WinControls/CommonWinControls.dll#CommonWinControls.UCBatchFor m"

    | name="LoginControl" VIEWASTEXT>
    | <PARAM NAME="HideAcq" VALUE="<%=HideAcq%>">
    | <PARAM NAME="AcqFormType" VALUE="<%=AcqFormType%>">
    | <PARAM NAME="AllowAccess" VALUE="<%=AllowAccess%>">
    | <PARAM NAME="strUser" VALUE="<%=strUser%>">
    | <PARAM NAME="SelectedConnection"
    | VALUE="<%=SelectedConnection%>">
    | <PARAM NAME="CurCulture" VALUE="<%=CurCulture%>">
    | <PARAM NAME="DBDate" VALUE="<%=DBDate%>">
    | <PARAM NAME="SupervisorGroup"
    | VALUE="<%=strSuperVisorGroup%>">
    | </OBJECT>
    |
    | Assumption for this is to have .NET Framework installed on the client
    | machine and trust the resource coming from the web server. We would
    expect
    | the dll to be downloaded to the client machine the first time the machine
    | requests the aspx page that contains this control. Instead of that, the
    | problem that we are facing is that the control seems to be downloaded
    | every time you request the page. It looks like the machine 'does not
    know'
    | that the control has been used in the past and it will force to download
    | again.
    |
    | We have recreated the assemblies that are being downloaded as strong
    named
    | assemblies. The steps we followed are as below:
    | 1. sn -k "testkey.snk"
    | 2. Included in the AssemblyInfo.vb the line that points to the file:
    | <Assembly: AssemblyKeyFileAttribute("testkey.snk")>
    | 3. Rebuilded the assemblies and created the dll. Copied the dll in the
    | directory from where we reference it using the object tag in the
    | webapplication.
    | 4. Tried again.
    |
    | I don't see any difference. I am using the FUSLOGVW.EXE and the GACUTIL
    | commands to see what's going on and the results are:
    |
    | GACUTIL1.txt is the GACYTIL /ldl output after the first time the app is
    | run. FUSLOGVW (FUSLOGVW1.txt) is showing that the cache lookup in
    | unsuccessful. The weird thing is that when I open a new Internet Explorer
    | window requesting the application again (same machine and the first
    | instance is still running) when I run again the gacutil /ldl command it
    | will show me that the files are downloaded again so the total number of
    | files is now 4. Using the same logic if the application is run again the
    | number of files will go on 6 then 8, 10... and so on.
    |
    | I even tried to add the dll in the GAC, using the gacutil /i
    | Commonwincontrols.dll. This adds the dll successfully and I can see this
    | be running the gacutil /lr. But the behavior stays the same.
    |
    | Any ideas?
    |
    | Thanks in advance
    |
    |


    Bassel Tabbara [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139