'/ Web'应用程序中的服务器错误 [英] Server Error in '/Web' Application

查看:206
本文介绍了'/ Web'应用程序中的服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我运行网络程序

'/ Web''应用程序中的服务器错误

Hello
I Run web program
Server Error in ''/Web'' Application

Server Error in '/Web' Application.
The user instance login flag is not supported on this version of SQL Server. The connection will be closed.
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 user instance login flag is not supported on this version of SQL Server. The connection will be closed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below



请帮助我


Pleas Help me

推荐答案

用户Instanci ng [ ^ ]是SQL Server的完整版本不支持SQL Express的功能,它允许从代码自动创建数据库。解决方案是手动创建数据库并设置连接字符串以指向它。
User Instancing[^] is a function of SQL Express only, which allows the automatic creation of databases from code, isn''t supported on the full version of SQL Server. The solution is to manually create the database and set a connection string to point to it.


找到这个答案:来源 [ ^ ]

Found this answer: Source[^]
问题是允许从代码自动创建数据库的User Instancing不支持SQL 2005的完整版本。这只是SQL Express的一个功能。解决方案是在SQL Server 2005中手动创建数据库并设置连接字符串以指向它。如果您将使用ASP.NET v2.0的任何新的内置数据库功能,则还需要手动对数据库运行aspnet_regsql.exe。
The issue is that User Instancing, which allows the automatic creation of databases from code, isn''t support on the full version of SQL 2005. That is a function of SQL Express only. The solution is to manually create the database in SQL Server 2005 and set a connection string to point to it. You will also need to run aspnet_regsql.exe manually against the database if you will be using any of the new built-in database features of ASP.NET v2.0.


这篇关于'/ Web'应用程序中的服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