Archive for category Silverlight

Cannot load HTML template: No launch page defined in template at c:\Program Files (x86)\Microsoft Expression\Encoder 4\Templates\en\…

While trying my hands on Expression Encoder 4, I came across this issue that my template was not loading . When I checked my Activity log I found that:

Cannot load HTML template: No launch page defined in template at c:\Program  Files (x86)\Microsoft Expression\Encoder  4\Templates\en\SmoothStreamingMediaElement.
Cannot load HTML template: No  launch page defined in template at c:\Program Files (x86)\Microsoft  Expression\Encoder 4\Templates\en\PlugInMSSCtrl.
Cannot load HTML template:  No launch page defined in template at c:\Program Files (x86)\Microsoft  Expression\Encoder 4\Templates\en\OfflineShared.
Cannot load HTML template:  No launch page defined in template at c:\Program Files (x86)\Microsoft  Expression\Encoder 4\Templates\en\MediaPlayer.
Cannot load HTML template: No  launch page defined in template at c:\Program Files (x86)\Microsoft  Expression\Encoder 4\Templates\en\ExpressionPlayer.
 

The reason for this Error was due to the version change. In Expression Encoder 4 > Templates tab is separated from output tab. So simply I added the tab & selected appropriate template I wanted & the error was removed. It also created the necessary packages required

To Add the Templates Tab, simply go to Windows option and Click Templates.

Tags: , ,

AG_E_PARSER_BAD_PROPERTY_VALUE

Error Reporting in Silverlight is really bad. One of the most common error you see whiled developing a Silverlight application
is AG_E_PARSER_BAD_PROPERTY_VALUE.
This error mostly occurs due to following,

Version Change in assemly while you are working in the same code (i.e. you used version x initially and later on you changed it to version x + y ). Some Assemblies in 3rd party control when upgraded do not support few older properties or methods.

Your XAML code is referring to some event which is not present in the code behind file. Make sure that all XAML code has relevant code in code behind file. (Remove any unnecessary Events from XAML and CS files)

Your XAML code has repeated the same code again, causing a clash.

Hope this helps

Tags:

The following module was built either with optimizations enabled or without debug information + Silverlight

While coding with VS 2005/2008 you may encounter with an exception that " The following module was built either with optimizations enabled or without debug information" .

To Resolve this, first thing you can do is enable full debug info on your project. to do this,

- Right Click the Project which is giving the exception and Go to Properties

- Under the Build tab go to the Advance option

- Set Debug Info to Full as shown below ,

Advance Settings

If this doesnt resolve you problem,

Please remove all the project references from your project that gives this exception.

- Remove all files from the bin folder of your project.

- If bin folder file attributes are read only , remove the read only attributes on bin folder.

- Add the existing project references again

- Rebuild the project

This should resolve your problem.

Tags: ,

Not able to Debug Silverlight 2.0 application in Visual Studio 2008

This happens if you dont have the Silverlight Debugger Attached to the Web project in your solution.

Right Click the Web Project and go to Web tab under properties. Please check the Silverligth Debugger as shown in the Image below, you will be able to Debug

Enable Debuggin on VS 2008 for Silverlight

Enable Debuggin on VS 2008 for Silverlight

Tags:

InitializeError error #2104 in Control ‘silverlightControHost’. Could not download the Silverlight Application

This exception comes due to simple reason that there are MIME Types missing for your silverlight Application which gives you following exception in your IE,

Silverlight Object Exception

Silverlight Object Exception

 

 

 

 

To reslove the same you simply need to add the MIME types to your WebSite on IIS. Select HTTP Headers Tab under the Properties. Click on MIME Types and add

   .xaml            application/xaml+xml

  .xap               application/octet-stream

You also need to enable the Content Expiration

Now your silverlight object will be loaded. If you still face problems try checking up on your permissions

Tags:

Paying the bills.!