Deploying ASP.NEt site to hosting company
<p>I have built a website using visual studio web devloper 2010.  It rund fine on local host on my machine but when I deploy it to my hosting provider (who do support ASP.NET) I get the following error:</p>

<p>500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.</p>

<p>Just to test the site has been registerd I put a simple hello world html on the server and that works fine.  I am pretty sure that my problem will be with the web.config and have tried a few ways of trying to get more info about the error  using
 httpErrors existingResponse="PassThrough" /> and turning show friendly html errors off but that doesn't make any difference?  I have logged a support call with the hosting site but that will not get answered until monday!</p>

<p>New error when loaded straight to Firefox</p>

<p>XML Parsing Error: not well-formed
Location: file:///C:/Users/Fiona/Documents/Visual%20Studio%202010/Projects/Wedding/Wedding/MenuSelector.aspx
Line Number 1, Column 2:&lt;%@ PageTitle="Menu Selector"  MasterPageFile="~/Site.master" Language="C#" AutoEventWireup="true" CodeBehind="MenuSelector.aspx.cs" Inherits="Wedding.MenuSelector" %>
-^</p>

<p>Any suggestions on how to resolve this would be much apprciated, web.config shown below:
(this is just a learning exercise so no sensitive data in file)</p>

<pre><code> &lt;?xml version="1.0"?&gt;
&lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&gt;
    &lt;configuration&gt;
    &lt;configSections&gt;
    &lt;sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions,  Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
      &lt;sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
        &lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
        &lt;sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
          &lt;section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/&gt;
          &lt;section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
          &lt;section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
          &lt;section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
        &lt;/sectionGroup&gt;
      &lt;/sectionGroup&gt;
    &lt;/sectionGroup&gt;
  &lt;/configSections&gt;
  &lt;connectionStrings&gt;
    &lt;add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  &lt;system.web&gt;
    &lt;compilation&gt;
      &lt;assemblies&gt;
        &lt;add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&gt;
        &lt;add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
        &lt;add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
        &lt;add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
        &lt;add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
      &lt;/assemblies&gt;
    &lt;/compilation&gt;
    &lt;authentication mode="Forms"&gt;
      &lt;forms loginUrl="~/Default.aspx" timeout="2880"/&gt;
    &lt;/authentication&gt;
    &lt;membership&gt;
      &lt;providers&gt;
        &lt;clear/&gt;
        &lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/&gt;
      &lt;/providers&gt;
      &lt;/membership&gt;
      &lt;profile&gt;
      &lt;providers&gt;
        &lt;clear/&gt;
        &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&gt;
      &lt;/providers&gt;
    &lt;/profile&gt;
    &lt;roleManager enabled="false"&gt;
      &lt;providers&gt;
        &lt;clear/&gt;
        &lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/&gt;
        &lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/&gt;
      &lt;/providers&gt;
    &lt;/roleManager&gt;
    &lt;pages&gt;
      &lt;controls&gt;
        &lt;add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;/controls&gt;
    &lt;/pages&gt;
    &lt;httpHandlers&gt;
      &lt;remove verb="*" path="*.asmx"/&gt;
      &lt;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
    &lt;/httpHandlers&gt;
    &lt;httpModules&gt;
      &lt;add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
    &lt;/httpModules&gt;
  &lt;/system.web&gt;
  &lt;system.webServer&gt;

      &lt;httpErrors existingResponse="PassThrough" /&gt;

    &lt;modules runAllManagedModulesForAllRequests="true"&gt;
      &lt;remove name="ScriptModule"/&gt;
      &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
    &lt;/modules&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;handlers&gt;
      &lt;remove name="WebServiceHandlerFactory-Integrated"/&gt;
      &lt;remove name="ScriptHandlerFactory"/&gt;
      &lt;remove name="ScriptHandlerFactoryAppServices"/&gt;
      &lt;remove name="ScriptResource"/&gt;
      &lt;add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
    &lt;/handlers&gt;
   &lt;/system.webServer&gt;
   &lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;/system.webServer&gt;
  &lt;system.codedom&gt;
    &lt;compilers&gt;
      &lt;compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"&gt;
        &lt;providerOption name="CompilerVersion" value="v3.5"/&gt;
        &lt;providerOption name="WarnAsError" value="false"/&gt;
      &lt;/compiler&gt;
    &lt;/compilers&gt;
      &lt;/system.codedom&gt;
     &lt;runtime&gt;
    &lt;assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.Extensions.Design"   publicKeyToken="31bf3856ad364e35"/&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/&gt;
      &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
      &lt;/runtime&gt;
    &lt;/configuration&gt;
</code></pre>
