I getting these errors with my site.

Discussion in 'ASP.NET Starter Kits' started by swingsetone, Aug 29, 2006.

  1. Bruce

    Bruce DiscountASP.NET Staff

    It seems like your application has custom error enabled. WIth custom Error enabled, it is impossible to figure out what the actual error is.

    In general, CustomError is useful when the site is in production but I recommend you disable it during development and deployment phase.

    Try disable CustomError in your web.config file, you should then see the real error which most likely will help you fix the problem

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. I turned it off...what's next

    when i type my site in to the browser....it takes me to Webmail?

    when i use this host I get this:

    Exception Details: System.Data.SqlClient.SqlException: 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)



    Source Error:





    Code:
    Line 4:  
    Line 5:  	Sub Application_Start(ByVal sender As [Object], ByVal e As EventArgs)
    Line 6:  		If (Roles.RoleExists("Administrators") = False) Then
    Line 7:  			Roles.CreateRole("Administrators")
    Line 8:  		End If
    Source File: E:\web\swingsetgro\htdocs\global.asax Line: 6

    Post Edited (swingsetone) : 8/29/2006 6:57:55 PM GMT
     
  3. How do I fix this...i just joined this hosting site from register.com and tranfered my domain name also...This is ridiculious that I can't anyone to help me at Discount. I paid for a full year on this site...having a little trouble and know wants to assist here

    Please HELP

    Robert

    Post Edited (swingsetone) : 8/29/2006 10:23:26 PM GMT
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    the problem you are seeing is a coding related issue. I don't think you can expect coding support from any hosting company.


    Posting to this forum is the correct action.


    Anyway, please post your connection string

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Here's my webconfig file:











    <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>
     
  6. To be exact make the following changes
    Also,please do not post your connection string on the forums ,since it contains your password.

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



    with


    <remove name="SSGroupDBConnectionString" />


    <add name="SSGroupDBConnectionString" connectionString="Data Source=tcp:sql2k504.discountasp.net;Integrated Security=False;Initial Catalog=SQL2005_280966_ssgroup;User ID=SQL2005_280966_ssgroup_user;Password=rook67" 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" />




    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. Hi

    I'm new to this host too and seem to be getting a simular error, but can't see what I need to change.

    MY web config file has this entry




    <connectionStrings>


    <add name="ClubSiteDB" connectionString="Data Source=.\SQLExpress;Integrated Security=true;AttachDBFileName=|DataDirectory|Club.mdf;User Instance=True" providerName="System.Data.SqlClient"/>


    </connectionStrings>


    Any idea what I should change it to?
     
  8. Bruce

    Bruce DiscountASP.NET Staff

  9. Bruce

    Bruce DiscountASP.NET Staff

    Based on the connection strings, you have 2 connections

    SSGroupDBConnectionString and SQL2005_280966_ssgroupConnectionString

    The SSGroupDBConnectionStringstring is connecting to a SQL Express database. You should remove that.

    If your application is using this connection, you'll need to point it to the SQL 2k5 server.

    It seems like you are using ASP.NET membership provider, this KB may be able to help you, http://kb.discountasp.net/article.aspx?id=10413




    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  10. Thanx Bruce.....


    What instance should i use when using the KB you suggested? I can't connect using the MsSql server on my machine, i can create a database but I have to use SQL Express to connect with visual developer...just starting out here. Do I use (removename "localserver") without entering anything in the qoutes....orcan I edit my machine config to point to my database at Discount ASp. I just want to be able to connect to that since I'm paying for it.


    On more question...do u know why my images stop showing in the brower when testing...it was working then it suddenly stop...I am using Visual Web developer. So frustrating.


    Robert
     

Share This Page