Archive

Archive for the ‘IIS’ Category

Hosting Silverlight 2.0 in IIS

April 2, 2008 Shahed Leave a comment

If you host Silverlight 2.0 application in IIS you might find that the silverlight object is not loading. If that’s the case, first thing you should check is the MIME type list. By default, the Silverlight package extension *.xap is not included.

To resolve that, go to IIS Manager, properties of your web site and check the “Http Headers” tab.

1

Then click the MIME Types button. You should see a list as bellow.

2

If the .xap extension is not in the list then click New… and add the following entry:

Extension: .xap
MIME type: application/x-silverlight-app

Now, check your site. You should get the silverlight objects properly.

kick it on DotNetKicks.com

Categories: IIS, Silverlight Tags:

Error messages when trying to install IIS components on Windows XP

February 16, 2008 Shahed 1 comment

I was getting the following error message when tried to install IIS componentes:

“Setup cannot copy the file staxmem.dl_”

It was showing the error even after providing proper location of the file in WindowsXP installation CD. Finally, I found a solution in microsoft support site. According to the site, it could cause if the secedit.sdb in %windir%\security\database\ got damaged. To fix the secedit.sdb, do the following steps:

1. Make a backup copy of the secedit.sdb file.
2. Open a command prompt by clicking Start, Run, and then typing “cmd” and pressing Enter.
3. Type or copy and paste the following command
esentutl /p %windir%\security\database\secedit.sdb
and press Enter. Click “OK” when presented with “Repair” warning. Wait for repair to finish.

In my case, I installed a Virtual CD Rom software and seems to me that it caused the damage in secedit.sdb file.

Categories: IIS Tags:

IIS Error “Unexpected error 0×8ffe2740 occurred”

February 16, 2008 Shahed Leave a comment

I have been getting the following error when trying to start IIS from my XP machine:

“Unexpected error 0×8ffe2740 occurred“

You can get more information in MS KB @ http://support.microsoft.com/?id=816944

Finally, I discovered that its caused by Skype. It listens to port 80 for incoming call. Now, most of the time IIS starts before Skype starts. So IIS works but if you restart IIS or try to start IIS after Skype is started then you will get this error message.

There are 2 possible solutions:

1. You can change your IIS settings to run in different port (say 81)

2. You can change your Skype settings
Skype File-> Options -> Connection
Uncheck Use Port 80 as an alternative for incoming connections.

Restart default website.

Categories: IIS Tags: