Why does my silverlight application work when hosted locally but not when it is deployed to shared hosting?

Shandrix
Shandrix used Ask the Experts™
on
I have a web site I am developing with the Umbraco CMS. I have a separate Silverlight web application in a subdirectory of that website called KB. We are running .NET 4.0.
The KB application works fine under Umbraco on my internal web server running IIS 7.0 under Windows Server 2008. I have it set to use the MS SQL 2008 R2 databases hosted by discountasp.net, and everything works.
Using the exact same files and web.configs uploaded onto the remote server, I get three errors.
The first error pops up when the I go to the kb application when it first opens.  initial errorThe second error happens if I try to login to the KB application.  login errorThe third error happens when I try to register a new user.
 registration errorThe web site is on shared hosting at discountasp.net, running on Windows Server 2008, IIS 7 and Sql Server 2008. I have one application pool dedicated to my entire website, with both applications (Umbraco and KB).
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Wayne BarronAuthor, Web Developer
Top Expert 2009

Commented:
Found this

==========

Your problem could be that your webserver is refusing the serve a file with a ".cs" extension, which is the standard policy.
To see if this is the case, you can rename the file to end with ".htm" and see if that works.   If it does, then you *could* (I say it like that, because it is generally not recommended) configure IIS or whatever server you're using to serve files with that extension.
==========
From here
http://forums.silverlight.net/forums/p/47047/125871.aspx
Read through and you will see the one that is selected as Answer.

Hope this helps.
Carrzkiss

Author

Commented:
There are no .cs files on the server, as this application was already compiled. There is an .xap in /CientBin.
Commented:
We have diagnosed and fixed the problem. Turns out on the remote server, both Basic Authentication and Forms Authentication were enabled at the same time in IIS, and they apparently conflict because Basic authentication uses challenge and forms uses login/redirect. I disabled Basic Authentication and it works now.

We used Fiddler to find the error.
Wayne BarronAuthor, Web Developer
Top Expert 2009

Commented:
Good catch
Good Luck
Carrzkiss

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial