Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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
 
Old August 8th, 2011, 10:26 AM
Authorized User
 
Join Date: Jun 2011
Posts: 32
Thanks: 22
Thanked 0 Times in 0 Posts
Default Check Schema Version

Hi:

In an attempt to create both a web host version (working but problems that I have commented out for now) and a Local Host version that I can step through looking at errors (which is not working) I get "Could not find stored procedure dbo.aspnet_CheckSchemaVersion" as an issue stopping me before I can get to the "stepping through" to trouble shoot what I have commented out in the web host version.

Google searches point me to aspnet_regsql.exe which I have run several times as per the book, to no avail?

In creating my Local Host version I merely copied my database from the web host version thinking it would be the same idea. Changed my web.config and connectionstrings and that seems Ok now. Seems that a Schema issue points to the database.

I am willing to delete database from Local Host version and recreate, but before I do I was wondering if this seems to be moving in the right direction to solve the CheckSchema issue. I just don't want to work on something that is not the issue.

does my plan seems reasonalble.

thanks,
Cliff
 
Old August 8th, 2011, 01:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi thanks,

How did you copy the database to the remote server? Did you copy the structure as well as the data that the tables contain?

The error message seems to suggest the structure isn't there yet. Can you confirm the tables, view, procedures and data exist?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 8th, 2011, 02:28 PM
Authorized User
 
Join Date: Jun 2011
Posts: 32
Thanks: 22
Thanked 0 Times in 0 Posts
Default Check Schema Version

Everything on the remote server as far as logging in, is working just fine. It's just that via Browser on the remote server I cannot step through the code, thus an added feature I want to employ has merely been commented out at this point.

What I have tried to do is create and exact duplicate of the remote server version on my system for a "local host" version. I have changed connectionstrings etc. As far as the database goes I merely "copied" it to my local host folder and all of this was done to have a version I could run within VWD to step through checking variable values.

Now when I log in via my local host version (or try and create a new user account) I get the "Could not find stored procedure dbo.asnet_CheckSchemaVersion". Since I have no stored procedures, I am trying to determine the "actual" problem.

One of the things I do after logging in in is to check the Profile.Username value and if it is not in a table of mine, I try and add it to the database table.

In the web server version this works just fine with the exact code. Thus, since I am accessing my database, my sense is that the database has a problem, but not so sure what it is. Like I said I have re-run aspnet_regsql.exe (on the local version)but this doesn't seem to help.

Tables are there I have even tried to "clear" them along with the Membership and Users tables in the ASPNETDB in an effort to "start anew" as it really doesn't matter at this point what data is in my local host database as what I am after is to be able to set some breakpoints and check out variable values.

Thanks
 
Old August 8th, 2011, 03:45 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Since I have no stored procedures, I am trying to determine the "actual" problem.
That *is* the actual problem. The Membership and other providers make use of stored procedures which are created either the first time you use one of the membership features (when running locally against the Sql Express edition) or when you run the aspnet_regsql tool.

The error message seems to suggest the stored procedures are missing.

How that can happen is difficult for me to say without more information such as the actual connection strings and the way you set things up (e.g. how you're accessing the remote server from your local development machine and so on). Can you elaborate on that?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamically check version of exe file in FTP - VB.Net remya1000 .NET Framework 1.x 2 March 1st, 2011 12:34 PM
How Do I check JRE version from my Web Page ubk_1004 Javascript How-To 0 August 21st, 2006 04:47 AM
check presence of <?xml version="1.0"> sonhir XSLT 2 June 8th, 2006 04:54 PM
How to bypass Schema Check manishnautiyal Biztalk 0 March 31st, 2005 03:11 AM
Schema and Data in the same file, check possible? lpinho XML 0 December 4th, 2003 07:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.