我在asp web.config文件中收到错误。 错误。 无法使用SQL Server因为ASP .NET版本2.0会话状态未安装在SQL Server上,或者ASP.NET没有运行dbo.TempGetVersion存储过程的权限。如果尚未安装ASP.NET会话状态架构,请安装ASP.NET会话状态SQL Server 2.0或更高版本。如果已安装架构,请将dbo.TempGetVersion存储过程的执行权限授予ASP.NET应用程序池标识或sqlConnectionString属性中指定的Sql Server用户。 我正在使用 framework 4.0 我很困惑reg_sql.exe。
I am getting error in asp web.config file. error. Unable to use SQL Server because either ASP.NET version 2.0 Session State is not installed on the SQL server, or ASP.NET does not have permission to run the dbo.TempGetVersion stored procedure. If the ASP.NET Session State schema has not been installed, please install ASP.NET Session State SQL Server version 2.0 or above. If the schema has been installed, please grant execute permission on the dbo.TempGetVersion stored procedure to either the ASP.NET application pool identity, or the Sql Server user specified in the sqlConnectionString attribute. I am using framework 4.0 where i am confused reg_sql.exe.
推荐答案当您尝试使用会话状态模式sqlserver时,您需要在sql server中激活或启用sqlserver和asp连接以进行会话维护。 如果未安装连接,则可能会出现错误无法使用SQL Server,因为SQL Server上未安装ASP.NET 2.0版会话状态。请安装ASP.NET会话状态SQL Server 2.0或更高版本。 解决这个问题。执行以下步骤: (1)打开命令提示符并按照以下路径继续。 确定在正确的目录中运行这个) C:\ WINDOWS \ MicroSoft \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ sstype c -d DATABASENAME -E (2)将DATABASENAME 更改为数据库名称。这将开始启动会话状态。 When you are trying to use session state mode sqlserver then you need to activate or enable the sqlserver and asp connectivity for session maintain in sql server. If connectivity is not installed then you may get the error "Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server. Please install ASP.NET Session State SQL Server version 2.0 or above." To solve this. do the following steps: (1) Open command prompt and go on following path. be sure to run this in the correct directory) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -ssadd -sstype c -d DATABASENAME -E (2) change DATABASENAME to the name of your database. This will begin to start the session state.
更多推荐
Web.config文件中的错误
发布评论