Article ID: 2006191 - Last Review: November 17, 2009 - Revision: 6.0 Updated ASP.net scripts for use with Microsoft SQL Azure
SymptomsThis article provides information about two specific limitations when using ASP.net in conjunction with a Microsoft SQL Azure database.
Issue 1 - Problems with the aspnet_regsql tool: The aspnet_regsql.exe tool will fail to run against a SQL Azure database. When trying to create a database with the aspnet_regsql.exe tool, the user will encounter one of the following errors:
-- or –
Issue 2 - Asp.Net Session State Management:
A user’s session will not expire if the ASP.net web application uses a SQL Azure database for session state management.
CauseCause 1 - Microsoft SQL Azure is a cloud-based relational database platform built on SQL Server technologies. The aspnet_regql.exe tool works with the .sql scripts which are located in the .Net framework directory, however SQL Azure databases do not support some of the SQL statements used in these raw .sql scripts.
Cause 2 -Asp.Net session expiration functionality is implemented through stored procedures that are scheduled through jobs in SQL Server. SQL Agent manages these jobs. However, SQL Azure databases do not support SQL Agent.
ResolutionTo configure SQL Azure databases for Asp.Net membership, role manager, profiles, personalization, and SQL Web event provide features, please do the following:
Note: You may receive the following message while executing the scripts: "Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information schema, sys, or yourself." This message can be ignored.
More InformationThe workarounds provided here do not work for ASP.Net SQL Session State Management features. Microsoft does not support SQL Session State Management using SQL Azure databases for ASP.net applications. There is a modified aspnet_regAzure.exe tool that is available for use. You can download this tool from here. This tool only supports configuring a SQL Azure database for certain Asp.net features. This tool does not support all the functionalities of aspnet_regsql.exe, and it is not supported by Microsoft. You can find more documentation on Guidelines and Limitations for SQL Azure databases here. Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations. | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
