Web.config文件中的错误 [英] Error in Web.config file

查看:463
本文介绍了Web.config文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net 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用户。



我正在使用.net framework 4.0



我很困惑reg_sql.exe。

I am getting error in asp.net 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 .net framework 4.0

where i am confused reg_sql.exe.

推荐答案

当您尝试使用会话状态模式sqlserver时,您需要在sql server中激活或启用sqlserver和asp.net连接以进行会话维护。



如果未安装连接,则可能会出现错误无法使用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.net 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文件中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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