共用方式為


Port Usage for Mobile Applications

When setting up a firewall, enable the following ports:

Port Number

Keyword

80

http

443

https

42424

ASP.NET State Server (if used)

ASP.NET State Service

If your mobile application requires the ASP.NET state server, configure it as follows:

  1. Make sure ASP.NET state service is running on the remote server that will store session state information. This service is installed with ASP.NET and Visual Studio at the following location:

    systemroot\Microsoft.NET\Framework\versionNumber\aspnet_state.exe 
    
  2. In the application's Web.config file, modify the sessionState element as follows:

    1. Set mode to "StateServer".

    2. Set stateConnectionString to this:

      stateConnectionString="tcpip=<computer_name>:42424"
      

View State and Security for Mobile Applications

If sensitive information will be included in view state, protect the connection. For details, see Securing Applications

See Also

Reference

sessionState Element (ASP.NET Settings Schema)

SessionStateModule

Concepts

Securing Applications

Designing Secure Mobile Web Form Pages

ASP.NET Configuration Overview

ASP.NET Session State Overview

Other Resources

ASP.NET Web Application Security