Web.config文件中的错误

编程入门 行业动态 更新时间:2024-10-22 16:37:45
本文介绍了Web.config文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在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文件中的错误

本文发布于:2023-11-12 04:19:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580497.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   文件   Web   config

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!