.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

ASP.NET State Service on a web farm

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net
 

Hi,

I have 2 Windows 2008R2 web servers running IIS 7.5 configured as  web farm. Everything works until I try using Session Service running on another Windows 2008R2 server.

Web.Config: 

<sessionState mode="StateServer" stateConnectionString="tcpip=MyRemoteServer:42424" cookieless="false" timeout="20">
</sessionState>

 Th session state service is running on 'MyRemoteServer" and the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection reg key is set to 1.

The application works fine when I use session on the local machine but crashes when I try to use the session on MyRemoteServer with the following error:

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name. 
<


View Complete Post


More Related Resource Links

Taming the Stateless Beast: Managing Session State Across Servers on a Web Farm

  

Running a Web farm means managing session state across servers. Since session state can't be shared across a Web farm with Internet Information Services 5.0, a custom solution is required. One such solution using a tool called the session manager is described here. The article begins with a description of the SQL Server database used to store state information, the stored procedures used to update it, and the retrieval of session data. ASP code drives the session manager tool and the COM and COM+ components that run the stored procedures.

John Papa

MSDN Magazine October 2000


How to get all Secure Store Service (SSS) applications in the farm

  
Hello everyone, I am trying to use SharePoint 2010 Secure Store Service (next SSS) in my application to get credentials to external system. Is there any way to get all possible applications (IDs) from API provided. Currently I am using next code to get all applications: SecureStoreProvider provider = SecureStoreProviderFactory.Create() as SecureStoreProvider;             provider.Context = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);             if (provider != null)             {                 foreach (var app in provider.GetTargetApplications())                 {                     Console.WriteLine(app.Name);                 }             } However it depends on SPServiceApplicationProxyGroup.Default and SPSiteSubscriptionIdentifier.Default parameters. So in case I remove SSS from

What are the benefits of using ASP.NET Session State in a Web Service

  
I have a question regarding session state usage in a  Web Service method. I thought about this situation as I came across an article http://msdn.microsoft.com/en-us/library/aa480509.aspx Situation is that A. There are web service methods which are being exposed. One web method to store value in a session state and another to get value from session state. B. There is another asp.net website which calls the above web methods.        B                    ----------------------------------->       A (Another ASP.NET Website)                 (WebService hosted in an ASP.NET website)   Questions: Does webmethod can store data in a session variable in Webservice application's IIS (in Proc)? I tried this (refer below code snippets) but I was not able to store and get data thru webmethods into/from state. Why?? What is the use of storing it in the state of the Webservice's website IIS (in proc). Will there be any session objects create due to any web service calls from clients? What are the benefits of saving a value in WebService's session, not in the calling website's session. A WebService's webmethod can able to use session state, does that mean that a session will b

What are the benefits of using ASP.NET Session State in a Web Service?

  
I have a question regarding session state usage in a  Web Service method. I thought about this situation as I came across an article http://msdn.microsoft.com/en-us/library/aa480509.aspx Situation is that A. There are web service methods which are being exposed. One web method to store value in a session state and another to get value from session state. B. There is another asp.net website which calls the above web methods.         B                    ----------------------------------->       A (Another ASP.NET Website)                 (Web Service hosted in an ASP.NET website)      Questions: Does web method  can store data in a session variable in Web service application's IIS (in Proc)? I tried this (refer below code snippets) but I was not able to store and get data thru webmethods into/from state. Why?? What is the use of storing it in the state of the Webservice's website IIS (in proc). Will there be any session objects create due to any web service calls from clients? What are the benefits of saving a value in Web Service's session, not in the calling website's session. A Web Service's web method can able to use sessio

Unable to access Configure Service Accounts using the Farm acount

  
hi all, I am new to SharePoint and have started working directly on SP2010,   I installed SP 2010 using the Domain\spadmin account. I have also added mine domain account as the administrator in the central admin(farm administrator) now m trying to start the SharePoint Server Search 14 service from "services.msc" for which the log in as user is mine domain account, for which i am getting the following error: The SharePoint Server Search 14 service failed to start due to the following error: The service did not start due to a logon failure. if I check for all the services which are running in SharePoint I get that SharePoint Search service is active. also when i try to access Central Admin --> Security --> Configure Service accounts then I get the error message as access denied signin as different user.   Please help me out as i need to configure search for my application and m not having the access.   Thanks for the help Arun Kumar

SharePoint 2010 - The license state for the current server doesn't match the farm's license state.

  
I already have a SharePoint 2010 server built, up and running. Yesterday I built a brand new server Windows 2008 and installed all necessary windows updates. Then I joined the server to the domain where the other SharePoint 2010 box is. Today, I installed all necessary pre-requisites for SharePoint 2010 including the KB971831. After that I installed SharePoint 2010 binaries on the new server. When I run the configuration wizard now, it sees the database server with the configuration database, but will not allow me to join the new server to the farm. I get the following error in the diagnostic logs. Resource retrieved id ConfigurationDatabaseTaskConnectFailConfigDisplayLabel is Failed to connect to the configuration database. 02/18/2010 17:54:12 8 INF Leaving function StringResourceManager.GetResourceString 02/18/2010 17:54:12 8 ERR Failed to connect to the configuration database.   An exception of type System.InvalidOperationException was thrown. Additional exception information: The current server cannot be joined to this farm because the set of installed products does not match the products installed in the farm.   The license state for the current server doesn't match the farm's license state. System.InvalidOperationException: The current server cannot be joined to this farm because the set of installed products does not match the products installed in the farm.

