I installed framework 2.0, the issure is exit, what's the problem, who can tell me ,thanks!
安装 Asp.Net Session State 数据库。
不太明白,你是说连接数据库吗?
@小柑: 不是,是在数据库添加 ASPSate 数据库。http://www.cnblogs.com/aji88/articles/1493073.html
@Launcher: 那我是要登入到要连接的数据库里去配置,执行这个脚本吗?
@小柑: 下列步骤描述如何运行在 InstallSqlState.sql 和 UninstallSqlState.sql 脚本文件来配置 SQL Server 模式会话状态管理。
@Launcher:
执行sql有报错,这是没有权限吗?
-----------------------------------------
Starting execution of InstallSqlState.SQL
-----------------------------------------
--------------------------------------------------
Note:
Do not run this file manually.
You should use aspnet_regsql.exe to install
and uninstall SQL session state.
Run 'aspnet_regsql.exe -?' for details.
--------------------------------------------------
If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
Msg 229, Level 14, State 5, Procedure sp_delete_job, Line 1
The EXECUTE permission was denied on the object 'sp_delete_job', database 'msdb', schema 'dbo'.
Msg 916, Level 14, State 1, Line 10
The server principal "Irs_user" is not able to access the database "ASPState" under the current security context.
Msg 262, Level 14, State 1, Procedure GetMajorVersion, Line 23
CREATE PROCEDURE permission denied in database 'tempdb'.
Msg 916, Level 14, State 1, Line 4
The server principal "Irs_user" is not able to access the database "ASPState" under the current security context.
Warning: User types created via sp_addtype are contained in dbo schema. The @owner parameter if specified is ignored.
Msg 15247, Level 16, State 1, Procedure sp_addtype, Line 31
User does not have permission to perform this action.
Warning: User types created via sp_addtype are contained in dbo schema. The @owner parameter if specified is ignored.
Msg 15247, Level 16, State 1, Procedure sp_addtype, Line 31
User does not have permission to perform this action.
Warning: User types created via sp_addtype are contained in dbo schema. The @owner parameter if specified is ignored.
Msg 15247, Level 16, State 1, Procedure sp_addtype, Line 31
User does not have permission to perform this action.
Warning: User types created via sp_addtype are contained in dbo schema. The @owner parameter if specified is ignored.
Msg 15247, Level 16, State 1, Procedure sp_addtype, Line 31
User does not have permission to perform this action.
Warning: User types created via sp_addtype are contained in dbo schema. The @owner parameter if specified is ignored.
Msg 15247, Level 16, State 1, Procedure sp_addtype, Line 31
User does not have permission to perform this action.
Msg 262, Level 14, State 1, Procedure TempGetVersion, Line 8
CREATE PROCEDURE permission denied in database 'tempdb'.
Msg 2715, Level 16, State 3, Procedure GetHashCode, Line 4
Column, parameter, or variable #1: Cannot find data type tAppName.
Parameter or variable '@input' has an invalid data type.
Msg 2715, Level 16, State 3, Line 50
Column, parameter, or variable #1: Cannot find data type tAppName.
Parameter or variable '@appName' has an invalid data type.
Msg 2715, Level 16, State 3, Line 50
Column, parameter, or variable #3: Cannot find data type tAppName.
Parameter or variable '@dupApp' has an invalid data type.
Msg 2812, Level 16, State 62, Line 7
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 84
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 84
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2715, Level 16, State 3, Line 84
Column, parameter, or variable #6: Cannot find data type tTextPtr.
Parameter or variable '@textptr' has an invalid data type.
Msg 2812, Level 16, State 62, Line 5
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2812, Level 16, State 62, Line 8
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 109
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 109
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2715, Level 16, State 3, Line 109
Column, parameter, or variable #7: Cannot find data type tTextPtr.
Parameter or variable '@textptr' has an invalid data type.
Msg 2812, Level 16, State 62, Line 5
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 103
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 103
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2715, Level 16, State 3, Line 103
Column, parameter, or variable #6: Cannot find data type tTextPtr.
Parameter or variable '@textptr' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 132
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 132
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2715, Level 16, State 3, Line 132
Column, parameter, or variable #7: Cannot find data type tTextPtr.
Parameter or variable '@textptr' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 33
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 76
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 76
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 72
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 72
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 70
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 70
Column, parameter, or variable #2: Cannot find data type tSessionItemLong.
Parameter or variable '@itemLong' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 41
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 41
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 43
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 43
Column, parameter, or variable #2: Cannot find data type tSessionItemShort.
Parameter or variable '@itemShort' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 41
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 41
Column, parameter, or variable #2: Cannot find data type tSessionItemLong.
Parameter or variable '@itemLong' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 43
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2715, Level 16, State 3, Line 43
Column, parameter, or variable #2: Cannot find data type tSessionItemLong.
Parameter or variable '@itemLong' has an invalid data type.
Msg 2715, Level 16, State 3, Line 13
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2812, Level 16, State 62, Line 5
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 2715, Level 16, State 3, Line 26
Column, parameter, or variable #1: Cannot find data type tSessionId.
Parameter or variable '@id' has an invalid data type.
Msg 2812, Level 16, State 62, Line 6
Could not find stored procedure 'dbo.GetMajorVersion'.
Msg 262, Level 14, State 1, Procedure DeleteExpiredSessions, Line 10
CREATE PROCEDURE permission denied in database 'tempdb'.
Msg 2812, Level 16, State 62, Line 4
Could not find stored procedure 'dbo.CreateTempTables'.
Msg 262, Level 14, State 1, Procedure ASPState_Startup, Line 7
CREATE PROCEDURE permission denied in database 'master'.
Msg 15165, Level 16, State 1, Procedure sp_procoption, Line 40
Could not find object 'dbo.ASPState_Startup' or you do not have permission.
If the category already exists, an error from msdb.dbo.sp_add_category is expected.
Msg 229, Level 14, State 5, Procedure sp_add_category, Line 1
The EXECUTE permission was denied on the object 'sp_add_category', database 'msdb', schema 'dbo'.
Msg 229, Level 14, State 5, Procedure sp_add_job, Line 1
The EXECUTE permission was denied on the object 'sp_add_job', database 'msdb', schema 'dbo'.
------------------------------------------
Completed execution of InstallSqlState.SQL
------------------------------------------
@小柑: 是
ignore the <sessionstate /> in web.config