Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...expression encoder templatesexpression encoder templates
Previous
 
Next
New Post
3/28/2008 11:08 AM
 

Hello,

I am trying to get a project from Expression Encoder 2 to work inside DNN.  Its a simple media player that just plays a video.  I wanted to use the Expression Encoder Templates, thats all.  

Expression Encoder outputs numerous JS files.  One of htem is MicrosoftAjax.js .  I think this is where my problem lies.  If I dont include this file I get a bunch of JS errors.  If I do include this file, I get 1 JS error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'. Parameter name: instance

which doesnt tell me much.  I've googled the error with no help also.

I thought DNN had built in support for the Ajax so I even tried using "Supports Partial Rendering" and also "DotNetNuke.Framework.Ajax.RegisterScriptManager".

I thought this would be a simple 123 thing but I guess I am wrong.

 

I am running on Asp.net 3.5 / VS 2008 / Win Vista / IE 7 & FF

 

It seems the expression encoder templates are dependant of that MicrosoftAjax.js file. 

 

Any insight would be greatly appreciated.

 
New Post
3/28/2008 10:32 PM
 

I was able to solve this problem.

It turns out I need to register the silverlight controls under the scriptmanager.

 

I was using this method to inject the js:

Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "Silverlight", this.TemplateSourceDirectory + @"/Silverlight.js");

 

Instead, I used this method:

ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/Silverlight.js"));

 

The following website helped me out: http://www.timheuer.com/blog/archive/2007/09/14/expression-encoder-and-aspnet-ajax.aspx

This may be the solution to some other peoples silverlight woes that I have been reading about.

Hope it helps someone!

 
New Post
5/20/2008 12:15 PM
 

Hi thanks for your solution, but I faced other problems

I inserted following lines in my code

            ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/js/VideoTune/Silverlight.js"));
            ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/js/player/BasePlayer.js"));
            ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/js/player/PlayerStrings.js"));
            ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/js/player/player.js"));
            ScriptManager.GetCurrent(this.Page).Scripts.Add(new ScriptReference(this.TemplateSourceDirectory + @"/js/player/StartPlayer.js"));
           

But when I call functions from StartPlayer.js it seems that it's not working. No function is called.. though no error occurs

 

Can someone help me with this?

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...expression encoder templatesexpression encoder templates


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out