Click here to Skip to main content
15,868,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai

Iam getting an error like 500 internal server error in one website..

I have developed with visual studio 2010 with the database sqlserver 2012..

Below is my web.config file please check it .. if there is any problem.. Why am getting this error.


XML
<?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <add key="MailTo" value="info@kadairestaurant.com" />
    <!--<add key="MailTo" value=""/>-->
    <add key="MailServer" value="" />
    
    <!-- Paypal Credentials-->

    <add key="token" value="kKq0rAgtWuqmkBxES9JIwwqb6DZFdd8Kan81-SQbUQzJ3oHGM5jCd8zXKkW" />
    <add key="paypalemail" value="prasad_1344937715_biz@gmail.com" />

    <!--Here i used sandbox site url only if you hosted in live change sandbox to live paypal URL-->
    <add key="PayPalSubmitUrl" value="https://www.sandbox.paypal.com/cgi-bin/webscr" />

    <add key="FailedURL" value="http://localhost:49439/CAKEEXOTICAFINAL/Failed.aspx" />
    <add key="SuccessURL" value="http://localhost:49439/CAKEEXOTICAFINAL/Success.aspx" />   
    
  </appSettings>
  <system.webserver>
    <validation validateintegratedmodeconfiguration="false" />
  </system.webserver>
  <connectionStrings>
<add name="conn" connectionString="Server=xxxxxxx;Initial Catalog= xxxxxx;User ID=kadair;Password=xxxxxxx" />

  </connectionStrings>
	<system.web>
	 <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" />
		<compilation debug="true" targetFramework="4.0">
			<assemblies>
				<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
				<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
			</assemblies>
			
		</compilation>
		    <authentication mode="Windows"/>
    <customErrors mode="Off"></customErrors>
	</system.web>
	<system.webServer>
		<modules runAllManagedModulesForAllRequests="true" />
        <defaultDocument>
            <files>
                <clear />
                <add value="Index.html" />
                <add value="Index.htm" />
                <add value="Index.cfm" />
                <add value="Index.shtml" />
                <add value="Index.shtm" />
                <add value="Index.stm" />
                <add value="Index.php" />
                <add value="Index.php3" />
                <add value="Index.asp" />
                <add value="Default.aspx" />
                <add value="Index.aspx" />
                <add value="Default.htm" />
                <add value="Default.asp" />
            </files>
        </defaultDocument>
	</system.webServer>
 <system.serviceModel>
  <bindings>
   <basicHttpBinding>
    <binding name="ChhawaniSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <security mode="None">
      <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>
    </binding>
   </basicHttpBinding>
  </bindings>
  <client>
   <endpoint address="http://runyourbusinessonline.in/Chhawani.asmx" binding="basicHttpBinding" bindingConfiguration="ChhawaniSoap" contract="ServiceReference1.ChhawaniSoap" name="ChhawaniSoap" />
  </client>
 </system.serviceModel>
</configuration>


[edit]Code block added[/edit]
Posted
Updated 20-Dec-13 0:34am
v3

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900