CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/22/2007 6:53:50 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 21 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
22 Items, 2 Pages 1 2 |< << Go >> >|
Spider Master
Asp.Net User
Really Confused - Setting up in a hosted enviroment!!10/22/2007 6:53:50 AM

0/0

 

So far i have the site set up and my self set as the administrator.

I have then set up the web config with the the sql connection string provided from my hosting provider.

Saved all documents

Then uploaded my site to the ftp server.

I get the error -

An error occurred. Please contact the site administrator.
 
Do i have to upload anything to the SQL server its self or is there another step i have missed out??
My app_data folder is on my ftp server and perhaps it shouldnt be as my hosting provider tells my it needs to be on the server its self - I dont know how to do this!!
 
Any help is much appreciated, thanks in advance. 
 

Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
ashmetry
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 2:04:09 PM

0/0

You probably got a runtime error somewhere. You'll need to disable customErrors from webconfig to be able to see what the problem is. After you identify the problem you can turn it back on again.

<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>

Change that to:

<customErrors defaultRedirect="Error.aspx" mode="Off"/>

 


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 2:35:16 PM

0/0

ashmetry:

You probably got a runtime error somewhere. You'll need to disable customErrors from webconfig to be able to see what the problem is. After you identify the problem you can turn it back on again.

<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>

Change that to:

<customErrors defaultRedirect="Error.aspx" mode="Off"/>

 

Yes i have done this. still have the same screen coming up!!! the only other page i can view if i upload it again is the original welcome.html page by typing in the complete url.

please help lol its driving me insane.


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
ashmetry
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 3:12:27 PM

0/0

I would remove that tag completly for test. Also check your Global.asax to make sure you are not doing anything special in Application_Error. Also try to check the settings on your hosting account to see if you've setup a custom errors page there.

The html page is working because simply its not an asp.net page :)


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 3:44:14 PM

0/0

Sometimes the initial loading can be a pain.

But who are you hosting with?

Did you set the asp.net runtime to version 2.0?

Unless you setup with the rare provider that will allow your databases to be uploaded through the App_Data folder,

you are going to have to set the two databases up from scratch.

Another option is the tag that Ash was refering to, the Off is case sensitive, and I always remove the redirect part aswell.

Like this:

<customErrors mode="Off"/>

Let us know what's happening and we can help you fix it.

Daniel Meis


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 3:59:17 PM

0/0

Awesome i have just change alot of things and have deleted all hosted data and have uploaded from scratch to help prevent previous errors from repeating.

According to my service provider i have ASP .NET 2.0 runtime on my 2005 edition SQL Server

The custom errors string is set to Off with the capital O

And i have installed the sql server script to the web.config file as the provider has instructed and removed the privious script with the notation lock <!--   -->

I have not uploaded anything to the sql server.

Your help and ash's help is very much appreciated.

Thanks

I will return in about ten minutes to let you know how the upload went


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 4:07:35 PM

0/0

 Ok some progress :-) i hope lol

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized element.

Source Error:

Line 68:         -->
Line 69:         <add name="classifiedsConnection" connectionString="Data Source=p3swhsql-v09.shr.phx3.secureserver.net; Initial Catalog=xxxxxxxxxx; User ID=xxxxxxxxxxx; Password='xxxxxxxxx'" />
Line 70:     </connectionStrings>
Line 71:     - <system.net>
Line 72:         - <mailSettings>

 


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
ashmetry
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 4:22:13 PM

0/0

Not sure, but can there be single quotes around the password? Try without these maybe


-Ash
Web:   www.love2trade.com
Blog:   blog.love2trade.com

Please remember to click "Mark as Answer" on this post if it helped you.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 4:47:41 PM

0/0

 

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

 

Above is the new message!!!!

The only problem with custom errors mode error is that it is how it is in my web.config file


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 5:08:12 PM

0/0

Try adding this to your web.config

<compilation debug="true" />

It needs to be inside one the system.web tags.

And you still have the custom errors mode set to Off in your online version, Right?

If there's still no luck, post your connection strings, xxxxx out userids and passwords.

 


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 5:30:01 PM

0/0

Here is my web config file - hope this helps..

Notice the connection string that my service provider gave me.. its not right is it???

 

 

<?
xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<location path="Admin">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

<location path="PostAd.aspx">

<system.web>

<authorization>

<deny users="?"/>

</authorization>

</system.web>

</location>

<location path="EditPhotos.aspx">

<system.web>

<authorization>

<deny users="?"/>

</authorization>

</system.web>

</location>

<location path="MyAds.aspx">

<system.web>

<authorization>

<deny users="?"/>

</authorization>

</system.web>

</location>

<location path="MyProfile.aspx">

<system.web>

<authorization>

<deny users="?"/>

</authorization>

</system.web>

</location>

<system.web>

<compilation debug="true" />

<customErrors defaultRedirect="Error.aspx" mode="Off"/>

<pages styleSheetTheme="Red"/>

<authentication mode="Forms"/>

<membership>

<providers>

<clear/>

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>

</providers>

</membership>

<profile enabled="true">

<properties>

<add name="FirstName" type="System.String"/>

<add name="LastName" type="System.String"/>

<add name="MemberId" defaultValue="0" type="System.Int32"/>

<group name="Core"/>

</properties>

</profile>

<roleManager enabled="true"/>

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

<providers>

<clear/>

<add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>

</providers>

</siteMap>

</system.web>

<connectionStrings>

<!-- Local Connection String Removed for publishing in a hosted enviroment!!

<add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

-->

<add name="classifiedsConnection" connectionString="Data Source=p3swhsql-v09.shr.phx3.secureserver.net; Initial Catalog=xxxxxxxx; User ID=xxxxxx; Password='xxxxxxxx'/>

</connectionStrings>

<system.net>

<mailSettings>

<smtp>

<network host="xxxxxxxxxxxxxx" port="25" defaultCredentials="true" userName="xxxxxxx" password="xxxxxxx"/>

</smtp>

</mailSettings>

</system.net>

</configuration>

-->
Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 5:55:57 PM

0/0

Who's your host, GoDaddy?????

And how come you only have one connection string, or did you combine both databases into one?


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 6:20:12 PM

0/0

No the data base's are set up just as they came in the kit Confused

im guessing that is one of my problems

And my service provider is www.domainsrightnow.com

Im hoping thats not a problem Embarrassed


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/22/2007 6:34:11 PM

0/0

So my host is GoDaddy, so the format might be a little different, but here's mine.

<connectionStrings>
    <add name="classifiedsConnection" connectionString="xxxxxxxxxxxxxxxxxxxxxx;
      Initial Catalog=xxxxxxxxxxx;
      User ID=xxxxxxxxx;
      Password='xxxxxxxxx';" />

    <remove name="LocalSqlServer"/>

    <add name="LocalSqlServer" connectionString="xxxxxxxxxxxxxxxxxxxxxxxxxx;
      Initial Catalog=xxxxxxxxxxxxxxx;
      User ID=xxxxxxxxxx;
      Password='xxxxxxx';" />

  </connectionStrings>

Try a layout like that, and make sure you leave in the LocalSqlServer

That name is referenced elsewhere as well.

Good Luck

 


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 3:34:03 AM

0/0

Yes i have done that now and is both the connection strings the same??

I did some investigation and go daddy and domainsrightnow are identical apart from domainsrightnow are cheaper lol.

The following is the new error:

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)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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)

Im getting a head ack Tongue Tied


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 3:42:40 AM

0/0

No, they are not the same.

The first one points to your classifieds_Ads database, and the second points to your members database.


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 3:56:38 AM

0/0

Ok so that brings me back to my original question!!!!

Do i have to upload anything to the hosted SQL server?

And how do i achive connecting the 2 data bases sitting on the ftp server to the sql server? (isnt this done with the strings below?)

And have i correctly formatted the strings as below??

<connectionStrings>

<add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data Source=p3swhsql-v09.shr.phx3.secureserver.net; Initial Catalog=xxxxxxx; User ID=xxxxxxxx; Password='xxxxxxxxx';"/>

</connectionStrings>


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
darkknight187
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 4:19:22 AM

0/0

Now I am not hosting with the same provider, so I could be wrong, but it looks like your second connection is correct.

Your first needs to be written like the second.

I looked at domainsrightnow and it looks like it is a lot like GoDaddy, I am assuming that you set up with the deluxe plan, so you would get 2 MsSql databases.

And when I did it, I created two databases, on godaddy it created all the standard aspmember tables automatically.

So the members database needed no manipulation, and the Ads Database I had to delete the auto created tables, views, and stored procedures.

Then it had a tool called query analizer, basically it runs Sql scripts.

I used a database program to convert my altered database to Sql and ran the scripts.

If you made no modifications to your database then you can use the included .sql files in your App_Data folder.

I can go into more detail if you need it.

But I think the main problem you are having is that your connection string is telling the application to run the Ads database locally.

So start with writing your connection strings in the same format as the second, but pointing to the two databases,

Ads first then the members one second.

 


Be sure to visit www.detelli.com

And please remember to click ?Mark as Answer? on the post that helps you.
This can be beneficial to other community members reading the thread.
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 4:37:35 AM

0/0

Yes i realised the string was wrong just after my last post and corrected it. so now im hoping the web config file is correct.

Now to the data base. so i do have to upload information. thats cool i will have a go at it. I also have a go daddy account and yes the interface and everything else is very much the same but i prefer to use domainsrightnow due to there ongoing deals that undercut go daddy.

And no i have only one mssql server but can set up a second one if neccessary!! do i need to modify or just insert scripts to query??

So the scripts i need to query in the analizer are they the 3 files in app_data folder ending with .sql??? no i have not changed anything yet.. and do i do this on the second MS SQL server??

And i Set the string in the web config file so it points to the second sql server as the classifiedsConnection yes???

 

Below is the current error that im assuming will be gone once i have done the above

 

Could not find stored procedure 'GetAdsByRandomOrder'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'GetAdsByRandomOrder'.

 


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
Spider Master
Asp.Net User
Re: Really Confused - Setting up in a hosted enviroment!!10/23/2007 5:54:26 AM

0/0

Ok so i have set up the second MSSQL data base and configured the strings to suite.

Problem....... the website cannot be found through htp://

Whats gone wrong Indifferent


Thanks

Domain Names and Hosting at its Best
Feel free to let others know about Domainz Right Now
22 Items, 2 Pages 1 2 |< << Go >> >|


Free Download:

Books:
A History of Nature Conservation in Britain Authors: David Evans, Pages: 288, Published: 1997
The Internet: A Historical Encyclopedia Authors: Moschovitis Group, Hilary W. Poole, Laura Lambert, Chris Woodford, Christos J. P. Moschovitis, Pages: 692, Published: 2005
Friction: An Ethnography of Global Connection Authors: Anna Lowenhaupt Tsing, Pages: 321, Published: 2004
Bowker's Complete Video Directory 1993 Authors: R. R. Bowker LLC, R.R. Bowker Company, Frank Accurso, Database Publishing Group, Pages: 1450, Published: 1994
Virtually Islamic: Computer-mediated Communication and Cyber Islamic Environments Authors: Gary Bunt, Pages: 189, Published: 2002

Web:
Really Confused - Setting up in a hosted enviroment!! - ASP.NET Forums Really Confused - Setting up in a hosted enviroment!! Rate It (1). Last post 10- 23-2007 11:52 AM by Spider Master. 21 replies. Sort Posts: ...
Online Dating Guide & Blog » Setting up Ruby on Rails with GoDaddy Jan 26, 2008 ... I was also really confused by GoDaddy’s documentation. .... http://www. littleredrails.com/blog/2008/01/26/setting-up-ruby-on-rails-with- ...
NetStorm Services - Web program hosting Setting up the integration would be the same, hosting or local. .... A professional web hosting environment would easily "win" in terms of quality, ...
cPanel Email Features | UK Web Hosting | Linux Windows Server ... Mar 1, 2008 ... When setting up an email account in cPanel, you are given the ability to .... lists within your shared cPanel website hosting environment. ...
Setting up DSN with MySQL driver on mac Hi all I'm just trying to get a local testing environment set up so ..... are sometimes better if you are moving to a hosted environment. ...
The Naked SEO Guide from Netpaths » Blog Archive » Setting Up ... Setting Up Domain Name Masking in Cpanel. Domain name masking is a really cool feature of the DNS system. It allows you to use a vanity domain name on an ...
Setting up virtual host with mod rewrite enabled in Ubuntu Hardy ... May 29, 2008 ... Virtual host is really what the name says, a virtual environment over the top of your .... Setting Up A Name Based Virtual Host (vHost) ...
How to set up a free iSCSI or NAS storage system for VMware ESX ... Aug 23, 2008 ... Setting up a development environment up with VMware ESX, Virtual Center ... Lee | 21Oct08 | More; Lee Wynne, I really like your articles and ...
TheMSsForum.com >> Entourage >> Setting up Entourage - The ... Has anyone else experienced this? Tag: Setting up Entourage Tag: 106539 ..... What can i do to fix this, my exchange account is on a hosted environment. ...
Setting Up a JSP Environment - Dev Shed Setting Up a JSP Environment- Java Help. Visit Dev Shed to discuss Setting ... I am confused esp when a older article found on this site "Slapping together ...

Videos:
Best of BET Awards, Craziest Interview EVER As we flash back again to BET 2005, the last year that the BET Awards were held at the Kodak Theater, we were reminded of this crazy interview where ...
Keeping Kids Healthy: How to Cope with ADHD How do you tell the difference between an ordinary rambunctious kid and one who has ADHD? And what do you do about it? If your child seems very hype...
Charlie Rose - Ratan Tata / Kiran Mazumdar Shaw / Anil Agarwal Segment 1: Ratan Tata, Chairman, Tata Group Segment 2: Kiran Mazumdar Shaw, Chairman and Managing Director, Biocon Segment 3: Anil Agarwal, Chairma...
The secret of a great marraige English Hidabroot Rabbi Zamir Cohen goes through the secrets of a great marraige. He shows how to open the lines of communication between the spouses. With Eglish Subt...
Charlie Rose - Al Gore An hour with former Vice President Al Gore. He discusses his new film, "An Inconvenient Truth" and the science and politics surrounding global warmi...




Search This Site:










change text 1

exact loction / code to remove price feature.

flagging of inappropriate ads by users?

how to do this 10 things and on which pages. lets start and grow

weird behavior in of mouse over the header. firefox

i'm almost there...one little issue can someone help

can anyone explain why i get this error?

slideshow - cycle through pictures

fckeditor integration

cannot send e-mail from my live website

the password provided is invalid. please enter a valid password . acceptable passwords are at least 7 characters long and contain at least 1 non-alphanumeric character.

sharing of the manage user function in admin panel.

looking for cheap and good programmers to help me customize csk

classifieds hosting problem

system.argumentexception: invalid value for key 'attachdbfilename'

how to deploy on sql server 2005

dbo.aspnet_checkschemaversion

how do you create a admin account

classifieds starter kit implementation

super slow on dual xeon box

repeater control for categories

very strange, bothersome bug!! wrong domain name displayed in "send ad as email text box

problem running on a web server classifieds

meta decsription and meta keywords

what is the administrator password?

integrating c# proj into into vb version of classifieds

code snippet i used in love2trade.com to send an email to me on any exception

error uploading sql file to database

classifieds sql script from sql server 2000

change price into a telephone number ???

  Privacy | Contact Us
All Times Are GMT