- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Possible Duplicate:
Migrating ASP.NET Membership Database to SQL Azure
我最近向 Microsoft Azure 发布了一个 MVC3 应用程序,在一些帮助下我能够让我的 EF 数据库正常工作。但是,我遇到了一个问题,即我使用的默认角色和用户,而不是为管理员登录等创建自己的表。
我找到了要求您运行 Aspnet_regsql.exe 的答案,我确实这样做了,但收到以下错误:
Setup failed.
Exception:
An error occurred during the execution of the SQL file 'InstallCommon.sql'.
The SQL error number is 40508 and the SqlException message is: USE statement
is not supported to switch between databases. Use a new connection to connect
to a different Database.
我搜索了此错误,发现这不适用于 Windows Azure。这让我看到了这篇文章,它有助于解释原因并给出解决方案:http://thinkfirstcodelater.com/blog/?p=637
它告诉我下载以下文件并运行它们。 http://archive.msdn.microsoft.com/KB2006191/Release/ProjectReleases.aspx?ReleaseId=3539
问题是,当我运行该文件夹中的应用程序时,命令行出现然后消失。我看不到它说什么,只知道它失败了。我该如何解决这个问题?
原来的问题源于此:
Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.
当我尝试登录自己的网站时会显示该信息。
任何帮助将不胜感激。谢谢!
最佳答案
您需要适用于 SQL Azure 的版本,因为就像错误已经指出的那样,SQL Azure 不支持 USE 语句: KB2006191 - Updated ASP.NET scripts for use with SQL Azure
关于asp.net - Azure 和 Aspnet_regsql.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11194580/
CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界. 这篇CFSDN的博客文章aspnet_regsql.exe 工具注册数据库的图文方法由作者收集整
我对 Azure 还很陌生,正在尝试部署现有的 MVC 3 网站(我迟到了该项目)。 它具有成员资格信息(其中的表应从 aspnet_regsql 生成),并将这些表链接到应用程序特定的表。为了使其进
我正在尝试使用 aspnet___regsql 实用程序在本地 SQL Express 2008 实例的数据库中安装所有成员资格表。我可以在 Management Studio 中毫无问题地连接,但是
这个问题已经有答案了: 已关闭11 年前。 Possible Duplicate: Migrating ASP.NET Membership Database to SQL Azure 我最近向 Mi
如何从 SQL 脚本调用 aspnet_regsql.exe?谢谢 最佳答案 您可以看看xp_cmdshell : xp_cmdshell 'c:\Windows\Microsoft.NET\Fram
我正在通过 MSSQL 服务器在 ASP.NET 中使用 session 状态处理: sessionState mode="SQLServer" 在 web.config 中。在本地,我使用 aspn
我正在尝试准备我的数据库以与 SQLCacheDependency 一起使用,并使用 aspnet_regsql 实用程序来设置 aspnet 更改通知表和适当的触发器。 当我运行以下命令时: asp
这个问题已经有答案了: 已关闭11 年前。 Possible Duplicate: Migrating ASP.NET Membership Database to SQL Azure 我最近向 Mi
这个问题已经有答案了: 已关闭11 年前。 Possible Duplicate: Migrating ASP.NET Membership Database to SQL Azure 如何在 sql
我正在 Visual Studio 2010 中开发 ASP.NET 网站(使用 Service Pack 1,非常感谢)。我想为 SQL Server 2008 使用 .NET 的内置成员身份和角色
我想使用 aspnet_regsql.exe 创建一个登录系统 aspnet_regsql.exe安装到我的SQL Server之后,接下来我该做什么? 有人可以在安装 aspnet_regsql.e
我正在使用 visual studio 数据库项目对网站的数据库进行更改控制。我想使用由 aspnet_regsql 工具创建的成员资格/角色模型来管理对网站的访问。 到目前为止,我在部署数据库之前运
我运行 aspnet_regsql.exe 来设置 .net 成员资格表等。 我运行什么来创建我的应用程序以便我可以添加用户等? 最佳答案 在您的 Visual Studio 中,转到“网站 -> A
我正在尝试使用 MVC 4 RC 默认模板启用登录。 我的做法与在 MVC 3 中相同,Aspnet_regsql.exe -> SQL 服务器。然后我使连接字符串指向 SQL 服务器。 当我尝试注册
我刚刚安装了 Web Developer Express 2008 和 MVC 框架(遵循所有默认设置,在此过程中安装了 SQL Server Express)。我按照最初的NerdDinner步骤,
我正在构建一个我想使用 SQLite 的小型 ASP.NET MVC 站点。虽然我已经知道如何连接到数据库(使用 DbLinq),但我不明白如何将 aspnet_regsql.exe 生成的 ASP.
我是一名优秀的程序员,十分优秀!