Deployment of Silverlight 4 application

Discussion in 'Visual Studio' started by Sambodh, Apr 18, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. After finally getting my code from the beta and RC versions of VS2010 and SL4 modified to work with the final versions just released, and having it run perfectly in the VS Development Server, I've now spent almost 2 days trying to get it deployed to my DASP site without success.

    I just cannot get past the following error detected by Fiddler2 in the WebView inspector:

    IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.

    The user doesn't see this error but

    Load operation failed for query 'GetCommunities'

    I get this error independently of how I set

    serviceHostingEnvironment/multipleSiteBindingsEnabled

    Has anyone out there successfully deployed a Silverlight 4 Business Application with a SQL Server 2008 database hosted on DASP????

    I know I can connect to the database, I can even add the Entity Data Model using the version up on DASP. So I doubt if the connection string is the problem.

    I do not know how to alter the bindings on the remote IIS Manager...
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    With WCF, you can have only a single authentication scheme. In general, most people would want Anonymous access, you should then disable Basic Authentication.

    You can either do this in the IIS manager or just put code into your web.config.
     
  3. Cheers Bruce.
    What code should I put in web.config?

    If the alternative is do this in IIS manager, then there is a big warning on the discountAsp control panel saying "don't go here unless you've worked with IIS manager on your own server". Well, I haven't used IIS manager! My impression was that the Silverlight Business Application model handles all that as long as the programmer sticks to the rules. Well, we live and learn!
     
  4. I've found the code.
    Look at the forum tread:http://community.discountasp.net/showthread.php?t=10303
    and search for wisemx's contribution made on 20th April 2010.
    He's a star!
    As far as I can tell, a Silverlight 4 Business Application cannot be deployed without this. It seems a shame that this basic detail is not available somewhere prominent. If anyone wants to gather together the full story of how to deploy to discountAsp, I have a large set of notes that might help.
     
  5. Please publish your notes here

    Please publish your notes here since I'll be switching from Visual Studio 2008 to VS 2010 and also using Silverlight 4 Business App (WCF RIA Service as demonstrated by Tim Heuer online) sometime early next year. What is in your notes that is not in Wisemx's post of last April? I'd love to hear. I've bookmarked this post, so please feel free to add to it.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page