Mr.Tの場所

特攻野郎Aチームじゃないよー

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  253  : 記事  0  : コメント  3687  : トラックバック  52

ニュース

  • 性別:男
  • 猫1:まる
  • 猫2:もろ
  • 猫3:にゃん左部郎
  • タバコ:男は黙ってJPS
[わんくま同盟] C#, VB.NET 掲示板

書庫

日記カテゴリ

Mr.Tです、こんにちは。

実は、こっそり、インスパイア。

http://d.hatena.ne.jp/NAL-6295/20071030/p1

StateServerは、ASP.NETを利用する上でSession情報を保持する際に、ASP.NET State Serviceというものを
利用します。

[サーバ側設定]

IISをインストールしていないとサービス自体が、出てこないので注意すること。

  1. まずは、これを読むこと。けんけんふくよー。
    http://msdn2.microsoft.com/ja-jp/library/ms178586(VS.80).aspx
  2. サービスを起動させる。
    サービス名は「ASP.NET State Service」
    初期状態で起動は、手動であるため、「手動」→「自動」に挙げておくこと。

  3. Firewallの設定を行う。
    基本は、tcp 42424を使うので、それを通過するように指定。

  4. このままクライアント側からのアクセスを受け付けると、実は次のようなエラーになる。

    セッション状態要求をセッション状態サーバーに対して作成できませんでした。ASP.NET 状態サービスが開始されていて、クライアントとサーバーのポートが同じであることを確認してください。サーバーがリモート コンピュータ上にある場合、HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection の値を調べて、このコンピュータがリモート要求を受け付けることを確認してください。サーバーがローカル コンピュータ上にあり、上記のレジストリ値が存在していないか 0 に設定されている場合、状態サーバー接続文字列ではサーバー名に 'localhost' または '127.0.0.1' を指定しなければなりません。

    なので、指定している通り、
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection
    を調べて、なければつくる。値を0→1に変更


[クライアント側設定]

VS2005やWVDなら、既定のWebConfig内容では、sessionStateに関する表記がない。自前で、<sessionState>タグを書くこと。
表記の、大文字小文字には、注意すること、でないと、次のようなエラーになる。

説明: この要求を処理するために必要な構成ファイルの処理中にエラーが発生しました。以下のエラーの詳細を確認し、構成ファイルに変更を加えてください。
パーサー エラー メッセージ: 認識されない属性 'Mode' です。この属性は、大文字小文字を区別します。

この時点で最低限な設定は、
<sessionState mode="StateServer"
        stateConnectionString="tcpip=****:42424"
              cookieless="false"
              timeout="20"/>

くらいで接続できる。

あとは、特に設定なしでSession変数を利用することになる。


もし、SateServerを複数台にしてみたい場合は、こちらを参考に。→

State Serverはシングルポイントじゃないよ

関連リンク:ASP.NETでInProcを使ってはいけない

投稿日時 : 2007年10月31日 12:06

コメント

# re: StateServerについてのメモ 2007/10/31 16:16 NAL-6295
ASP.NET State Serviceを自動にした後に、
IISでASP.NETを動作させるために、
aspnet_regiis.exe -i
を実行すると、手動に戻っちゃうんですよね。

通常は、この順番で設定することは無いと思うけれど・・・。



# re: StateServerについてのメモ 2007/10/31 17:19 Mr.T
>手動に戻っちゃうんですよね。
Mooさんのとこにありましたw
http://d.hatena.ne.jp/aspx/20050405/p9
こんなやつですね。

もうちょっと調べてみると、本家にこんな文章がありました。
--引用
This version is registered with a service name of aspnet_state. Therefore, when this version of ASP.NET is uninstalled, the latest remaining version of the service on the computer is then registered and used in its place. For more information on the ASP.NET state service, see Session-State Modes.
--ここまで
http://msdn2.microsoft.com/en-us/library/a99txfy5.aspx

英語は多分にあやしいですが、Thereforeあたりで、
いったんサービスの再登録ってことになるという話だと思います。


