Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >SQL- IIS中的服务器实例问题

SQL- IIS中的服务器实例问题
EN

Stack Overflow用户
提问于 2014-04-03 05:21:32
回答 1查看 265关注 0票数 0

我已经创建了一个网站,在其中我根据数据库中存在的用户和密码对用户进行身份验证。在我上传到IIS服务器之前,它工作得很好。

我得到了以下错误。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
Server Error in '/' Application.
--------------------------------------------------------------------------------


The database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\inetpub\wwwroot\WebSite11\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.Data.SqlClient.SqlException: The database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\inetpub\wwwroot\WebSite11\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error: 



Line 16:     {
Line 17:         // Verify that the username/password pair is valid
Line 18:         if (Membership.ValidateUser(Login1.UserName, Login1.Password))
Line 19:         {
Line 20:             e.Authenticated = true;


 Source File:  c:\inetpub\wwwroot\WebSite11\LoginPage.aspx.cs    Line:  18 

Stack Trace: 



[SqlException (0x80131904): The database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\INETPUB\WWWROOT\WEBSITE11\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\inetpub\wwwroot\WebSite11\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +6675958
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +688
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4403
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +84
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +55
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +368
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +6704598
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +6705099
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions) +610
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +1049
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +74
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions) +6707667
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions) +78
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +2192
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +116
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1012
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +6712291
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +152
   System.Data.SqlClient.SqlConnection.Open() +229
   System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +150
   System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +4880234
   System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +3888545
   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +186
   System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +195
   LoginPage.Login1_Authenticate(Object sender, AuthenticateEventArgs e) in c:\inetpub\wwwroot\WebSite11\LoginPage.aspx.cs:18
   System.Web.UI.WebControls.Login.AttemptLogin() +160
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +93
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +84
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067  

我试图搜索我需要降级的数据库版本,但不知道具体如何。我有sql-server2008。

我没有将整个数据库创建为降级实例的自由。

EN

回答 1

Stack Overflow用户

发布于 2014-04-03 06:24:42

您需要为数据库创建一个脚本,然后在要使用该脚本的SQL Server中创建该数据库。

http://www.mssqltips.com/sqlservertip/2810/how-to-migrate-a-sql-server-database-to-a-lower-version/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22828497

