ASP.NET Ajax Preview Script Loading Error
Posted: 01/08/07 8:43 AM
Here is a little tip of you’re playing around with the "Futures December CTP". If you have been using earlier version of the preview code, you might end up putting this in your ScriptManager to load the preview scripts:
<asp:ScriptReference
Assembly="Microsoft.Web.Preview"
Name="PreviewScript.js" />
<asp:ScriptReference
Assembly="Microsoft.Web.Preview"
>Name="Microsoft.Web.Resources.ScriptLibrary.PreviewGlitz.js" />
Bad idea. If you’ll do this you’ll get either of the following error messages:
- Assembly 'Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not contain a Web resource with name 'Microsoft.Web.Resources.ScriptLibrary.PreviewGlitz.js'
- Assembly 'Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not contain a Web resource with name 'Microsoft.Web.Resources.ScriptLibrary.PreviewScript.js'
To fix this, just remove the "Microsoft.Web.Resources.ScriptLibrary." from the "Name" attribute. Was having this problem. Noticed the fix here.