# re: Ruby で数値を 0 埋めする 2019/01/24 14:16 zzyytt
http://www.vapormaxshoes.us
http://www.yeezy-boost350.us.com
http://www.ultraboost.us.com
http://www.adidasstansmith.us.com
http://www.yeezy-500.us.com
http://www.michaelkors-outletonlines.us.com
http://www.lebron16.net
http://www.goyard.us.com
http://www.stephencurry.us.com
http://www.toryburchs.us
http://www.russellwestbrookshoes.us
http://www.lebron16.us.com
http://www.supremeclothing.us
http://www.adidasyeezys.us.com
http://www.golden-goose.us.com
http://www.redbottom-shoes.us.com
http://www.kobebasketballshoes.net
http://www.bapehoodie.us
http://www.outletonline-michaelkors.us.org
http://www.yeezyboost.com.co


# NFL Jerseys Wholesale 2019/04/13 18:54 ooukzom@hotmaill.com
shbpbwjhk,If you have any struggle to download KineMaster for PC just visit this site.

# React Element 87 2019/04/26 9:50 mvaubyqok@hotmaill.com
Rei Dalio, the founder of the Bridgewater Joint Fund, known as the "father of the hedge fund," said that capitalism is no longer applicable to most Americans. He said that the widening gap between the rich and the poor is creating a turbulent environment that has a disturbing resemblance to the economic and social unrest in the 1930s.

# Yeezy 2019/04/26 10:35 dmifpfkhirt@hotmaill.com
Miners: Users who use computational power to mine blockchain blocks.

# air jordan 33 2019/05/03 8:21 bpyimrz@hotmaill.com
The Analog bucks that trend, and instead soars into the sky with an upper that combines light tones via its neutral-colored suede overlays, cream leather, and white mesh. Small hits of high-vis reflective material add just enough literal and figurative flash, while the bulky midsole encases a generous helping of Boost cushioning in its white/sail rubber.

# NFL Jerseys Cheap 2019/05/11 2:16 rwucbectp@hotmaill.com
US President Donald Trump told reporters on the White House lawn on Friday that if the Fed takes interest rate cuts, the US economy will climb like a "rocket ship." "I think they (the Fed) should lower interest rates and cancel the quantitative austerity policy, so you will see (the US economy like) a rocket ship (like that climb).

# Jordan 11 Concord 2019/05/19 19:41 tezcqbzn@hotmaill.com
http://www.jordan12gymred.us/ Air Jordan 12 Gym Red

# Nike Outlet 2019/05/23 2:52 njetokawa@hotmaill.com
http://www.jordan33.us/ retro jordan 33

# Cheap NFL Jerseys 2019/06/01 5:31 panasr@hotmaill.com
http://www.yeezy700.org.uk/ Yeezy Boost 700

# Travis Scott Jordan 1 2019/06/01 7:22 xyzjfsgnn@hotmaill.com
So,Jordan on Thursday,Jordan before the team left Oakland for Los Angeles -- where Game 6 will be played on Friday -- Kerr uttered phrases that serve as euphemisms for desperation.

# jordan 11 concord 2019/06/06 11:58 fcglxl@hotmaill.com
http://www.nfl-jerseys.us.org/ Cheap NFL Jerseys

# Cowboys Jerseys 2019/06/13 21:56 kyxlbqqcp@hotmaill.com
http://www.nfljerseyscheapwholesale.us/ Cheap NFL Jerseys

# Yeezy Shoes 2019/07/15 12:16 vphnclyzln@hotmaill.com
http://www.yeezy700.org.uk/ Yeezy

# Yeezy Boost 350 V2 2019/08/07 0:36 jhnhmnrvig@hotmaill.com
http://www.yeezyboost350v2.de/ Yeezy Boost 350

# Nike Outlet Online 2019/08/13 7:01 exvbtlzv@hotmaill.com
http://www.yeezy700.org.uk/ Yeezy 700

# Yeezy 2019/08/14 13:18 ncgvocdyncb@hotmaill.com
http://www.nike--outlet.us/ Nike Outlet

# WnlPptUfeHIeW 2022/04/19 13:20 johnansaz
http://imrdsoacha.gov.co/silvitra-120mg-qrms

# bdjryavwzkyv 2022/05/06 17:27 elomjh
plaquenil sulfate https://keys-chloroquinehydro.com/

# ehvwbexcmdjf 2022/05/25 11:32 ufdtolmx
http://erythromycin1m.com/# erythromycin ophthalmic ointment

# rgmtustzzgoo 2022/05/30 2:04 pfgmopja
http://erythromycinn.com/# erythromycin ophthalmic ointment usp 0.5

# owkzksgcwiss 2022/06/02 6:03 zryaoroo
erythromycin for dogs http://erythromycin1m.com/#

Post Feedback

タイトル
名前
Url:
コメント