473,406 Members | 2,713 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,406 software developers and data experts.

BUG/PRODUCTION-DOWN: UserControl running from HTML not working.

ATS
BUG/PRODUCTION-DOWN: UserControl running from HTML not working.

Someone please help,

I have a production down situation. For whatever reason, UserControls are
not owkring from HTML/IE. When script tries to run a UserControl's method or
use a property, IE gives an error "Object doesn't support this property or
method".

Example:

<html>
<body>
<object
id=objTest
classid="Test.dll#Test.TestControl"
style="display: none;"
VIEWASTEXT

</object>
</body>
<script language=javascript>
var objTest;
objTest = document.getElementById("objTest");
var csHello = objTest.RunTest("Hello");
alert(csHello);
</script>
</html>

I've posted this error in other formats, thinking it was something I was
doing in relation to IE/XP, but I've confirmed that even on 2000 machines,
bosting hosting the IIS and running the IE are giving the same error now for
some reason.

Something has changed, in either IE, IIS, XP/2000, and/or Visual Studio .NET
2003 that is causing this VERY simple .NET UserControl from working. As a
double check, our IIS virtual directories are set to ONLY run script. We know
of the IIS/UserControl issue that if the virtual directory is set to run
executables, that the UserControl will not run.

The strange thing is that if we run the OBJECT tag from the Visual Studio
..NET 2003 debuggger for any of our virtual directories, that the UserControls
then works correctly. But if ran from IE on its own, we get that error.

It is as if, for some reason IE will simply no longer run UserControls, even
if it "trusts" the server.

Please give advice.

Nov 17 '05 #1
4 1544
The first question I would ask is what did you do that recently changed
on these machines? If you are saying it is a "PRODUCTION-DOWN" situation
(which makes me assume that you had this working at one point), it would
mean that something has changed in the environment to cause this.

So what changed?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ATS" <AT*@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
BUG/PRODUCTION-DOWN: UserControl running from HTML not working.

Someone please help,

I have a production down situation. For whatever reason, UserControls are
not owkring from HTML/IE. When script tries to run a UserControl's method
or
use a property, IE gives an error "Object doesn't support this property or
method".

Example:

<html>
<body>
<object
id=objTest
classid="Test.dll#Test.TestControl"
style="display: none;"
VIEWASTEXT
>

</object>
</body>
<script language=javascript>
var objTest;
objTest = document.getElementById("objTest");
var csHello = objTest.RunTest("Hello");
alert(csHello);
</script>
</html>

I've posted this error in other formats, thinking it was something I was
doing in relation to IE/XP, but I've confirmed that even on 2000 machines,
bosting hosting the IIS and running the IE are giving the same error now
for
some reason.

Something has changed, in either IE, IIS, XP/2000, and/or Visual Studio
.NET
2003 that is causing this VERY simple .NET UserControl from working. As a
double check, our IIS virtual directories are set to ONLY run script. We
know
of the IIS/UserControl issue that if the virtual directory is set to run
executables, that the UserControl will not run.

The strange thing is that if we run the OBJECT tag from the Visual Studio
.NET 2003 debuggger for any of our virtual directories, that the
UserControls
then works correctly. But if ran from IE on its own, we get that error.

It is as if, for some reason IE will simply no longer run UserControls,
even
if it "trusts" the server.

Please give advice.

Nov 17 '05 #2
ATS
Thank you for the reply,

Basically, we had a UserControl and we added a new method, and deployed it.
But on some machines, that error "Object doesn't support this method or
property" appeared when user try to run HTML that uses the new method. It
completely confounded us. I went down the path to make a sample for
Microsoft, and started with a simple "Test" UserControl, and got the same
error, right off the bat?!?!? Unless I ran it from the debugger?!??! At first
I thought it was an XP issue as the users on 2000 were not getting the error,
and the debugger could run it. But then we got a 2000 user to reproduce it.
So.... we are stumped.

It almost seems as if IE is holding an "old" reference to the previous
UserControl that did not have the method, and is there for unable to find the
new method. I'm going to try and rule that possibility out by making another
UserControl called something other than "Test" like I sent in the sample, as
I have used that name before. I'll post back when I know more.

In the mean time, has anything changed in IE/XP/2000 as far as service packs
or updates that could affect UserControls?

Nov 17 '05 #3
ATS
I have an update to this issue.

I made another Test UserControl called "TestNumber3" so that the CLASSID
would be as such: "TestNumber3.dll#TestNumber3.UserControl1" And it
worked?!?!?! I then changed the UserControl to have a new method and updated
the script to call the new method. Then the moment I refreshed the web page I
got the "Object doesn't support this method or property". I also found, that
the only way I could get the UserControl to work was to completely exit out
of all of my IE instances. If I even left one running, and tried to run the
UserControl again, I got the same error, and this included the Visual Studio
..NET, if I opened the web page that hosted the OBJECT tag.

So, it is obvious, that IE is holding the "old" UserControl and not updating
it on refreshes. This explains our PRODUCTION-DOWN. I'll pass word to our
support to be advised of this.

Why is IE doing this? Can we add script to FORCE IE to get any "new" updates
to a UserControl without having to rename its "name space" or "control name"
or DLL name? I did try setting the IIS to "Enable Content Expiration" to
expire immediately, but this did not change anything. I also tried using
"<meta name=expires content='06 July 2005'>" and that made no difference.
Only exiting ALL IE sessions works.

Any ideas?
Nov 17 '05 #4
ATS
I have another update. We "seem" to be back into production. We are
concluding the following has lead to this issue:

1) IE is definately holding onto older version, even if a user brings up an
unrelated web page in says "Session A", and then brings up the UserControl in
"Session B".

2) Also, the IIS setting "Enable Content Expiration" causes the control to
NEVER update if it is set to "Expire immediately". In this case, even if all
IE sessions are closed down, the USerControl NEVER updates?!?!?

So, in closing, we simply have to ask, we are these things ture? Is there
any way to FORCE IE to refresh the USerControl?

Nov 17 '05 #5

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

Similar topics

5
by: Theodore Feldman | last post by:
Hi, Our DBA group is debating production release methodology. We always perfect our deployment package (typically a script) against the database in a Staging environment, before executing the...
5
by: Bill Willyerd | last post by:
I have been looking for some documentation that would support or reject my opinion on Production -vs- Development naming conventions. I believe that each environment should be housed on separate...
3
by: Bill Willyerd | last post by:
Hello All, I have been searching for a published document for Best Practices concerning access levels based on roles. Should developers have more than (if at all) select level access to...
4
by: William Bradley | last post by:
I have two cells on a form. One of them is the "Production Date" and the other is the "Expiry Date". The "Expiry Date" is 183 days after the "Production Date." On an Excel spreadsheet, the...
4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
6
by: Klaus Jensen | last post by:
Hi! I have a pretty traditional setup where I develop on my local PC and the use "Copy Project" to deploy to the production enviroment.. In web.config I need different values for...
1
by: bay_dar | last post by:
We are wondering what is the best way to go about managing production and development versions of our ASP.NET applications. We often publish a production version of a .NET application but then we...
8
by: James | last post by:
Say I have a project that I have hosted locally. I have a separate machine which is our production environment. To do our deploys, we've been copying/pasting the folder from our local machines...
2
by: gsauns | last post by:
Hello, I have just put a new virtual server in place that I intend to make my development server. I would like to develop and test on that new server, and host my production apps on my...
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.