在web.config中设置sessionState报错,急!!!
<sessionState mode="SQLServer" sqlConnectionString="Data Source=w5bdb.51.net;Initial Catalog=y181338;User Id=y181338;Password=sa789456" cookieless="false" timeout="30"/>------------------------------------------
帮忙看看上面的设置有什么 不对吗,怎么改?
报错信息
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The sqlConnectionString attribute or the connection string it refers to cannot contain the connection options 'Database', 'Initial Catalog' or 'AttachDbFileName'. In order to allow this, allowCustomSqlDatabase attribute must be set to true and the application needs to be granted unrestricted SqlClientPermission. Please check with your administrator if the application does not have this permission.
--------------------编程问答-------------------- sqlConnectionString="server=.;password=你的数据库密码;uid=sa;database=你的数据库名称"; --------------------编程问答--------------------
补充:.NET技术 , ASP.NET