'/ 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.