0

最近、Azure アプリケーションを新しいサーバーにデプロイしているときに奇妙なエラーが発生します。ASP プロバイダーを使用しています (Azure SDK コード サンプルと共に Microsoft から提供されています)。いくつかのアップロードにもかかわらず、私はこの大きな醜いメッセージを受け取っています. 助けてください!

Error in '/' Application. --------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.Samples.ServiceHosting.AspProviders.<>c__DisplayClass5.<ResetItemTimeout>b__4() in C:\Users\upload.user\Desktop\Deployments\Deployment 2.20_A\AspProviders\TableStorageSessionStateProvider.cs:497
Microsoft.Samples.ServiceHosting.AspProviders.ProviderRetryPolicies.RetryNImpl(Action action, Int32 numberOfRetries, TimeSpan minBackoff, TimeSpan maxBackoff, TimeSpan deltaBackoff) in C:\Users\upload.user\Desktop\Deployments\Deployment 2.20_A\AspProviders\SecUtil.cs:439
Microsoft.Samples.ServiceHosting.AspProviders.<>c__DisplayClass1.<RetryN>b__0(Action action) in C:\Users\upload.user\Desktop\Deployments\Deployment 2.20_A\AspProviders\SecUtil.cs:395
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +739 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +114 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +370
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
4

2 に答える 2

1

はい、AppFabric キャッシュは Microsoft によって正式にリリースされ、サポートされています。このリンクはチュートリアルに非常に役立ちます

于 2011-05-03T09:00:35.623 に答える
0

これらのサンプルの利点は、コードが提供されているため、一般的に何が問題になっているのかを詳しく調べることができることです。私が調べたところ、このエラーが発生する最も可能性の高い理由は、セッション状態プロバイダーの構成にエラーがあるか(間違ったアカウントを指している可能性があります)、またはテーブルとコンテナーがに存在しないことです。そのアカウント。

使用可能なセッションオブジェクトがない可能性がありますが、その可能性は低いと思います。

そうは言っても、テーブルストレージセッションプロバイダーは、実稼働環境でのリリースには適していませんSQLServerセッションプロバイダーまたはAppFabricキャッシュセッションプロバイダーのいずれかを使用する方がはるかに優れています。

于 2011-04-28T23:23:49.130 に答える