复制
相关文章
Postgresql中plpgsql数组的赋值与取值分析
(为什么进入BLOCK每次都要走一遍赋初值流程?哪里决定的哪些变量需要赋值?《Postgresql源码(79)plpgsql中多层调用时参数传递关键点分析(pl参数)》:问题五)
mingjie
2022/10/28
1.7K0
从N个数组分别取值,穷尽全部情况
有N个数组,每个数组元素不定,从每个数组都中取出一个,组成长度为N的序列,求穷尽序列的所有情况。
ZONGLYN
2019/08/08
8450
多维数组取值问题
给予一个多维数组和一个描述取值路径的一维数组, 通过调用函数f返回取值路径描述的值,如 f([[1, 2], [3, 4], [5, 6]], [0, 0]) -> 1
littlelyon
2018/10/19
2.4K0
从机器学习学python(三) ——数组冒号取值与extend
从机器学习学python(三)——数组冒号取值与extend (原创内容,转载请注明来源,谢谢) 一、数组冒号取值 1、 小白级别 python的特有取值方式,假设数组a = [0,1,2,3,4],则: b=a[:3]表示b取数组a第四个元素之前的元素,即b=[0,1,2] c=a[:-1]则表示取a最后一个元素前面的所有元素,即c=[0,1,2,3] 原理是因为冒号前面带0的可以省略掉。 2、困难级别 b=array( [ [ [ 0, 1, 2, 3]
用户1327360
2018/03/07
1.6K0
Java从Object取值
在我们进行springboot的model、view、controller方式进行的时候,常常会遇到需要从请求的参数中去除具体值的业务,下面我们就提供了一种Java从Object对象中解析出对象属性和对象值之后并转换为实体的过程,示例代码如下:
问问计算机
2021/05/08
3.2K0
tensorflow中取值
本文主要介绍了在 TensorFlow 中如何取出张量(Tensor)的返回值。首先介绍了两种方法:使用 tf.cast() 和 tf.to_int32(),但它们都返回了 Tensor 对象。然后,文章介绍了如何将 Tensor 对象转换为变量类型,通过使用 tf.Variable 和 tf.Session()。最后,文章通过示例代码展示了如何将变量类型转换为 Tensor 对象。
用户1148830
2018/01/04
2.1K0
loadrunner动态从mysql取值
loadrunner动态从mysql取值 [需要下载跟数据库服务器一致的dll,32位或64位]
流柯
2018/08/31
9610
从嵌套结构中取值时如何编写兜底逻辑
对a解构时赋予的默认值(空数组),仅当b.a的值为undefined时才会生效,如果b.a的值为null,默认值就无法生效,使得第二行调用map方法的代码直接报错,所以第一行代码兜底并没有做好。
大史不说话
2020/11/03
2.9K0
算法-删除已排序数组中的重复项
版权声明: https://blog.csdn.net/li_xunhuan/article/details/89843311
Fisherman渔夫
2019/07/31
3.5K0
javascript中json对象json数组json字符串互转及取值
今天用到了json数组和json对象和json类型字符串之间互转及取值,记录一下:
kirin
2020/10/30
4.8K0
Java中数组的地址问题(hashCode解析):
Java中数组的地址问题(hashCode解析): import java.util.Arrays; public class Action1 { public static void main(String[] args) { //1、初始数组 int [] array0= {5,9,9,9,65,65,95,9,5,6,69,6,65,899}; System.out.println("0->生成地址:\t"+array0.hashCode()); //2、赋值数组 int [
红目香薰
2022/11/29
9710
Java中数组的地址问题(hashCode解析):
企业从云服务的承诺支出中获得最大收益的4种方法
企业为其云计算战略制定支出预算可能很复杂,尤其是在承诺支出的方面。人们需要知道最大化其云服务投资收益的方法。
静一
2022/12/08
5070
Java 动态判断数组维数并取值
群里 程序员 DMZ 给出了很专业的建议,使用策略模式或者采用递归的方式取值。
明明如月学长
2022/11/28
1K0
Java 动态判断数组维数并取值
densenet解析_给我一个承诺详细解读
这篇文章是Densely Connected Convolutional Networks的解读,在精简部分内容的同时补充了相关的概念。如有错误,敬请指正。 论文地址:https://arxiv.org/abs/1608.06993 代码地址:https://github.com/liuzhuang13/DenseNet
全栈程序员站长
2022/11/11
6530
densenet解析_给我一个承诺详细解读
Java 动态判断数组维数并取值
群里 程序员 DMZ 给出了很专业的建议,使用策略模式或者采用递归的方式取值。
明明如月学长
2022/11/28
1.2K0
Java 动态判断数组维数并取值
SAP 中的承诺项目(Commitment item)是什么
用途:承诺项目将影响流动性的预算交易和商业交易分类为收入,支出和现金余额项目。 您可以将特定责任区域(资金中心)的预算分配给承诺项目。 预算被用做过帐承诺项目和具有承诺和实际值的资金中心。 在支票机系统中输入的资金预留和业务交易也会影响预算。
matinal
2023/10/14
6980
python中int的取值范围_int32的取值范围是多少?
int32的数值取值范围为“-2147483648”到“2147483647”;而int64的数值取值范围为“-9223372036854775808”到“9223372036854775808”。
全栈程序员站长
2022/09/29
3.1K0
python中int的取值范围_int32的取值范围是多少?
不会用的Java数组,从青铜到王者,全解析数组,建议收藏!!!
数据类型 [] 数组名称 = new 数据类型[长度];String[] arr3 = new String[5];
香菜聊游戏
2021/07/16
5160
JS中对象转数组案例解析
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
全栈程序员站长
2022/10/01
2.4K0
JS中对象转数组案例解析
Jquery中的CheckBox、RadioButton、DropDownList的取值赋值
$('input:radi0:checked').val(); $("input[type='radi0']:checked").val(); $("input[name='rd']:checked").val();
用户5640963
2019/07/28
1.4K0

相似问题

从typescript中的承诺数组中删除未定义的已解析承诺

12

从已拒绝的回调中返回已解析的承诺

12

将已解析的承诺数组映射为值数组。

32

返回已解析的承诺

111

返回已解析的承诺

20
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文