SQL EXPRESS

Discussion in 'Databases' started by raymondp, Mar 8, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Also make sure that you have inputted this in your web.config file under your connection string section of the config file...
    <remove name='LocalSqlServer' />
     
  2. I have been advised to use this forum in a reply to my help ticket.

    I have made a system in Visual Web Developer 2005 Express. It uses a login control made using ASP.NET configuration utility with VWD, which produced an sql express DB called 'ASPNETDB.MDF'.

    It works fine on local host, but once it is uploaded on to discount asp, and try to login i'm presented with...

    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    After many wasted hours of searching for the solution i have still not been able to solve this problem.


    Any help would be greatly appreciated!!!
     
  3. Can you post the connections part of your web.config?
    Just comment out the username and password information..
     
  4. This is the entire of my web.config...


    </o:p>
    <!-- </o:p>
    Note: As an alternative to hand editing this file you can use the </o:p>
    web admin tool to configure settings for your application. Use</o:p>
    the Website->Asp.Net Configuration option in Visual Studio.</o:p>
    A full list of settings and comments can be found in </o:p>
    machine.config.comments usually located in </o:p>
    \Windows\Microsoft.Net\Framework\v2.x\Config </o:p>
    --></o:p>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"></o:p>
    <appSettings/></o:p>
    <connectionStrings/></o:p>
    </o:p>
    <system.web></o:p>
    <!-- </o:p>
    Set compilation debug="true" to insert debugging </o:p>
    symbols into the compiled page. Because this </o:p>
    affects performance, set this value to true only </o:p>
    during development.</o:p>
    --></o:p>
    <compilation debug="true"/></o:p>
    <!--</o:p>
    The <authentication> section enables configuration </o:p>
    of the security authentication mode used by </o:p>
    ASP.NET to identify an incoming user. </o:p>
    --></o:p>
    <authentication mode="Forms"></o:p>
    <forms loginUrl="MANAGEMENT_SYSTEM/default.aspx" /></o:p>
    </authentication></o:p>
    <!--</o:p>
    The <customErrors> section enables cPOOonfiguration </o:p>
    of what to do if/when an unhandled error occurs </o:p>
    during the execution of a request. Specifically, </o:p>
    it enables developers to configure html error pages </o:p>
    to be displayed in place of a error stack trace.</o:p>
    </o:p>
    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"></o:p>
    <error statusCode="403" redirect="NoAccess.htm" /></o:p>
    <error statusCode="404" redirect="FileNotFound.htm" /></o:p>
    </customErrors></o:p>
    --></o:p>
    </system.web></o:p>
    <location path="MANAGEMENT_SYSTEM/manager.aspx"></o:p>
    <system.web></o:p>
    <authorization></o:p>
    <deny users="?"/></o:p>
    </authorization></o:p>
    </system.web></o:p>
    </location></o:p>
    </configuration></o:p>
     
  5. Bruce

    Bruce DiscountASP.NET Staff

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