How to host a WBA on IIS 7.0 in Windows Vista Beta 2.0?

When I follow the HOL: Building Web Brower Application with Windows Presentation Foundation and deploy a WBA with IIS 7.0, IIS can not work normally. After I copy the output content to c:\Inetpub\wwwroot\XBox and navigate IE 7.0 tohttp://localhost/XBox/XBox.xbap, I get a error page with following message:

HTTP Error 404.3 - Not Found

Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and therefore is not allowed.

I try to follow the instruction to modify MIME type in IIS 7.0, but MIME type Management feature can not be found in IIS Manager.

Who can help me resolve this problem? Thanks very much.

Evironment:
Windows Vista Beta 2, Windows SDK, Visual Studio 2005, Orcas (Cider), Workflow Extension.

[1142 byte] By [DanielDuan] at [2007-12-24]
# 1
I can open the XBox.xbap file with IE 7.0 normally.
SimonDuan at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
You need to install the MIME types necessary to serve XBAP applications on your local IIS instance. The MIME types required are described here: http://windowssdk.msdn.microsoft.com/en-us/library/ms752346.aspx

I tried to do this from the IIS7 admin UI, but couldn't find the right place to add the MIME types and ended up adding them manually to the applicationHost.config file (roughly analogous to the metabase in IIS7) which is normally found at c:\windows\system32\inetsrv\. If you open that XML file up in a text editor and search for "staticContent" you should find the right place to add the required elements.

JosephCooney at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3

Great thanks for your help. Following your instruction, it works better now.

But there still have some thing wrong. After I navigate to http://localhost/XBox/Xbox.xbap, browser begin to display the download process. But after the download, it display a message "Applicaiton Deployment Error".

The following is the detail information. I appreciate you if you cuold give me further help!

PLATFORM VERSION INFO
Windows : 6.0.5384.0 (Win32NT)
Common Language Runtime : 2.0.50727.88
System.Deployment.dll : 2.0.50727.88 (rtmLHS.050727-8800)
mscorwks.dll : 2.0.50727.88 (rtmLHS.050727-8800)
dfshim.dll : 2.0.50727.88 (rtmLHS.050727-8800)

SOURCES
Deployment url : http://localhost/XBox/Xbox.xbap
Application url : http://localhost/XBox/XBox.exe.manifest

IDENTITIES
Deployment Identity : XBox.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36fd7de15460a0e0, processorArchitecture=msil
Application Identity : XBox.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36fd7de15460a0e0, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Online only application.
* Browser-hosted application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while downloading the application. Following failure messages were detected:
+ Exception occurred during store operation.
+ Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
No phase information is available.

ERROR DETAILS
Following errors were detected during this operation.
* [2006/8/31 11:50:56] System.Deployment.Application.DeploymentException (ComponentStore)
- Exception occurred during store operation.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.SubmitStoreTransactionCheckQuota(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
Inner Exception
System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.Transact(IntPtr cOperation, StoreTransactionOperation[] rgOperations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Internal.Isolation.Store.Transact(StoreTransactionOperation[] operations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

SimonDuan at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
Seems like an issue with the ClickOnce application store. Can you delete the contents using mage -cc or manually deleting the store directory and then try your deployment again?
AshishShetty-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5

Where is the store directory?

Thanks very much:)

SimonDuan at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 6

On Vista it is: \Users\<your username>\AppData\Local\Apps\2.0

On XP SP2: \Documents and Settings\<your username>\Local Settings\Apps\2.0

AshishShetty-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified