Tips and Tricks in a world of Mix

When running Silverlight Prism Template Quickstart of Silverlight – got this error .

image

After going over a few posts

checked out my Mime Types  in IIS 7.5

image

You must have those extensions:

image

image

if you don’t have them just create new by Add function at the right top corner in the Actions panel .

Another way was to try to browse the .xap file to try to see the real error behind the problem . Got this error –

image

 

So it didn’t find my Silverlight binary – .xap file .

You should check in your Web dummy project  the ClientBin folder , and your Silverlight .xap file there . If they are not there then add the Silverlight Application to web by right click on the Web –> Properties – > Silverlight Application – > Add –> Choose one of the Silverlight apps and configure if you want to use Wcf Ria Services and so on bellow – > Ok

image

image

Rebuild solution.

So now you have the .xap in ClientBin.

Check out the root to the .xap file in the default.html in the Web app .

It should look like something like this –

<param name="source" value="ClientBin/Shell.xap"/>

Do pay attention to the path value. Could it be wrong in your case ?

Still getting the 2104..

One row above the previous html line comes this

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">

We saw that we have application/x-silverlight – app  , but should we have application/x-silverlight-2 instead ?

Still got the bloody 2104 !!

 

Well the solution was simple as always –

I just browsed the html created when I added the Silverlight app of shell and the path there was -  ClientBin/Debug/Shell.xap , then it’s working!

Solved through pain Smile

Hope I’ve helped !

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: