Blog

Share this blog : twitter

Oct 31

Written by: IOTAP ::-- DotNet Team
10/31/2008 11:47 AM 

This blog explains the process of configuring Silverlight 2.0 application to work with IIS.

When you create and execute a Silverlight 2.0 application from visual studio environment, the application would open in your browser as expected. But when you run the application from an IIS virtual directory most probably you will encounter the below error

 

Error: Sys.InvalidOperationException: InitializeError error #2104 in control 'AppName': Could not download the Silverlight application. Check web server settings”

 

The reason for this error is XAP and XAML file extensions used by Silverlight application are not configured as registered MIME types within the IIS virtual directory.  Because of the MIME types not being registered those files are not served by IIS and hence you get the error. If you try to access the files individually from a browser you will end up with file not found error.  The solution for this is pretty straight forward.  All you have to do is add XAP and XAML MIME types to IIS.  Following steps details this process.

  • Open IIS MMC snap in.
  • Right click on virtual directory of your Silverlight application and select properties.
  • Click Http Headers Tab. You will see a dialog box as shown below

  • Click MIME Types button. You will get a form managing MIME types as below

  • Add the following MIME Types.

SI.No

Extension

MIME Type

1.

.application

application/x-ms-application

2.

.deploy

application/octet-stream

3.

.manifest

application/manifest

4.

.xaml

application/xaml+xml

5.

.XAP

application/x-silverlight-app

6.

. xbap

application/x-ms-xbap

7.

.xps

application/vnd.ms-xpsdocument

  • After adding all the MIME Types  the dialog box will be similar to the one shown below.

  • If any one of the above MIME type is present already then leave it as it is.
  • Click OK to save your changes.
  • If you browse your Silverlight application now it would show up without any errors.

 

Posted by,

Praveena.T.N

Tags:

1 comment(s) so far...

nike air max 2009

As scientific study show that a person’s life, not less than 1 third are situated in a various sports such as running and play basketball.As this, wearing a comfortable pair of air max shoes to exercise is

significant.The my-nikeshoes.com online store have many kinds of nike max shoes,this nike air max shoes are all high quality but low price.If you a female,you

may consider womens air max 2009,womens air max 2010,womens air max 90,womens air max classic BW,womens air max 95,womens air max ltd,womens air max 2012,
href="http://www.my-nikeshoes.com/womens-air-max-87-c-289.html" rel="nofollow">womens air max 87
,womens air max 97.If you are a kid,you can think out
href="http://www.my-nikeshoes.com/kids-air-max-90-c-298.html" rel="nofollow">kids air max 90
,kids air max classic BW,if you are a man,you can think over nike air max 180,nike air max 2009,nike air max

2010
,nike air max 2012,nike air max 87,nike air max 90,nike air max 91,nike air max 93,nike air max 95,nike air max BW,nike air max ltd,
href="http://www.my-nikeshoes.com/nike-air-max-tn-c-287.html" rel="nofollow">nike air max TN
,these nike air shoes are all breathable and durable.The most important thing is to wear comfortable, not to hurt the

feet. Otherwise, if shoes aren't appropriate, makers a foot in numerous respects, the impact of internal organs, affecting appetite, skin, and a number of other health challenges. air

max 2009 nike
and air max 90 nike are developed for tourism,sports activities footwear,its technical content within the footwear. Plus a foot inside the movement,will do lots

of friction and contact,not the excellent footwear can conveniently affect the comfort of your feet.For that reason,in motion to wear a pair of comfy,scientific,suitable sports activities footwear,it's rather incredibly fundamental. If you may possibly be a

expert athlete, the system nike air max and acquire a perfect musculature.Actually, apart from as a trainer for running the boundary line of womens air max,

who also has a taste of Fashion, or even enhance the functionality of style. The air max 2009 has made some major progress in terms of righting the air max. Although the classic Air Max models as air max 95,air max BW,air max 90 continue to sell, many of the newer designs have struggled to catch on. The air max tailwind 2010 and nike air max tailwind got off to a good start, impressing a lot of people with its sleek design and heavy use of Flywire

technology. With its innovative lightweight construction and sleek look, the air max 2010 has definitely made the statement that there is plenty to still get excited about when it

comes to the continuation of the air max nike legacy. The shoes still sports the same basic design, but the upper is simplified, using a mesh and leather upper with EVA outsole and tongue branding.
href="http://www.my-nikeshoes.com/nba-basketball-shoes-nike-kobe-shoes-c-313_314.html" rel="nofollow">nike kobe shoes
, nike air max lebron vii shoes and

nike lebron vii low shoes,nike air max

lebron vii low shoes
maintains a similar look to the prior versions by using a stitching pattern on the side of the upper that follows the same design as the crossed Flywire.kobe v shoes and nike lebron james vii PS shoes is the 2010 new designed specfically for LeBron's second

season,Inherited air max lebron vii shoes advantages, and added many new technologies.The nike lebron vii PS shoes is very best suit to play basketball.If you are a Lebron fan,buy lebron vii PS are your best choice.Welcome to visit our online store.

By nike air max 2009 on   7/28/2010 9:42 PM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 


 
 
 

IOTAP is an IT Consulting and Software Services Company with global delivery centers in Mumbai and Chennai, India. We are a Microsoft Gold Certified Partner and use products and technologies like Dynamics CRM, SharePoint, Silverlight, and the .Net platform to create solutions that help our customers connect, communicate and collaborate effectively