473,738 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Enable content expiration and .Net objects

I have a simple C# object(class) that I reference in a <OBJECT
classid="mydll. dll#nmsp.Ctrl"> tag of an HTML page generated by ASP.net.

In a case where the Enable content expiration isn't checked for my website,
i can call a public method of the object via javascript and it's working.
When the Enable content expiration(imme diately) is effective for my website,
i always have a javascript error telling me that the object or the method
doesn't exist...

Someone knows something about this problem?

As a test, i setted the content expiration to off and rebuild my component.
The javascript still working.... I setted the content expiration on to
immediately and tested the component without recompiled it...It still
working. But, if a rebuild it in the website when the content expiration is
on, and try to use it in javascript, i've got the error....

Notice that the assembly is in the root of my website and i'm using IIS 5.1

Mario
Nov 18 '05 #1
1 3581
lb
....just noticed this behaviour too.
another way to test this is to simply rename the dll making sure the
new name is reflected in the HTML - with content expiration on the
object wont load - when set to off it will load properly.
(simply switching the expiration on/off in iis manager wont show the
problem ie. guess once its cached it stays cached)

"Mario Hébert" <mh*****@laval. net> wrote in message news:<uu******* *******@TK2MSFT NGP10.phx.gbl>. ..
I have a simple C# object(class) that I reference in a <OBJECT
classid="mydll. dll#nmsp.Ctrl"> tag of an HTML page generated by ASP.net.

In a case where the Enable content expiration isn't checked for my website,
i can call a public method of the object via javascript and it's working.
When the Enable content expiration(imme diately) is effective for my website,
i always have a javascript error telling me that the object or the method
doesn't exist...

Someone knows something about this problem?

As a test, i setted the content expiration to off and rebuild my component.
The javascript still working.... I setted the content expiration on to
immediately and tested the component without recompiled it...It still
working. But, if a rebuild it in the website when the content expiration is
on, and try to use it in javascript, i've got the error....

Notice that the assembly is in the root of my website and i'm using IIS 5.1

Mario

Nov 18 '05 #2

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

Similar topics

2
1354
by: F | last post by:
Hi All I am having problem of content expiration it expires immidiately. Real problem is I am replacing some images on mouse over. On every mouse over its downloading images from server that takes time to display, and second thing is its working fine with same aaplication on server1 but when I am putting on server2 its not. I have content expiration checked / unchecked in IIS but no luck
1
1973
by: Rudy Mark | last post by:
I have set content expiration in IIS 5.0 to N1 minutes. Also I have code as <meta http-equiv="refresh" content="N2">. Which will be effective in this secnarios ? Which one takes precedence. Rudy Mark
1
2863
by: Guadala Harry | last post by:
AFAIK, when placing an object into the Cache with no special instructions (no dependencies, sliding expirations, hard expirations, etc), it will just sit there in the Cache until the system decides it needs to remove the object to free up memory. (If my understanding so far is wrong, please clarify) What I'd like to know is that if I place an object into the Cache with a sliding expiration - is it possible/likely that the system will...
0
1128
by: theintrepidfox | last post by:
Dear Group Just noticed that there's a problem with Visual Studio and IIS Content Expiration. I do have a files sub directory and had Contend Expiration set to immediately for that folder. When debugging the application and telling it to open a file in the files folder it does this without problems. However, if I type the file URL (http://localhost/app/files/test.doc)
0
1693
by: TR | last post by:
If mypage.aspx is set to expire immediately using the management console page properties dialog, HttpHeaders tab, -- does the expiration setting take effect as soon as the dialog changes are applied? Assuming mypage.aspx is the first in a sequence of pages, and mysecondpage.aspx comes after it, if the immediate expiration setting is in effect, should clicking on the Back button on mysecondpage.aspx, to return to mypage.aspx, cause...
2
1404
by: Jason Kendall | last post by:
I've noticed that my ASP.Net projects suffer from being cached locally when my users' broswers are set to automatically check for newer pages. Folks will go through the process of 'adding' an item to whatever part of the application they're interacting with and they won't see the new record unless they close the browser or do a CTRL-Refresh or wait some indeterminate amount of time. I set the server to expire content immediately and...
5
1917
by: Frankie | last post by:
Using ASP.NET 1.1 and IIS 6... what is the effect of enabling Content Expiration -- Expire Immediately? Does it cause the files in the virtual directory to be served on every single browser request even if the files do not change? The reason I ask is that I was having trouble with a css file not getting refreshed in the browser after the css file was updated on the server. In testing I found that I could manually update the css file on...
4
1445
by: Beren | last post by:
Hello I'm trying to use Cache expiration and its callback feature to easily add automated tasks programmatically. The task should be run when the Cache object expired The problem I'm facing is that some tasks will only be expiring (thus running) in 2 months. What if the server needs to reboot? Will the Cache be lost (and with it all my Tasks) ?
9
5520
by: Mike Reed | last post by:
I must be having a "senile" day! I cannot recall, nor get to work, code to read a cookie's expiration date/time in an ASP page/VBScript. What am I missing? *** Sent via Developersdex http://www.developersdex.com ***
0
8787
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
9473
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...
0
9334
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9259
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
9208
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
6053
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();...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.