Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Friday, June 25, 2010

IE8 security warning when mixing http and https content

Ran into an issue with IE8 showing the following prompt with every page view under SSL.

Security Warning
Do you want to view only the webpage content that was delivered securely?
This webpage contains content that will not be delivered using a secure HTTPS
connection, which could compromise the security of the entire webpage.

Turns out the addition of the Microsoft AJAX CDN service is the cause in this particular case. Changing the script link to use SSL resolves the issue.

Friday, October 16, 2009

Sys.WebForms.PageRequestManagerParserErrorException and HttpContext Trace

Recently I started getting the following error from UpdatePanels in a ASP.NET site.

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '[initialvalue']|""|<div id="__asptrace"'.

Happily the error message pretty much points me straight at the issue: "server trace is enabled" and "__asptrace".

Turning the ASP.NET server trace off resolves the issue.

<trace enabled="true" pageOutput="false" requestLimit="40" traceMode="SortByTime" localOnly="true"/>

Wednesday, March 11, 2009

ScriptManagerProxy multple/split definitions.

I wasn't aware it existed, but the ScriptManagerProxy allows the ScriptManager to, for example, be defined in the master page and the have specific scripts and services added elsewhere via the proxy.

Wednesday, October 29, 2008

ScriptResource.axd throws ArgumentOutOfRangeException

After doing a deployment from the build server in the NZ timezone to the production server in the US PST timezone I started seeing the following exception:

----
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Specified argument was out of the range of valid values.
Parameter name: utcDate
Request information:
Request URL: https://www.mydomain.com:443/Site/ScriptResource.axd?blahdeblah
----

Turns out there were problems locating AJAX assemblies that, from the production servers perspective, were dated in the future.

The solution is to either wait for the timezone difference to sort itself out or to update the last modified date on the DLLS.

See the following link for an example of the latter.

Tuesday, September 2, 2008

Tech Ed 2008 Day Two - WEB317 Explore the new ASP.NET AJAX SP1 Script combining and history controls

Speaker: Scott Cate
  • http://www.codeplex.com/ScottCateAjax
  • Fiddler
  • ScriptManager EnableHistory="true" EnableSecurutyHistoryState Adds __historyFrame
  • JS pageLoad() - runs after page fully loaded (or AJAX postback)
  • Server
  • Combine
  • ScriptManager
  • ScriptReference
  • CompositeScript
  • Encrypted by machine key (important to consider for a server farm)
  • ScriptProfiler
  • Faster load time.
  • Script Combining - What's the big deal?
Not part of the presentation, but RPO (Runtime Page Optimizer) is another option for improving script performance.