Click here to Skip to main content
15,889,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


XML
<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>


This is the Error I am getting when i Put my pages on web through FTP.
XML
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
    <add name="amitpandeyConnectionString" connectionString="Data Source=MNT-PC\SQLEXPRESS;Initial Catalog=amitpandey;Integrated Security=True" providerName="System.Data.SqlClient"/>


  </connectionStrings>
  <system.web>
    <authentication mode="Forms">
      <forms loginUrl="login.aspx" protection="All" timeout="30">
        <credentials passwordFormat="Clear">

        </credentials>
      </forms>
    </authentication>
    <compilation debug="true" targetFramework="4.5">

      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <httpRuntime targetFramework="4.5"/>
  </system.web>
</configuration>

When I try to remove MNT-PC from the connection string it shows me the error. Please help Me .
Posted
Updated 20-Nov-14 18:16pm
v3
Comments
arvind mepani 21-Nov-14 2:25am    
When you removing "MNT-PC" which is a server name, Error occurs because your application can't find any server for database.
Member 11111143 21-Nov-14 2:28am    
So sir What Shall I do in order to remove this error.
Member 11111143 21-Nov-14 2:27am    
The database ip is 118.67.248.175 if I put if ip and the debug then it shows me the error in the form of IIE error . I want that I can Debug both ways.
arvind mepani 21-Nov-14 2:32am    
When you put database ip what error occur ? provide full description about that error. share some more info regarding this error.
Member 11111143 21-Nov-14 2:48am    
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
This is the error I get if I place database ip 118.67.248.175 in the Connection String . Actually Sir I want that I that my Connection String Should be such that i Can access my database at ip 118.67.248.175 and I can test it from my local PC.

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