ASP.net プロファイルを使用しようとしています。いくつかの指示に従いました。
- ASPNETDB をセットアップします (SQLExpress 2005 を使用)
- 構成されたプロファイル プロバイダー (web.config 内)
- いくつかのプロパティを定義
- 有効な認証
しかし、私は次のようなコードを使用できないようです (つまり、Intellisense はそれが好きではありません)。
Profile.UserCustomContent = "Hi Mom";
明らかに重要なことを見逃していますが、見ることができません。助けてください...
ここに私のからのいくつかのスニップがありますweb.config
<connectionStrings>
<add name="SqlServices"
connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalogue=aspnetdb" />
</connectionStrings>
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
</authorization>
<profile enabled="true" defaultProvider="SqlServices">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices" applicationName="MyInternalApplication" />
</providers>
<properties>
<add name="UserSearchFilterOptions" type="String" />
<add name="UserCustomContent" type="String"/>
</properties>
</profile>
</system.web>