Web Application Root

Discussion in 'ASP.NET 2.0' started by sahina, Nov 19, 2005.

  1. Hi everyone,

    I created a web application from the Web Application Tool: something like this:
    www.mydomain.com/MyApps/Application1/

    So my web application is Application1...

    I uploaded my files like this into that folder;
    /App_Code/
    /App_Data/
    --MyDatabase.mdf
    --MyDatabase.ldf
    /App_Themes/
    Default.aspx
    Default.aspx.cs
    Web.config

    Now then... My connection string in the Web.config is:
    ..
    <connectionStrings>
    <add name='DSN' connectionString='Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DigitalIstanbul.mdf' providerName='System.Data.SqlClient' />
    </connectionStrings>
    ..

    I have this in my Default.asox
    <asp:Image ID='imgFeaturedPhoto' runat='server' ImageUrl='~/Handler.ashx' />

    The 'Handler.aspx' just serves up an image from the database...

    So when I request the Default.aspx, I get this error message:

    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)

    Now what is the problem here?.. Any ideas?

    Thans
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    you are trying to use SQL Express. this is not supported.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page