Misconfiguration of the MOSS State Service

  
Hi,when I start a Workflow, this Message appears:The form cannot be rendered. This may be due to a misconfiguration of the Microsoft Office SharePoint Server State Service. For more information, contact your server administrator.But all Features on the Server are activated.How can i fix this?

The license state for the current server doesn't match the farm's license state.

  
Help!!!! I removed project server 2010 from my server hosting SP 2010 and when I run the config wizard I get the error The license state for the current server doesn't match the farm's license state.  I need to bring it back online asap... :(  Any ideas please.

Restoring a Service Application on Different Farm for Disaster Recovery

  

Hi All,

We are testing the Disaster REcovery scenario for SharePoint 2010 in multi-tenancy environment. The process I did is:

1. Created a sharepoint environment in a multi tenant scenario ( partioned the services while creating) and created few tenants with 1 or 2 site collections. (Parent Farm)
2. Created another environment with the same partioned mode. (DR Farm)
3. Tried to copy the site collection which is utilizing the Managed Metadata and restore it in DR farm along with the Parent Managed Metadata.

Everything is restored without error in the DR Farm (Site Collection and Service application and proxy). But, when I go to the term store (in tenant) I see a message like below:

"The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator. "

Also, the document library's managed metadata column value which was referring to the Managed Metadata it's greyed out (Read-Only).

My question is:  How can I restore the service application and make it work and also how can i associate the site collection to use the Service Application which it was referring to previously.

I don't know if I need to restore the subscription also. I am not able to get enough information. In TechNet, w

WCF session client service reference "State" is not updated when the server side has closed

  

I am using vb.net (Visual Studio 2008 with framework 3.5). I have a server that exposes several services requiring sessions. I am using wsHttpBinding for all. One of my requirements is to allow non-dot net third parties to access these services. When a client connects to a service and then some time later the server goes away, the state of the connection is still reporting "open".

Currently I have implemented a "ping" function on the server. My client calls this function every 5 to 10 seconds and if the server does shutdown, I get alerted with an exception error. This works, but I was wondering if there is a way where I don't have to call my ping function?

I don't want to use a dual connection binding and I was hoping to use the connection state variable? But, I don't know how to get it to update by itself. The client user application could just wait until it goes to invoke a service method, but I was wondering if there was another way.

Thanks in advance!!

 


Sharepoint infopath forms problem / state service

  

Hi,

I am uploading an infopath form to sharepoint.  Infopath reports that the form uploaded successfully, however when I click the link to open the form in the browser, I get a message:

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

I've google about and it appears that setting up the state service and associating it with the application solves the problem.  I've followed the instructions, but the problem still persists!  Do I need to stop/start something else to get it to work?  The service application pages report the service is running and associated with the applications.

Thanks for any help - it's driving me nuts


Problem with state service application

  

hello,

I need to change sharepoint server system date to the past date. For example for 04-10-2010(dd-mm-yyyy).

So i can change sys date easily. But after that i cannot manually start workflow. I have an error in log InfoPath Forms Services eventid 7898 (Invalid state service configuration). I tried reconfigure server using wizards but it is not work.

Any suggestions or this is imposible?

 


WCF Service configuration in Web Farm and Load Balancing envrionment.

  

I want to configure ASP.NET Website Project using WCF Service[NetTcp] (both in c#) for web-farm (for website) and NLB Load balancing (for service). I would like to configure following options for same.

NetTcpBinding.maxConcurrentCalls, NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections

Note: During single machine configuration when I changed value of NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections in WCF Service project to more that 10, which is default value. I got exception. When I changed this value in Website it was working fine. Due to this I had to keep in default configuration. Not sure why this is the case. If anyone could explain this it would be helpful.

Following reference gives idea how to configure in given environment but does not tell how to go about it.

Ref: http://msdn.microsoft.com/en-us/library/ee377061%28BTS.10%29.aspx


Let me simplify a bit. Lets say I have following configuration.

  • 2 IIS servers in Web Farm.
  • 3 WCF Service Servers (NetTcp) in NLB
  • Default config. for single instance.
    • NetTcpBinding.ListenBacklog: 10
    • NetTcpBinding.MaxConnections: 10
    • NetTcpBinding.maxConcurrentCalls: 16


User Profile Service Synchronization Service Stuck in "Stopping" State

  

Have a customer who's UPS Synchronization service is stuck in a "Stopping State"

The UPS service Application has been deleted.  A Stop-SPServiceInstance command has been run and the Get_SPServiceInstance command shows the service is "unprovisioning"

Any ideas on what can be done next to get the service in a stopped state?


ASP.Net Session State Service on App or WFE?

  

Hi,

In a farm with dedicated web and application servers, on which tier should the asp.net session state service be running?

Thanks,

Erik


Erik RHS

Windows Service Applications Tutorials

  
You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

Truly Understanding View State

  
This article provides a detailed understanding of the ViewState.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend