PLEASE SOMEONE HELP

Discussion in 'Databases' started by joelnet, Aug 30, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Exception Details: System.InvalidOperationException: The connection name 'SQL2005_280966_ssgroup' was not found in the applications configuration or the connection string is empty.



    rename SQL2005_280966_ssgroupConnectionString to SQL2005_280966_ssgroup.


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  2. Exception Details: System.InvalidOperationException: The connection name 'SQL2005_280966_ssgroup' was not found in the applications configuration or the connection string is empty.

    Source Error:






    Code:
    Line 106:            <!-- Start of news list functionality -->
    Line 107:            <div class="rightblock" style="left: 0px; top: 0px">
    Line 108:                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ProviderName="System.Data.SqlClient"
    Line 109:                    ConnectionString="<%$ ConnectionStrings:SQL2005_280966_ssgroup %>" SelectCommand="SELECT top 5 [id], [itemdate], [title], [description], [photo] FROM [Announcements] order by itemdate desc">
    Line 110:                </asp:SqlDataSource>
    Source File: E:\web\swingsetgro\htdocs\default.aspx Line: 108

    Here's my web config file:




    ?xml version="1.0"?>


    <configuration>


    <location path="events_edit.aspx">


    <system.web>


    <authorization>


    <allow roles="Administrators"/>


    <deny users="*"/>


    </authorization>


    </system.web>


    </location>


    <location path="locations_edit.aspx">


    <system.web>


    <authorization>


    <allow roles="Administrators"/>


    <deny users="*"/>


    </authorization>


    </system.web>


    </location>


    <location path="news_edit.aspx">


    <system.web>


    <authorization>


    <allow roles="Administrators"/>


    <deny users="*"/>


    </authorization>


    </system.web>


    </location>


    <location path="photoalbum_new.aspx">


    <system.web>


    <authorization>


    <allow roles="Administrators"/>


    <deny users="*"/>


    </authorization>


    </system.web>


    </location>


    <location path="member_list.aspx">


    <system.web>


    <authorization>


    <deny users="?"/>


    </authorization>


    </system.web>


    </location>


    <location path="member_details.aspx">


    <system.web>


    <authorization>


    <deny users="?"/>


    </authorization>


    </system.web>


    </location>


    <connectionStrings>


    <remove name="SSGroupDBConnectionString" />


    <add name="SSGroupDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=&amp;quot;C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\SSGroupDB.mdf&amp;quot;;Integrated Security=True;Connect Timeout=30;User Instance=True"


    providerName="System.Data.SqlClient" />


    <add name="SQL2005_280966_ssgroupConnectionString" connectionString="Data Source=tcp:sql2k504.discountasp.net;Initial Catalog=SQL2005_280966_ssgroup;User ID=SQL2005_280966_ssgroup_user;Password=rook67"


    providerName="System.Data.SqlClient" />


    </connectionStrings>


    <system.web>


    <roleManager enabled="true"/>


    <authentication mode="Forms"/>


    <compilation debug="true">


    <assemblies>


    <add assembly="System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Messaging, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    </assemblies>


    </compilation>


    <membership defaultProvider="AspNetSqlMembershipProvider"/>


    <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">


    <providers>


    <remove name="AspNetXmlSiteMapProvider"/>


    <add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>


    </providers>


    </siteMap>


    <customErrors mode="Off" defaultRedirect="ErrorPage.htm"/>


    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>


    </system.web>


    </configuration>
     
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