locked
Hosting xbap in a non-asp.net web site? RRS feed

  • Question

  • Since it's a client technology, it seems viable that a xbap could be host in a non-asp.net (such as FreeBSD host)web site only if I added the MIME types. Is this true? How can I do this?

    Thanks!

    Saturday, April 15, 2006 5:26 AM

Answers

  • You should be able to add these MIME types:

     

    Extension MIME Type

    .manifest

    application/manifest

    .xaml

    application/xaml+xml

    .application

    application/x-ms-application

    .xbap

    application/x-ms-xbap

    .deploy

    application/octet-stream

    Saturday, April 15, 2006 6:55 AM
  • It should work the same as IIS would do it. As long as the client has WPF installed.
    Saturday, April 15, 2006 8:10 AM
  • Try creating an application/octet-stream MIME type entry for the .exe.

    Monday, November 13, 2006 7:14 AM

All replies

  • You should be able to add these MIME types:

     

    Extension MIME Type

    .manifest

    application/manifest

    .xaml

    application/xaml+xml

    .application

    application/x-ms-application

    .xbap

    application/x-ms-xbap

    .deploy

    application/octet-stream

    Saturday, April 15, 2006 6:55 AM
  • After I setup these, I could host xbap in a FreeBSD host?

    Thanks!

    Saturday, April 15, 2006 7:40 AM
  • It should work the same as IIS would do it. As long as the client has WPF installed.
    Saturday, April 15, 2006 8:10 AM
  • Thanks!

     

    Saturday, April 15, 2006 8:19 AM
  • It seems like .exe also has to be added as a mime type on the server? Otherwise I get:

    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:
      + Downloading http://clientdev/Demos/Dev/test.exe did not succeed.
      + The remote server returned an error: (404) Not Found.

    Friday, November 10, 2006 4:56 PM
  • Try creating an application/octet-stream MIME type entry for the .exe.

    Monday, November 13, 2006 7:14 AM
  • Yup, creating that mime type on the server worked. However, I now get another error (and I can't seem to resolve this error with the information provided in the appended error log). Any help would be appreciated.

    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.
     * [11/10/2006 1:49:38 PM] 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.

    Monday, November 13, 2006 9:54 PM
  • rather than using the exe extention, use the .deploy file type for executables on publish.  This should resolve your issues.
    Thursday, November 16, 2006 9:52 AM
  • Yes, Jerod's advice is good. Also try running mage -cc to clear the ClickOnce application store to rule out real store corruption.
    Friday, November 17, 2006 9:28 PM