How To Setup Silverlight Xap Caching To Work The Same In All Browsers

Dec 20, 2010

I have a SL app that can be run in-browser or out-of-browser. I want the browser to:

Cache the xap file Load the xap from the cache if it has not changed or re-download it if it has changed.

More details

Setting a future expires header obviously solves the caching problem but then I cannot force the user to download the latest version. Normally I would just add a querystring to the url (eg url?v=1) but I cannot do this as this breaks the out-of-browser functionality. eg the app thinks it is not installed when in fact it is.

no cache

If I set Cache-Control to no-cache, Chrome and Firefox correctly send a request to the server for the xap but use the cache if a 304 is returned. IE8 just downloads the file again as does Safari.

must-revalidate

Setting Cache-Control to must-revalidate again works correctly in Chrome and Firefox but Safari always downloads the xap again while IE8 always uses the cache.

View 1 Replies


Similar Messages:

Configuration :: How To Create Web Setup For A Website That Contains Silverlight

Mar 13, 2010

I am creating a web setup for a ASP.NET web application.

After creating the setup i installed in iis it running perfect except silverlight portion. It display blank in that silverlight portion. All the others aspx pages are working file.

View 1 Replies

How To Setup Caching For A Page In .NET And Give It A Cache Key Dependency

Feb 15, 2011

How do I setup caching for a Page in ASP.NET and give it a cache key dependency? I am familiar how to do this with a UserControl, I set a Partial Caching attribute and then set

this.CachePolicy = new CacheDependency(..)

How would I do this for a Page? It does not have a CachePolicy object,

View 1 Replies

Web Forms :: Https+pdf Work Fine With Other Browsers But Not With IE

Dec 8, 2010

[Code]....

This is the code behind a button. I get this error when pressing the button: "Unable to download ******* from ********. Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."I have found a few posts about this error but I haven't found any solution yet.This works fine with other browser but not in IE.

View 1 Replies

AJAX :: Update Panels Work In All Browsers But IE?

Dec 22, 2010

I have multiple update panels on a page. The page works perfectly in Chrome, Firefox, safari, and opera but it does not work in IE. I am using .NET 4.0.

View 1 Replies

Accesskey Does Not Work, Trigger The Browsers Short Keys?

Apr 29, 2010

I want to user accesskeys on my linkbuttons but somehow they trigger the browser's short keys.. like this

[Code]....

i want to change the ALT to CTRL instead to?

View 2 Replies

C# - Setup And Deployment Does Not Work

Feb 5, 2010

I am working on VS 2008 and 3.5 framework. I had three windows services. I placed all three in a single solution, created installer individually for each of them. Then created a setup project. When I build it says build failed . But I checked on the errorlist, (i enabled the diagnostics in options menu), but there was no error at all. I went ahead and installed. There were no issues, But there was no service showed up in the services.msc.

I installed each service individually , using installutil command, it showed up. But my requirement is to bundle these services and deploy to the client. The client should install it.

View 3 Replies

Web Forms :: Silverlight Causes MasterPage BlendTrans To Not Work

May 19, 2010

Platform: VS 2010, .NET 3.5, ASP.NET, Silverlight

I am working on an ASP.NET app that uses a Master Page. The master page uses the "blendTrans" attribute to prevent flicker between page loads during navigation.

Here is a code snippet:

<head id="Head1" runat="server">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />

....
</head>

In one of the content pages I create a Silverlight 3 app. Here is the code:

<asp:content>
<div id="silverlightControlHost" style="height:100%; width:100%; text-align:center;">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/DataMapperCtrl.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
</div>
</asp:content>

The Silverlight app works fine, but since adding the Silverlight app the navigation between the main pages on the app is very slow and gray is displayed between the page loads.

Has anybody else had this problem?

View 1 Replies

Server Side Caching Doesn't Work With HttpHandler?

Mar 15, 2010

If we use an aspx page with a Caching Profile, the server caches images that are loaded with the aspx page. So if ten clients load the same image through the aspx page (same url), for one client the image is gotten out of the db, for the nine others it is cached.When we use a HttpHandler, this doesn't happen. The image is always fetched from the database. We have tried all different settings without any success. (we have checked this link and have not been able to cache on server side).

View 1 Replies

Does <httpRedirect> In Web.config Work In A Mono Setup? Or Is It IIS7 Specific?

May 11, 2010

We had some content restructure recently and I'd like to put in some redirect rules into web.config so bookmarks to the old pages can get routed to their new locations/pages.I tried using this approach:

<location path="~/product/productA.aspx">
<system.webServer>
<httpRedirect enabled="true" destination="~/product/category/productA.aspx" exactDestination="false" childOnly="true" httpResponseStatus="Permanent" />
</system.webServer>
</location>

But all I'm getting when I go to "[URL] is our http 404 page.Am I doing something wrong, or is the httpRedirect tag in web.config not supported in mono?

View 1 Replies

Why Wouldn't An Embedded Silverlight Control Work In A Page

May 19, 2010

I have a silverlight application project in my solution. The other project is a web application project that has a .xap file in ClientBin.

When I created the silverlight project, it asked if I wanted the asp.net application to host it (and I said yes).

In the root directory, there is a test page for the silverlight control. That loads the control.

In another directory, I insert the SAME asp markup to get the silverlight control to launch again.

Nothing happens.

Why would the silverlight launch on one page and not on the other? how to documentation about dependencies that I might not know about?

I've put a reference to Silverlight.js on the page as well.

Here's the markup:

[code]....

View 1 Replies

Web Forms :: Output Caching Doesn't Work With Rout Handler

Apr 22, 2010

I am trying to use output caching on my .net pages but it is not working when I use Route handlers to redirect request to actual page, but it works when I call the page directly.

also one more weird thing is that when I am debugging and using .net instance of IIS http://localhost:64293/test it is working, but when I deploy it and try to call the page it is not caching i.e. http://www.mydomain/test(but it works if I call the page directly)

I am using VS 2010, IIS 6.0, .net Framework 4

aspx page code is :

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master" Title="Not Found" %>
<%@ OutputCache Duration="300" VaryByParam="*" Location ="Server" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
litPageTitle.Text = "<br/>Datetime: " + DateTime.UtcNow.ToString();
}
</script>

my global.asax.cs code is

public static void RegisterRoutes(RouteCollection routes)

View 2 Replies

Visual Studio :: Setup Work Place In 2008 Team Edition?

Feb 20, 2010

how to set up work space on my computer using vs 2008. i am working with 3 junior developers and i got our own web hosting (not local own server yet). i am having problems that all juniors upload their files and overrided all the code.. so i want to set up work space on each computer and check in to local web server or web hosting we are using vs 2008 team editions, is there any possible in other version like professional and standard.

View 3 Replies

How To Work Out What Visual Studio 2010 Asp/silverlight Project Using .net Framework 3.5 Dependancies Are Missing

Jul 29, 2010

I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:

Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also.

I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).

View 2 Replies

Web Forms :: Prevent Browser From Caching Image - Trsponse.Cache.NoStore Didn't Work

Feb 22, 2011

[Code]....

How to prevent browser from caching image, Trsponse.Cache.NoStore didn't work

View 3 Replies

JQuery :: Jquery Work With Others Browsers And Put The Js Code Outside The Html?

Mar 10, 2011

with jquery and don't know much of it.I have a jQuery code in my asp page and it's not working with Mozzila, Chrome, and Safary it just work with IE. How can I make it work with those browsers? And
How can I put this jquery code outside my html?

[code]...

View 1 Replies

Security :: Custom NEW User Setup Which Build To Allow System Administrators To Setup Users?

Sep 21, 2010

I'm having trouble setting up a custom NEW User Screen. Here is my situation, I have a Request for Access Screen that uses the CreateNewUser Wizard Control. I want to leave the Question and Answer for this, however I also want a custom NEW User Setup which I build myself to allow the system administrators to setup users, but for this setup I don't want the administrators to have to pick the question and answer for the NEW user, so I would like to bypass this for this setup. However, my Membership.CreateUser keeps asking for it. How can I accomplish this? I've included a copy of my current web.config file. You will notice a AspNetAdminMemberhip which I use to allow the System Administrators to reset passwords.

<?
<
<
<
<
<
<
<
<
</
</
</
</
<
<
<
<
</
<
<
<
<

xml
version="1.0"?><configuration>configSections>sectionGroup
name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">sectionGroup
name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">section
name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="false"
allowDefinition="MachineToApplication"/>sectionGroup
name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">section
name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="false"
allowDefinition="Everywhere"/>section
name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="false"
allowDefinition="MachineToApplication"/>section
name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="false"
allowDefinition="MachineToApplication"/>sectionGroup>sectionGroup>sectionGroup>configSections>connectionStrings>add
name="LBX_ChangeControlConnectionString"
connectionString="Data
Source=10.31.30.26;Initial Catalog=LBX_ChangeControl;Persist Security Info=True;User ID=sa;Password=wstinol"
providerName="System.Data.SqlClient"/>remove
name="LocalSqlServer"/>add
name="LocalSqlServer"
connectionString="Data
Source=10.31.30.26;Initial Catalog=LBX_ChangeControl;Persist Security Info=True;User ID=sa;Password=wstinol"
providerName="System.Data.SqlClient"/>connectionStrings>system.web>membership>providers>add
name="AspNetAdminMembership"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
enablePasswordRetrieval="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="1"
/>
</
</
<
<
<
<
<
<
<
<
providers>membership>roleManager
enabled="true"/>authentication
mode="Forms"/>profile
enabled="true">properties>add
name="FirstName"
type="string"/>add
name="LastName"
type="string"/>add
name="Gender"
type="string"/>add
name="ProfileImageID"
type="string"/>add
name="Department"
type="string"/>add
name="PhoneNumber"
type="string"/>properties>profile>pages>controls>add
tagPrefix="asp"
namespace="System.Web.UI"
assembly="System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>controls>pages>
Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this affects performance, set this value to true only during development.

<
<
<
<
<
<
</
<
<

-->compilation
debug="true">assemblies>add
assembly="System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>add
assembly="System.Design,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>add
assembly="System.Web.Extensions.Design,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>add
assembly="System.Windows.Forms,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add
assembly="CrystalDecisions.CrystalReports.Engine,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.ReportSource,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.Shared,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.Web,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.ReportAppServer.ClientDoc,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.Enterprise.Framework,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
assembly="CrystalDecisions.Enterprise.InfoStore,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies>compilation>httpHandlers>remove
verb="*"
path="*.asmx"/>add
verb="*"
path="*.asmx"
validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>add
verb="*"
path="*_AppService.axd"
validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>add
verb="GET,HEAD"
path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false"/>add
verb="GET"
path="CrystalImageHandler.aspx"
type="CrystalDecisions.Web.CrystalImageHandler,
CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>httpModules>add
name="ScriptModule"
type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>httpModules>system.web>system.webServer>validation
validateIntegratedModeConfiguration="false"/>modules>add
name="ScriptModule"
preCondition="integratedMode"
type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>modules>handlers>remove
name="WebServiceHandlerFactory-Integrated"/>add
name="ScriptHandlerFactory"
verb="*"
path="*.asmx"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>add
name="ScriptHandlerFactoryAppServices"
verb="*"
path="*_AppService.axd"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>add
name="ScriptResource"
preCondition="integratedMode"
verb="GET,HEAD"
path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>handlers>system.webServer>location
allowOverride="true"
inheritInChildApplications="true">appSettings>add
key="CrystalImageCleaner-AutoStart"
value="true"
/>add
key="CrystalImageCleaner-Sleep"
value="60000"
/>add
key="CrystalImageCleaner-Age"
value="120000"
/>appSettings>location>system.net>mailSettings>smtp
from="Lockbox@tdbanknorth.com">network
host="ME6AWMAIL01.bkng.net"
password=""
userName=""
/>smtp>mailSettings>system.net>configuration>

View 1 Replies

State Management :: Partial Page Caching (user Control Caching) And Button Events?

Jun 14, 2010

I have a page with a number of user controls, In one of my user controls I have a button event. I turn on output cache for the user control that has the button and vary by control using the ID property of a hidden field control in the user control. whenever I turn on the output cache my button event doesn't fire.

View 2 Replies

C# - How To Build A Silverlight Application And Have It Work Under Application

Aug 7, 2010

If I need to build a silverlight application and have it work under my asp.net application!

Does that mean I have to create two different vs projects?

One for silverlight the other my asp.net application? Or I can have one in 1? What do I do?

View 3 Replies

WCF / ASMX :: Implement Caching Using System.Web.Caching?

May 15, 2010

how to implement caching in wcf service using System.Web.Caching

View 2 Replies

Configuration :: Web Setup Package Not Creates The Setup.exe And Only Makes .msi Package

Oct 5, 2010

I have a web setup package project alongside an old .asmx web service. When I build it I only get 'MyService.msi' and not the 'Setup.exe' in the 'Release' folder after build. Normally the .msi suffices for installation, but on Windows Server 2008 R2 I am getting denied from installing the .msi pacakge. I can only install .exe packages after right clicking and stating "Install as Administrator".

The server admin is still new to 2008 R2 and not sure why I can't install an .msi because I am an admin, so for now if I knew how to get that web setup package to generate the Setup.exe file as well I see my other VS.NET setup packages create.

View 1 Replies

Websites Look Different In Different Browsers?

Oct 29, 2010

I get different outputs in different browsers.

[code]....

View 1 Replies

Reading The URL From The Browsers Address Bar Using C# And MVC

Feb 18, 2011

I am trying to use domain masking to simulate multi-tenant access to my application. The plan right now is to read the subdomain portion of the domain ie: [URL] and load settings from the DB using that name.

The issue I'm having is that request.url is getting the request url - NOT the url in the browser.

So if I have [URL] forwarding to [URL] with masking, request.url is grabbing the latter, simply because of how masking works, i assume - by putting the masked site inside of a frame.

Is it even possible to read the url in the browsers address bar?

View 1 Replies

Mobile And Regular Web Browsers?

Aug 5, 2010

I am designing ASP.net Web pages and not sure if this would be the right way to do this.I am designing the web sites that will be accessed from either regular computers or mobile devices (phone).I was thinking to detect at very first page that whether users are coming from mobile browser or regular browser and direct to appropriate pages. So for mobile users, create/display separate UIs (rearrange controls to fit on mobile device) and for regular users, create/display separate UIs. The backend functionalities will be same, but just the UIs. Therefore, in this case I will create two separate projects in same solution, one for mobile UIs, and other one for regular UIs, but same code behinds.

View 3 Replies

Displaying Images With Browsers

Dec 9, 2010

I had bad problem I had table in database which display images for products the data type of model image VarBinary(Max) when I published new web site and tested the pages on sararie,firefox,IE8 the image in some of images appeared with small size from the original on image size

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved