または:2)アプリケーションの構成ファイルに次のセクションを追加します。 この2番目の手法により、特定のアプリケーション内のすべてのファイルがデバッグモードでコンパイルされることに注意してください。最初の手法により、その特定のファイルのみがデバッグモードでコンパイルされます。重要:デバッグモードでアプリケーションを実行すると、メモリ/パフォーマンスのオーバーヘッドが発生します。生産シナリオに展開する前に、アプリケーションにデバッグが無効になっていることを確認する必要があります。スタックトレース: [WebException: The remote server returned an error: (400) Bad Request.] System.net.httpwebrequest.getResponse()+1751 Microsoft.windowsazure.storage.core.executor.executor.executesync(retccommand`1 cmd、iretrypolicyポリシー、OperationContext OperationContext) (x86) jenkins workspace release_dotnet_master lib classlibrarycommon core executor executor.cs:722 [StorageException: The remote server returned an error: (400) Bad Request.] Microsoft.windowsazure.storage.core.executor.executor.executesync(restcommand`1 cmd、iretrypolicyポリシー、OperationContext OperationContext)プログラムファイル(x86) jenkins workspace release_dotnet_master lib classlibrarycommon core executor executor.cs:649 episerver.azure.blobs.defaultazureblobcontainer.createifnotexist()+295システム [AggregateException: One or more errors occurred.] System.threading.tasks.task.waitall(task[] タスク、int32 millisecondstimeout、キャンセルトークンキャンセルトークン)+1264 episerver.framework。<> c__displayclass2_0。B__0(オブジェクトO、Eventgs E)+21 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.Runtimemethodhandle.invokemethod(オブジェクトターゲット、オブジェクト[] 引数、署名SIG、ブールコンストラクター)+0 System.Reflection.Runtimemethodinfo.UnsafeinvokeInternal(オブジェクトOBJ、オブジェクト[] パラメーター、オブジェクト[] 引数)+216 System.Delegate.DynamicInvokeimpl(Object[] args)+160 epirerver.framework.initialization.initializationEngine.OninitComplete()+312 episerver.framework.Initialization.InitializationEngine.executeTransition(boolean continueTransition)+208 Eisterver.framework.initialization.initializatialization.initializatialization.initializatialization.Initializatialization EngineAction)+408 Episerver.Framework.Initialization.InitializationModule.FrameWorkInitialization(hostType hostType)+226 episerver.global..ctor()+106 geonorge.episerverapplication..ctor()+43 asp.global_asax..ctor..ctor()+46 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInStance(RuntimeType Type、Boolean PublicOnly、Boolean Nocheck、Boolean&Canbecached、Runtimemetododhandleinternal&ctor、boolean&bneedsecuritycheck)+0 System.RuntimeType.createInstancesslow(Boolean、Boolean、Boolean、Boolean) fillcache、stackcrawlmark&stackmark)+142 System.activator.createinStance(タイプ、ブールの非公開)+107 System.runtimetype.createinStanceImpl(Bindingflags Bindingttr、バインダーバインダー、オブジェクト[] args、cultureinfo文化、オブジェクト[] ActivationAttributes、StackCrawlmark&Stackmark)+1473 System.activator.CreateInStance(タイプ、バインディングフラグバインディングトート、バインダーバインダー、オブジェクト[] args、cultureinfo文化、オブジェクト[] ActivationAttributes)+186 System.activator.createinStance(タイプタイプ、バインディングフラグバインディングバインディング、バインダーバインダー、オブジェクト[] Args、CultureInfo Culture)+28 System.web.httpruntime.createnOnpublicInstance(タイプ、オブジェクト[] args)+80 System.web.httpapplicationFactory.getSpecialApplicationInstance(intptr appContext、httpcontextコンテキスト)+182 System.Web.Hosting.Pipelinerurtime.InitializeApplication(intptr appContext)+369 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.web.httpruntime.firstrequestinit(httpcontext Context)+532 System.web.httpruntime.ensurefirstrequestinit(httpContext Context)+111 System.web.httpruntime.processrequestnotificationprivate(iis7workeRrequestext +33 width = “1111” height = “1285”/>
using Microsoft.WindowsAzure.Storage;
var cloudBlobContainer = CloudStorageAccount.Parse(connectionString)
.CreateCloudBlobClient()
.GetContainerReference(containerName);
if (cloudBlobContainer.Exists())
{
Console.WriteLine("Hello Blobs!");
}