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.d ll#Test.TestCon trol"
style="display: none;"
VIEWASTEXT
</object>
</body>
<script language=javasc ript>
var objTest;
objTest = document.getEle mentById("objTe st");
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. 4 1569
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.co m
"ATS" <AT*@discussion s.microsoft.com > wrote in message
news:1B******** *************** ***********@mic rosoft.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.d ll#Test.TestCon trol" style="display: none;" VIEWASTEXT > </object> </body> <script language=javasc ript> var objTest; objTest = document.getEle mentById("objTe st"); 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.
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?
I have an update to this issue.
I made another Test UserControl called "TestNumber 3" so that the CLASSID
would be as such: "TestNumber3.dl l#TestNumber3.U serControl1" 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?
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 package
against Production. One side argues that the safest approach is to
create a script containing all schema changes, data changes, stored
procs, functions, etc. Run that script against Staging until it is
error-free. Then, when you run it...
|
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 servers with
identical names, access, users, stored procs....... If you either
agree or disagree with this methodology, I would appreciate your input.
TIA,
Bill
|
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 production data? If I
understand (from multiple postings) that it is best to have:
1. Development (developers have extensive access levels)
2. Test (developers have restriced access levels)
and
3. Production (developers have none or select level access)...
|
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 "Expiry Date" is automatically entered, when
the "Production Date" is entered. To do this the "Expiry Date" cell carries
the following formula: "=A15+183".
I would like to be able to do the same on an Access Form, with the results
written to the...
|
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)
3) production server (for when a new build is fully tested, and stable)
The problem is that the connectionstring in the web.config, should be
replaced with something else, for each of the enviroments.
| |
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 connectionstrings etc for development and production -
pretty normalt stuff.
Currently I edit the web.config manually before deploying, and have never
forgotten - but I know it is a matter of time before I or a colleague do.
|
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 may need to make
longer term upgrades to the application that may take several weeks. Of
course in the mean time, we might have to make a quick update to the
production code, but we don't want to publish our longer term
upgrades yet.
Currently,...
|
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 and overwriting the
production folder(s) after backing them up. This works ok. Both folders
have the same name. Now, say we're weeks into developing/redesigning a
portion of the website. Client requests a change to the production site.
We can't...
|
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 production server. I also
have identical databases on each server.
Now, when I first brought up my app by going to the development
server's URL, I got an access denied error on a Connection String in
my app. OK, fine, I can just change it to fit my...
|
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 using Debug mode. Now we
are ready to compile everything for release to production. However, we don’t
know whether we should compile all the applications/components/assemblies
using Release mode (or keep everything in Debug mode).
We’ve...
|
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,...
| |
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...
|
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,...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |