Sign in
|
Join
Search
Scott Forsyth's Blog
Postings on IIS, ASP.NET, SQL Server, Webfarms and general system admin.
Home
Contact
About
RSS
Atom
Comments RSS
Recent Posts
Why is the IIS default app pool recycle set to 1740 minutes?
Using WebDAV with ARR
Handing MVC paths with dots in the path
Windows 8 / IIS 8 Concurrent Requests Limit
URL Rewrite – Protocol (http/https) in the Action
Tags
ARR
ASP.NET
DNS
Email
FTP
Graffiti
Hyper-V
IIS
IIS7
IIS8
MVC
Performance Tuning
PowerShell
Remote Desktop
SQL Server
Troubleshooting
URL Rewrite
Vista
Visual Studio
Web Pro Series
Webfarm
Windows 64-bit
Windows 7
Windows Server
Windows Server 2012
Windows Server 8
Windows Vista
Windows XP
Navigation
Home
Blogs
.
Hosting Needs
Windows Cloud Server Hosting
Managed Windows Shared Hosting
Training and Dev Labs
Vaasnet
Archives
April 2013 (1)
January 2013 (2)
November 2012 (2)
July 2012 (1)
May 2012 (2)
April 2012 (1)
March 2012 (2)
February 2012 (3)
January 2012 (3)
December 2011 (4)
November 2011 (3)
October 2011 (3)
September 2011 (3)
August 2011 (4)
July 2011 (5)
June 2011 (4)
May 2011 (5)
April 2011 (5)
March 2011 (5)
February 2011 (6)
January 2011 (5)
December 2010 (2)
November 2010 (1)
October 2010 (1)
August 2010 (1)
July 2010 (2)
June 2010 (1)
May 2010 (1)
April 2010 (2)
March 2010 (3)
January 2010 (1)
November 2009 (3)
October 2009 (2)
September 2009 (2)
August 2009 (1)
June 2009 (3)
April 2009 (2)
February 2009 (1)
January 2009 (3)
August 2008 (3)
July 2008 (1)
June 2008 (1)
May 2008 (1)
April 2008 (2)
March 2008 (1)
February 2008 (1)
September 2007 (1)
July 2007 (1)
March 2007 (1)
February 2007 (1)
January 2007 (1)
December 2006 (2)
November 2006 (2)
August 2006 (1)
July 2006 (1)
June 2006 (4)
May 2006 (1)
April 2006 (1)
February 2006 (1)
January 2006 (2)
December 2005 (1)
September 2005 (1)
August 2005 (3)
July 2005 (2)
May 2005 (2)
March 2005 (1)
November 2004 (1)
October 2004 (1)
September 2004 (3)
July 2004 (1)
June 2004 (1)
March 2004 (1)
February 2004 (1)
January 2004 (5)
December 2003 (2)
September 2005 - Posts
Schema Changes in the latest ASP.NET V2.0 bits
I just installed the latest version of Visual Studio 2005 and the .NET Framework. I went from version v2.0.50215 (common February version) to v2.0.50727 (August version). The install went smooth and everything was good for the most part.
One issue I ran into though is that the Membership provider didn't work. I received an error "Procedure or function aspnet_Membership_GetPasswordWithFormat has too many arguments specified.". Fortunately the error is descriptive enough to be quite obvious. The database schema has changed slightly between the two builds. I am using a SQL 2000 database that was prepared using the v2.0.50215 aspnet_regsql.exe tool so the latest version of the framework doesn't match with the schema on the database.
The difficult way
To let you learn from my mistakes, I'll explain what I tried at first. To upgrade I created a backup of the database, ran the v2.0.50727 aspnet_regsql.exe tool to remove the schema with the goal to ran it again to create the schema back again. The first issue was the v2.0.50727 aspnet_regsql.exe tool ran into errors removing the schema which was created using v2.0.50215. After some manual adjustments I was able to complete it. Then I ran aspnet_regsql.exe again to create the schema on the new database. I then copied over just the relevant data from the backup database to the new live database. This worked fine but it was a lengthy process.
The better way
I'm kicking myself for not thinking of it before but as an experiment I created a test database using the old v2.0.215 schema and ran the aspnet_regsql.exe tool, but this time I just selected the option to "Configure SQL Server for application services". Sure enough it upgraded everything and didn't mess with my data. The ASP.NET team made upgrading between minor versions almost too easy.
Conclusion
When upgrading to a newer version of the ASP.NET framework, simply run the aspnet_regsql.exe tool and select "Configure SQL Server for application services." It serves as an upgrade option.
I'm not promising that this will work between all minor upgrades, but it did work between this one. Warning: Make sure to create a backup of your database before any of these changes, even if it has worked properly in the past. Any large change of any sort should be preceded by a fresh backup of the database.
Posted:
Sep 13 2005, 09:44 AM
by
OWScott
| with
7 comment(s)
More Posts