tag:blogger.com,1999:blog-7712731644405234924.post2855243271933295825..comments2022-12-02T16:34:23.755+11:00Comments on C# Free Training Courses: Session Managment in Asp.netEmad Yazdanhttp://www.blogger.com/profile/09070609059622439370noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7712731644405234924.post-64620537854895452562008-05-20T00:47:00.000+10:002008-05-20T00:47:00.000+10:00Hi shahram,In Process is always good as long as yo...Hi shahram,<BR/>In Process is always good as long as you are not dealing with multiple servers.<BR/>State server performance is not as good as sql server because it is using a file system at end to save information if you do not have sql server you may use this approach. Microsoft recommand Sqlserver approach. since it has a very good performance. if you look closely to the tables you will see that tables are created in Tempdb that has no logging so it is even faster compare to other databases in sqlserver.Emad Yazdanhttps://www.blogger.com/profile/09070609059622439370noreply@blogger.comtag:blogger.com,1999:blog-7712731644405234924.post-20627693270684219282008-05-16T22:42:00.000+10:002008-05-16T22:42:00.000+10:00Hi Emad,That will be great if you can explain pros...Hi Emad,<BR/>That will be great if you can explain pros and cons of each one, comparing from different angles, especially StateServer and SqlServer. ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7712731644405234924.post-2088116361776660002008-05-14T16:55:00.000+10:002008-05-14T16:55:00.000+10:00Hi when you run that Installsqlstate and show you ...Hi <BR/>when you run that Installsqlstate and show you error there are some possible issues<BR/>1-it means that it is installed somehow to check that you can see the data base in your sql server data base you should have ASPState Database Also in Tempdb database you should have two more tables 1-ASPStateTempApplications 2-ASPStateTempSessions (However I do not think this is in your case)<BR/><BR/>2- running that script is ok in sqlserver 2000 however, for sql server 2005 you should run InstallSqlState.exe should be run which is in this folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727<BR/><BR/>so you need run cmd then in cmd you have to go to that folder then you can run this (Case sensetive):<BR/>aspnet_regsql.exe -S localhost -E -ssadd<BR/><BR/>the best way is that running this code in server itself so it will not block you because of remote connection.<BR/><BR/>Cheers,<BR/>EmadEmad Yazdanhttps://www.blogger.com/profile/09070609059622439370noreply@blogger.comtag:blogger.com,1999:blog-7712731644405234924.post-80051055305687985582008-05-14T13:18:00.000+10:002008-05-14T13:18:00.000+10:00Just now i try to run the InstallSqlState. but whe...Just now i try to run the InstallSqlState. but when i execute the file. there will appear this error >><BR/>"Msg 14261, Level 16, State 1, Procedure sp_add_category, Line 32<BR/>The specified @name ('[Uncategorized (Local)]') already exists."<BR/>I'm not familiar with Sql server. can you help me?<BR/>And inside the InstallSqlState, it ask me to use the "aspnet_regsql.exe" to install and uninstall SQL session state. After run the installer. it also failed and display this error>><BR/>"Setup failed.<BR/><BR/>Exception:<BR/>Unable to connect to SQL Server database.<BR/><BR/>----------------------------------------<BR/>Details of failure<BR/>----------------------------------------<BR/><BR/>System.Web.HttpException: Unable to connect to SQL Server database. ---> System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)<BR/> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)<BR/> at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)<BR/> at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)<BR/> at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)<BR/> at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)<BR/> at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)<BR/> at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)<BR/> at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)<BR/> at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)<BR/> at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)<BR/> at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)<BR/> at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)<BR/> at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<BR/> at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<BR/> at System.Data.SqlClient.SqlConnection.Open()<BR/> at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)<BR/> --- End of inner exception stack trace ---<BR/> at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)<BR/> at System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)<BR/> at System.Web.Management.SqlServices.Install(String database, SqlFeatures features, String connectionString)<BR/> at System.Web.Management.ConfirmPanel.Execute()"<BR/>can you explain me why? sorry and thank you..CsPrincehttps://www.blogger.com/profile/01619441772623882609noreply@blogger.com