Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Deploying a Silverlight application

Deploying a Silverlight application

Scheduled Pinned Locked Moved WPF
csharpasp-netvisual-studiosysadminhelp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jerry Evans
    wrote on last edited by
    #1

    I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++

    D 2 Replies Last reply
    0
    • J Jerry Evans

      I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++

      D Offline
      D Offline
      DaveX86
      wrote on last edited by
      #2

      I'd be interested in how that works too. There isn't anything useful in the help file about it...I'm thinking that it's the same as deploying an ASP.Net based site, so you might look from that perspective. I did find one potential 'gotcha' about mime-types that I didn't know about here[^]

      J 1 Reply Last reply
      0
      • D DaveX86

        I'd be interested in how that works too. There isn't anything useful in the help file about it...I'm thinking that it's the same as deploying an ASP.Net based site, so you might look from that perspective. I did find one potential 'gotcha' about mime-types that I didn't know about here[^]

        J Offline
        J Offline
        Jerry Evans
        wrote on last edited by
        #3

        Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.

        D P 2 Replies Last reply
        0
        • J Jerry Evans

          Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.

          D Offline
          D Offline
          DaveX86
          wrote on last edited by
          #4

          Totally agree...feel free to share your hard earned knowledge here in the Silverlight forum when you get it :)

          1 Reply Last reply
          0
          • J Jerry Evans

            Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            Jerry Evans wrote:

            I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.

            You could always write one, based on your experience with Silverlight and commercial hosting, and post it here on CP.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            1 Reply Last reply
            0
            • J Jerry Evans

              I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++

              D Offline
              D Offline
              DaveX86
              wrote on last edited by
              #6

              I managed to get a test Silverlight 2.0 Application working on my local copy of IIS 6.0/WinXP Pro...some things to know: - It seems to work best if debugging is turned off in Web.Config, to change it, from VS2008 menus, go Website-->ASP.Net Configuration...that brings up an add-on for managing the security settings etc for your project. - Mime-types: I found references for 2 mime types that need to be added in your IIS Control Panel: - .xaml = application/xaml+xml - .xap = application/x-silverlight ...see here[^] for the .XAML and here[^] for the .XAP This[^] is another reference to the mime type issue. If you add these yourself, make sure not to forget the period in front of the extension, or it doesn't work eg: '.xap' not 'xap' - .Net 3.0 and 3.5 in Silverlight 2.0 still use the ASP.Net 2.0 stuff in IIS, make sure that your virtual directory under IIS is set to use ASP.Net 2.0 ...or your hosting provider has it set. - When I created my Silverlight Project, I included an 'ASP.Net Website' for testing...I copy the entire contents from that to my IIS virtual folder...if I make changes and rebuild, I recopy the whole thing. The other project which is the actual Silverlight project gets compiled into a *.XAP file which is copied to the 'ClientBin' folder of the 'ASP.Net Website' project, so you don't need any files from the actual Silverlight project for deployment. So, if my project was called 'SilverlightApplication', you would wind up with a 'SilverlightApplication.Web' folder...copy the entire contents of that to your IIS folder...the files and folders were:

              App_Data (folder)
              Bin (folder)
              ClientBin (folder with .XAP file)
              Default.aspx
              Default.aspx.cs
              Silverlight.js
              SilverlightApplicationTestPage.aspx
              SilverlightApplicationTestPage.html
              web.config

              To load the site from a web browser, I

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups