.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Client browser using cached files instead of updated version after deployment

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :ASP.Net
 

Hi,

We have an ASP.NET web application and it's hosted using IIS 6.0, in the app we have these several javascript and css files located in a folder, and for performance sake (according to YSlow) we set the folder content expiration header to 1 year. Everything worked just fine until recently when we deployed the latest build to the server, in which we had made some changes to those javascript and css files. For some reason after the deployment some of our end users don't see the latest changes when they connected to the app, even after they cleared the cache in IE. We have also restarted the IIS on the server and the problem still remained. When I went into the IE Temporary Internet Files folder on one of these machines I saw the files were still the older version and not the latest one, I had to manually delete the files from the Temporary Internet Files folder then they were able to see the latest changes. I'm baffled by this, how come only some users who couldn't see the changes but some others do (without having to do anything by the way), and how do I make sure that for future releases we won't have to do anything like what did (manually deleting the cached files)? For now I disabled the Content Expiration option in IIS for these files but I would like to know if there is a way that I can enable the content expiration (to help performance) but


View Complete Post


More Related Resource Links

web browser control can not play swf files with the 64-bit version of Vista

  
Why web browser control can not play swf files with the 64-bit version of Vista, but it work well in the web page? Does anyone know this reason?

Data Points: Building An Out-of-Browser Client With Silverlight 3

  

Silverlight 2 applications are restricted to running inside a browser. However, Silverlight 3 applications can run inside the browser or out. Here we build a social networking app as a standalone Silverlight 3 application.

John Papa

MSDN Magazine June 2009


Infopath form - browser error client error

  

I am facing a problem with browser enabled infopath form. I have developed this in infopath 2007. I have few fields in a repeating table. It contains Number of units, qty , subtotal and total. Total is sum of all sub totals and Sub total is  multiplication of units and qty. I am able to insert new items in preview and getting subtotal and total. I have published it in sharepiont as browser enabled form as a content type. When I opened the form in browser and insert new item in repeating table then I am not getting my subtotal and total updated. I am getting those for only first row. other rows are not working. This is working with infopath client.  Please help me out..

 

thanks


Which Sharepoint Version is best for my client

  
Hi all, A bit of advice really.  My client would like to use sharepoint as a tool to open communications with the office staff.  I have advised on using Sharepoint but am not 100% what the difference between the 2008 version that comes with server 2008 or the sharepoint server, which is additional costs. What my client needs to achieve is:   Gantt chats Access to files when outside the office (upload and download) To allow access to 3rd party organisations to access a created 'site' for the client.   So really, my question is, can this be achieved with the Sharepoint Version that is standard to 2008 or would they have to purchase the full version? Also, what is the difference between both versions? If there is a link I can be pointed too, more than happy to read.....just need this quite urgent   Thanks for any help   Drew   

Problem with ASP.NET Ajax, Framework version 4.0 and the SeaMonkey browser...

  
I have a site that I'm upgrading to the 4.0 framework and I've come across an issue with asp.net ajax and the SeaMonkey browser. It seems like the script manager is not registering the scripts on the page in seamonkey (but it works fine in IE, Firefox, Chrome, Opera, and Safari). Now, if I change the user agent string in SeaMonkey to use the user agent string from any of those other browsers, it works fine. So I guess my question is does ASP.NET Ajax check the browser's user agent to determine what scripts to register and, if so, is it possible that SeaMonkey is not included in the list in the 4.0 framework (I should add that it's working fine in the 3.5 framework so it seems to me like this is a difference between the two framework versions).

The provider is not compatible with the version of Oracle client

  
I am having the error stated above. The stack trace is as follows: [OracleException: The provider is not compatible with the version of Oracle client] Oracle.DataAccess.Client.OracleInit.Initialize() +550 Oracle.DataAccess.Client.OracleConnection..cctor() +518 [TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.] Oracle.DataAccess.Client.OracleConnection..ctor() +51 InputForm.SelectRegion() +123 InputForm.Initialize() +952 InputForm.Page_Load(Object sender, EventArgs e) +53 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048   Some info's: Server: Windows Server 2008 R2 .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 Oracle.DataAccess, Version=1.102.3.0 Dev Computer: Windows Vista Business 32bit .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 Oracle.DataAccess, Version=1.102.3.0 My Code: OracleConnection cn;String con1 = ConfigurationManager.ConnectionStrings["myConnectionString"].ToString();cn = new OracleConnection();cn.ConnectionString = con1;cn.Open(); string mysql = "select region_code, 'Region ' || reg_

Specify CLR Version When Using Al.exe to Generate Publisher Policy Files

  
I'm trying to generate a publisher policy for for .NET 4.0 assemblies. However, I noticed that the version of mscorlib that the generated policy file references is always 2.0.0. Is there a way to specify .NET 4.0 as the CLR? Otherwise, when you install this assembly, it gets installed into the C:\Windows\assembly folder instead of the new .NET 4.0 assembly GAC location. 

The provider is not compatible with the version of Oracle client

  
We are getting following error message while trying to execute sql package thru 'ExecuteNonQuery' our .NET code. This was working perfectly few days back, but suddenly VS2008 on our local is not able to execute the code. We are not sure what had exactly happened here, but code stopped working  on all develop machine all of sudden    Details for the error are as follows "The provider is not compatible with the version of Oracle client" or sometimes "Typeinitializer exception" We were using oracle.dataacess.dll version 1.102.3.0 which was working fine.It still works fine when we deploy it in the production. We checked the GAC of the developer machines and Server,i found one difference that in the GAC of the server only the 1.102.3.0 is installed while on the developer machines,two version of oracle.client are installed in the GAC,one is 1.102.3.0 and the other is 1.102.4.0 When we run the code,it might be the case that .net framework is picking up 1.102.4.0 and that may be the problem,so we tried to include it in our project and that still gave us the same error !.We requested to uninstall 1.102.4.0 from developer machines but client refuses to uninstall that its security fix and can not remove it ! Than we thought to upgrade the version of oracle.dataacess.dll to 2.102.4.0 and code started working but it started giving onther trouble..which is

EML files are not opened in the browser

  
EML files opened from a SharePoint 2010 document libraries are not opened in the browser. Instead, a dialog box is opened and prompts to save the file.   Since there's no standard application that knows how to handle EML files, and since the EML format is built into SP (send emails to document libraries), I think this behavior is unacceptable. EML files should be opened in the browser, similar to SP 2007.  

Bugs in most Updated version of AjaxControlToolKit???

  
Hi everybody, I have an ASP.NET AJAX application, which is using .NET Framework 3.5. I have  visual Studio 2008 installed on my developer machine. The AjaxControlToolKit dlls I have installed in my system right now come from the file "AspNetAjaxLibraryBeta0911.zip". The released date of the dlls in the file is 12/29/2009. Exploring the AjaxControlToolKit download site, I found that there is a more updated version, which release date was April 12th 2010. I tried to update the AjaxControlKit.dll version to the newest one. I did this creating a path in my system: c:\Program Files\AjaxControlToolKit\WebForms\Release\ then I placed there the new AjaxControlToolKit.dll and AjaxControlToolKit.pdb files. Then I right clicked on the name of the dll inside my Bin directory in my application and selected "Update Reference". After I did this I tested the application and is giving me Jscript error messages like: "htmlfile: member not found", or Microsoft Jscript Runtime error "lenth is null or not an object". I don't get these error messages if I come back to the previous version of the AjaxControlToolKit. Can any body give me an advice on this? It doesn't make sense to me as the new version of the AjaxControlToolKit is supposed to be better in terms of fixing the bugs of a previous Beta dlls. Thanks a lot,   Al              

As a Sharepoint Client are SharePoint data files stored on my local PC unknowningly?

  
I am strictly a SharePoint user and I access the Sharepoint Server on my client PC.  If I open a file simply to read it while it's on the server (not checking-it our for edit or anything like that) is that file written to a temp file or directory on my PC for any specific period of time.  Example when I veiw the SharePoint file or log off the Sharepoint Server?

Forcing web browser form version to open in emails

  

I have a simple question - when I open up links in Outlook they automatically try to open in InfoPath eventhough I have selected Web Browser Form in the compatibility section of Form Options. How do I force it to open in the browser on all the links in these workflow generated emails?

Thanks,
Igor


Client image files uploaded to Server are staying locked when accessed again.

  

I have a web form that, upon user request, uploads an image file from the client to a server folder, makes a thumbnail and saves to another folder than sets an imageurl of an image control to that thumbnail. All fine up to here, problem is that at times (not always but could not find the exact pattern) when uploading an existing file, it throws a ' ... file used by another process ... ' error, both on the original image file and the created thumbnail. Is there a way to prevent the locking of these files or alternately, which object need I destroy to release the image file and avoid these contentions? I do destroy the image object immediately after thumbnail is created. Ideas anyone?


Application Page development: deployment of files

  

If I develop a 2010 Application page using VS2010 and an Empty Sharepoint Project to which I add an Application Page item, the aspx page  oes under the 14 hive \Layouts folder in a subfolder of my naming. The code behind goes into the resulting assembly which I choose to deploy to the GAC.

But say my aspx page has accompanying XSLT files - what is the correct location for those files?


Deployment Of SSIS With Config Files

  


I went through other threads and links on this subject. Still one thing which concerns me is the config files.

My current folder path is C:\Karunakaran\folder1\folder2\

Under folder2 I have the following files

4 dtsx files
1 .database file
1 .dtproj file
1 .dtproj.user file
1 .sln file
1 .suo file

Config folder ( C:\Karunakaran\folder1\folder2\Config\)
common.dtsConfig
oracle.dtsConfig

Based on some of the threads, when I enabled package configuration, I changed the path from
C:\Karunakaran\folder1\folder2\Config\common.dtsconfig -> common.dtsconfig

Once I did this, when I open the project I get a dozen of warning similar to the one below

Warning loading <package1>.dtsx: Failed to load at least one of the configuration entries for the package. Check configurations entries and previous warnings to see descriptions of which configuration failed.

What am I doing wrong here? If I have to deploy this to another box, what should I do to ensure that nothing breaks once its copied / installed?

Thanks


Version Check SP and Location Log Files

  

My SQL Server 2008 Standard is showing Verson 10.0.2531.0.   Is ths SQL 2008 SP 1?  What is the latest SP for SQL 2008 Standard?  

I want to check that my log files are truncating properly during my Full backup.   How can I find the path for where the log files are stored? 

Thanks - NC Beach Bum


NC Beach Bum

Firefox Version Wrong with Request.Browser.Version

  

Hi!

I'm try to get my site to detect what browser someone is using to ensure they're using one that is compliant with our site. Everything works, except Firefox seems to post the wrong version in the Request.Browser variables.

I'm on Firefox 3.6.10, but Request.Browser shows Mozilla 1.9.2.10. It's correct in the HTTP_USER_AGENT string:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 YFF35 Firefox/3.6.10 ( .NET CLR 3.5.30729)

Is there a way to detect it better without having to parse through the HTTP_USER_AGENT string?

Thanks!

-Eric


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend