473,748 Members | 9,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="LoginContro l" style="WIDTH: 673px; HEIGHT: 388px"
classid="../WinControls/CommonWinContro ls.dll#CommonWi nControls.UCBat chForm"
name="LoginCont rol" VIEWASTEXT>
<PARAM NAME="HideAcq" VALUE="<%=HideA cq%>">
<PARAM NAME="AcqFormTy pe" VALUE="<%=AcqFo rmType%>">
<PARAM NAME="AllowAcce ss" VALUE="<%=Allow Access%>">
<PARAM NAME="strUser" VALUE="<%=strUs er%>">
<PARAM NAME="SelectedC onnection"
VALUE="<%=Selec tedConnection%> ">
<PARAM NAME="CurCultur e" VALUE="<%=CurCu lture%>">
<PARAM NAME="DBDate" VALUE="<%=DBDat e%>">
<PARAM NAME="Superviso rGroup"
VALUE="<%=strSu perVisorGroup%> ">
</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.sn k"
2. Included in the AssemblyInfo.vb the line that points to the file:
<Assembly: AssemblyKeyFile Attribute("test key.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
Commonwincontro ls.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

Nov 17 '05 #1
2 2632
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.

WindowsControlL ibrary1, Version=1.0.125 0.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 WindowsControll ibrary 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:applicat ion/x-oleobject;base6 4,IGkzJfkDzxGP0 ACqAGhvEzwhRE9D VFlQRSBIVE1MIFB VQkxJQyAiLS8vVz NDLy9EVEQgSFRNT CA0LjAgVHJhbnNp dGlvbmFsLy9FTiI +DQo8SFRNTD48SE VBRD4NCjxNRVRBI Gh0dHAtZXF1aXY9 Q29udGVudC1UeXB lIGNvbnRlbnQ9In RleHQvaHRtbDsgY 2hhcnNldD13aW5k b3dzLTEyNTIiPg0 KPE1FVEEgY29udG VudD0iTVNIVE1MI DYuMDAuMjgwMC4x MTcwIiBuYW1lPUd FTkVSQVRPUj48L0 hFQUQ+DQo8Qk9EW T4NCjxQPiZuYnNw OzwvUD48L0JPRFk +PC9IVE1MPg0K"

BTW I have .NET Framework 1.0 with SP2.

Thanks
Theo
Nov 17 '05 #2
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
http://support.microsoft.com/?id=812953

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

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

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: Th************* ***@ctl.com
| 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="=_mix ed 002F9A8DC2256D5 E_="
| Message-ID: <Oj************ **@TK2MSFTNGP10 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Date: Wed, 09 Jul 2003 01:39:58 -0700
| NNTP-Posting-Host: 213.207.151.60
| Lines: 1
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1579 45
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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="LoginContro l" style="WIDTH: 673px; HEIGHT: 388px"
|
classid="../WinControls/CommonWinContro ls.dll#CommonWi nControls.UCBat chForm"

| name="LoginCont rol" VIEWASTEXT>
| <PARAM NAME="HideAcq" VALUE="<%=HideA cq%>">
| <PARAM NAME="AcqFormTy pe" VALUE="<%=AcqFo rmType%>">
| <PARAM NAME="AllowAcce ss" VALUE="<%=Allow Access%>">
| <PARAM NAME="strUser" VALUE="<%=strUs er%>">
| <PARAM NAME="SelectedC onnection"
| VALUE="<%=Selec tedConnection%> ">
| <PARAM NAME="CurCultur e" VALUE="<%=CurCu lture%>">
| <PARAM NAME="DBDate" VALUE="<%=DBDat e%>">
| <PARAM NAME="Superviso rGroup"
| VALUE="<%=strSu perVisorGroup%> ">
| </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.sn k"
| 2. Included in the AssemblyInfo.vb the line that points to the file:
| <Assembly: AssemblyKeyFile Attribute("test key.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
| Commonwincontro ls.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
|
|
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
6521
by: Mike | last post by:
Hi! I posted this question in browser_ctl group as well but got no results. I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original. I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas...
2
3414
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
7
2461
by: Dino Buljubasic | last post by:
Hi, I am using C# 2.0 (VS2005) to build my user control that contains a number of dynamically loaded ListViews. ListViewItems have their ForeColor properties set to either black or blue to distinguish between ListViewItems. As long as no other application window (i.e. word or calculator, or ....) goes over my running form, ForeColor properties or each ListViewItem stays black or blue as intended.
14
2939
by: Christian Kaiser | last post by:
We have a component that has no window. Well, no window in managed code - it uses a DLL which itself uses a window, and this is our problem! When the garbage collector runs and removes our component (created dynamically by, say, a button click, and then not referenced any more), the GC runs in a different thread, which prohibits the DLL to destroy its window, resulting in a GPF when the WndProc of that window is called - the code is gone...
1
4114
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET framework 1.1). The application implements a Progress Bar webcontrol, that pops up in a window, using the HttpHandler interface, on the event of a button click. The handler's process request routine reads the status of the progress by querying the...
12
3412
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. Very simple. I would like to create listviewitem's for display in a listview control. The listview items need to contain properties from Internet Explorer windows i've managed to collect into an arraylist.
2
1476
by: Samuel | last post by:
The application is MDI, as soon as the application loads I create a new child window (maximized), within the child window there is a tab control almost the size of the child window The problem is that when the application first loads the top of the tab control is hidden and it seems as though the header part of the tab control is not taken into account as far as location or sizing the control (the control is anchored on all sides). It is...
2
2184
by: verci | last post by:
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP Pro SP2, IE 7, VS2005, ASP.net 2.0 The problem is that I'm trying to display this news scroller made in a Javascript file(newsscroller.js) in my ASP page, everything works great in a normal HTML page, I can see the scroller just fine, but in an ASP page it just does not show, I get some error message that the control has not been initialize, so far I've been...
43
2383
by: John | last post by:
Hi This .net is driving me crazy!! In VB6 I had a type which contained a couple of multi-dimentional arrays which i used to create and read records: Type AAA : Array1(10,10,2) as Integer
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.