PDA

View Full Version : I getting these errors with my site.


swingsetone
08-29-2006, 04:59 AM
I getting these errors with my site.


It doesn't recognize my default page (default.aspx)
All other pages work

I am also getting "page loaded with errors"

Line:27
char:1
Error: syntax
code: 0
url: http://swingsetgro.web136.discountasp.net/error500.aspx?aspxerrorpath=/default.aspx
http://community.discountasp.net/emoticons/cry.gif

bruce
08-29-2006, 05:25 AM
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 (http://www.DiscountASP.NET)

swingsetone
08-29-2006, 05:48 AM
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:





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 IfSource File: E:\web\swingsetgro\htdocs\global.asax Line: 6

Post Edited (swingsetone) : 8/29/2006 6:57:55 PM GMT

joelnet
08-29-2006, 08:21 AM
sounds like you have a bad connection string to your sql server.


Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET

swingsetone
08-29-2006, 08:44 AM
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

bruce
08-29-2006, 10:32 AM
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 (http://www.DiscountASP.NET)

swingsetone
08-30-2006, 11:57 AM
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:\Prog ram Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\SSGroupDB.mdf&amp;quot;;Inte grated 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>

vvsharma
08-31-2006, 12:47 AM
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:\Prog ram Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\SSGroupDB.mdf&amp;quot;;Inte grated 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 (http://www.discountasp.net/)

Chris cee
08-31-2006, 02:09 AM
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?

bruce
08-31-2006, 06:18 AM
are you using the Club starter kit


see


http://community.discountasp.net/default.aspx?f=25&amp;m=8785


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

bruce
08-31-2006, 11:08 AM
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 (http://www.DiscountASP.NET)

swingsetone
08-31-2006, 11:46 AM
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