 |
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0  | This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

March 6th, 2009, 01:04 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Trouble Deploying
Hi, I'm using Appliedi.net as my hosting site. I've deployed everything over to their servers including db. I am able to remotely connect to their sql server and access the db on my local however when i run the site, I'm receiving the generalservererror.aspx page.
below is my connectionstring details. Is their a problem here? Like I said everything works fine on my local. What did I miss?
Code:
<connectionStrings>
<removename="LocalSqlServer"/>
<addname="LocalSqlServer" providerName="System.Data.SqlClient" connectionString="Data Source=sql2k5f.appliedi.net;Initial Catalog=aspnetdb;User ID=userid;Password=userpassword" />
</connectionStrings>
Last edited by jluc311; March 6th, 2009 at 01:11 AM..
|
|

March 6th, 2009, 02:13 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
Perhaps you should set customErrors mode="Off" temporarily so you can see what the real error is...
|
|

March 6th, 2009, 11:24 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Lee, I did as you said, and received the following error:
The 'System.Web.Profile.SqlProfileProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.
What do you suggest as I'm very new to this?Thanks!
|
|

March 6th, 2009, 06:06 PM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
Something happened to the dB such that it is not finding the proper tables/columns/whatever to provide Profiling services.
Are you sure you deployed it correctly, with the proper schemas and everything?
|
|

March 21st, 2009, 04:00 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
aspnet_regsql.exe
aspnet_regsql.exe, find this exe in the .NET installation on your LOCAL machine. you can ask it to set up the Database schema on the production server machine.
for the longest time i tried to get the exe onto the production server instead of just running it on my local machine (ie, the one that has Visual Studio installed).
mitch
(old timer having a hard time coming up to speed on this consarned new fangled internet dealie.)
|
|

March 21st, 2009, 01:09 PM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 105
Thanks: 3
Thanked 20 Times in 19 Posts
|
|
you might want to check the online database to see if the aspnet_* tables are included in it. That is what the reference to aspnet_regsql.exe is about, it installs the aspnet_* tables and procedures.
If you have a working development version of your database on your local machine you can use the server explorer in Visual Studio, right click on the database and publish it to generate a sql script that will, depending on the setting you choose in the publish wizard, export schema and data. Running the script on your hosted database will give you a copy of your local db for your published site.
|
|

March 30th, 2009, 01:04 PM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Bringing up the DB question:
I'm using Visual Studio 2008 where my website works as I expect it.
When I try publishing to the web, she no work too good.
I would like to keep my development DB 'in sync' with the published DB.
is there an 'automatic' procedure for doing this?
for example, on the development machine, i can create the groups and roles I'd like to have, but I am unsure as to how to do in out in the real world. If I can just copy my local DB out, that would be the easiest.
but this, then, brings up the question of syncing real world with local if the world has been adding to the world DB while I am using the local copy of the DB.
|
|

March 30th, 2009, 01:45 PM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i downloaded and used the database publishing wizard to avoid this problem....
m22, I would add a connection (remote) in VS 2008 to the database on the web server. In your webconfig, just use the remote connection as your default connection
|
|

March 30th, 2009, 02:19 PM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 105
Thanks: 3
Thanked 20 Times in 19 Posts
|
|
There are several way you can do this, none of them are hands off automatic. But first there are several question I think you should be asking yourself Why do you want to keep two databases in sync? What frequency of synchronization do you need/want? And, if you are adding roles this delves into security and doesn't this mean that coding changes are needed to make the site recognizing new roles?
If you just want to 'play' with data from the live site you can make a backup, download it and install it local on a periodic basis (snapshot); or you could change your development connection string to use the live site's database. If you need to add a few records to the live database, such as roles, you can write a simple sql script to run on the live server to add the records/roles (test it local first to make sure it does what you want). You could set up SSIS packages to move data between databases, this means learning SSIS and creating the packages and running them manually or scheduling them. Finally you could set up merge replication, if your host allows this, but then you'd have to learn all about setting up merge replication.
As with most things with computers and software there are many ways to solve the problem, the first priority is defining the problem to be solved.
Good luck
Steve
Last edited by Steve S; March 30th, 2009 at 02:22 PM..
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Deploying the Site |
SoloEng |
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 |
8 |
September 9th, 2007 09:39 PM |
| On deploying why do i get this particular error? |
abhishek1983 |
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 |
0 |
May 16th, 2006 01:17 AM |
| Deploying Application |
abdul_owiusa |
General .NET |
0 |
October 10th, 2005 03:54 PM |
| Deploying the site |
MoeShall |
BOOK: ASP.NET Website Programming Problem-Design-Solution |
3 |
April 20th, 2005 07:06 AM |
| Deploying C# |
nbnelson |
C# |
2 |
July 31st, 2003 01:30 PM |
|
 |