473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Nov 17 '05 #1
2 2614
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
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="=_mixed 002F9A8DC2256D5E_="
| Message-ID: <Oj**************@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
|
|
Nov 17 '05 #3

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

Similar topics

7
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...
2
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...
7
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...
14
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...
1
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...
12
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. ...
2
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...
2
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...
43
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.