こみゅぷらすで話したMSBuild, MSDeploy のお話。
![ぼくの考えた割と普通(c)なデプロイ戦略](https://cdn-ak-scissors.b.st-hatena.com/image/square/8360a55ec7705a1ee7e6d7669abe5a453ba29953/height=288;version=1;width=512/https%3A%2F%2Ffiles.speakerdeck.com%2Fpresentations%2Fedb60b70da880130d76f72bafdf6e790%2Fslide_0.jpg%3F1807712)
この記事ではIISがリクエストを受け取ったときにASP.NETで発生する2つのイベントとライフサイクルの仕組みについて解説します。 2つのイベントというのはHttpHandlerとHttpModuleというクラスによって発生するイベントのことです。 これらのイベントを利用することでWEBアプリケーションのカスタマイズを様々なかたちで行うことが可能です。 まずは全体の概要の説明ということでIISにリクエストが到達したときに内部で行われる処理について解説します。 全体的な処理の概要を下の図で示します。 ユーザーがリクエストを送信してIISがそれを受け取るとIISは拡張子に基づいて適切なDLLに処理を委譲します。 例えば.aspxという拡張子のリクエストを受信したときにはそのリクエストはaspnet_isapi.dllにリクエストが委譲され処理されます。 受信したリクエストがそのWEBサイトにと
Visual StudioでWebアプリ開発をするときによくお世話になるIIS Express、これは既定では32bitモードで動作します。これまでのWebアプリ開発では特に何事もなかったのですが、最近業務で以下のような環境下での開発をしていてハマりました。 Windows 7 x64 Visual Studio 2013 + IIS Express .NET Framework 4.5 ASP.NET MVC 5 Oracle 11g これまでと違ったはOracleデータベースの利用。ずっとSQL Serverで開発をしていたのでOracleは初体験でした。Oracleへの接続にはODP.NETの64bit版を利用していたのですが、これを参照設定に追加しても全然動かない。具体的には、以下のようにBadImageFormatExceptionが飛んでいました。 つまるところ、32bitと6
ASP.NET Web API 2.1 の目玉、Global Error Handling について調べました。 目次 概要 今までは不十分だった例外処理 ドキュメント 使ってみる 例外フィルター属性との関連 その他の情報 破壊的変更は無し 例外情報の取得 Web API における例外処理まとめ 概要 例外処理の方法が新たに用意されました。 ASP.NET Web API パイプライン内で発生した例外を全て捕捉し、ログ、レスポンスのカスタマイズを行えるようになりました。追加されたオブジェクトは2つ、Exception Loggers と Exception Handlers になります。前者はログ、後者はレスポンスのカスタマイズ用になります。この2つのコードを記述しパイプラインに登録することで、例外処理を行います。Global Error Handling イコール Exception L
by Mike Wasson An authentication filter is a component that authenticates an HTTP request. Web API 2 and MVC 5 both support authentication filters, but they differ slightly, mostly in the naming conventions for the filter interface. This topic describes Web API authentication filters. Authentication filters let you set an authentication scheme for individual controllers or actions. That way, your
環境 : Visual Studio 2013 ASP.NET Identity に関する補足 Web API 認証 (Token 認証) External Login のカスタマイズ E-Mail Confirmation の実装 二要素認証の実装 こんにちは。 knockout.js 勉強会の補足 (カットしたネタ) の 2 つ目です。 デモで紹介した ASP.NET Web API で認証 (Authentication) を実装し、JavaScript からどのように使用するか補足します。(実アプリケーションでは、必ず必要になるシナリオです。) ASP.NET Identity の Token 認証 昔、「ASP.NET Web API における操作ごとの制御 (Validation, 認証/権限, Exception 処理 など)」で紹介した頃には、フォーム認証などでもお馴染みの
This is the fifth part of Building Simple Membership system using ASP.NET Identity 2.1, ASP.NET Web API 2.2 and AngularJS. The topics we’ll cover are: Configure ASP.NET Identity with ASP.NET Web API (Accounts Management) – Part 1. ASP.NET Identity 2.1 Accounts Confirmation, and Password/User Policy Configuration – Part 2. Implement JSON Web Tokens Authentication in ASP.NET Web API and Identity 2.1
ここでは、次の製品に ワンクリック発行を 使用して (配置) Web アプリケーション プロジェクトを発行する方法を示しています: Visual Studio 2012 Visual Studio Express 2012 for Web のVisual Studio 2010Visual Studio の Web 発行の更新 のVisual Web Developer 2010 ExpressVisual Studio の Web 発行の更新 次のいずれかにを配置できます: ホスティング プロバイダーにします。 テスト環境として開発用コンピューターに IIS で。 企業内ネットワーク サーバーにします。 Visual Studio の Web アプリケーション プロジェクトの配置を構成するには、Web の発行 ウィザードを使用して一つ以上の発行 プロファイルを 作成します。 発行プロファ
Archived MSDN and TechNet Blogs 1/21/2020 2 minutes to read MSDN and TechNet blog sites have been retired, and blog content has been migrated and archived here. Archived blogs are grouped alphabetically by the initial letter of the blog name. Blogs and blog posts can be searched by their names, using the Search box at the top of the page. Actively updated blogs have been moved to other blog sites,
Download Completed Project Right now, our web API exposes the database entities to the client. The client receives data that maps directly to your database tables. However, that's not always a good idea. Sometimes you want to change the shape of the data that you send to client. For example, you might want to: Remove circular references (see previous section). Hide particular properties that clien
このブラウザーはサポートされなくなりました。 Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。 ASP.NET Web API のセキュリティ フィルター Badrinarayanan Lakshmiraghavan 認証と承認は、アプリケーション セキュリティの土台です。認証とは、指定された資格情報を検証することでユーザーの ID を確立することです。承認とは、ユーザーが要求した操作の実行を許可するかどうかを決定することです。セキュアな Web API は、要求を認証し、確立された ID を基に要求されたリソースへのアクセスを承認します。 ASP.NET Web API に認証を実装する場合、ASP.NET Web API パイプラインの中で利用可能な拡張ポイントを使用するか、ホストによって提供される
Overview The new security feature design for MVC 5 is based on OWIN authentication middleware. The benefit for it is that security feature can be shared by other components that can be hosted on OWIN. Since the Katana team did a great effort to support the OWIN integrated pipeline in ASP.NET, it can also secure apps hosted on IIS, including ASP.NET MVC, Web API, Web Form. Forms authentication uses
In Visual Studio 2022 17.10 Preview 2, we’ve introduced some UX updates and usability improvements to the Connection Manager. With these updates we provide a more seamless experience when connecting to remote systems and/or debugging failed connections. Please install the latest Preview to try it out. Read on to learn what the Connection ...
by Rick Anderson You've created a web API, but now you want to control access to it. In this series of articles, we'll look at some options for securing a web API from unauthorized users. This series will cover both authentication and authorization. Authentication is knowing the identity of the user. For example, Alice logs in with her username and password, and the server uses the password to aut
March 7, 2014ASP.NET Identity Stripped Bare - MVC Part 1 I’ve been so busy with other projects over the past 6 months that I’ve only just got round to checking out the new ASP.NET Identity Libraries. After writing my own identity/membership library to accomodate for the features missing from the old ASP.NET membership system, I was quite keen to see how ASP.NET Identity stacks up, and whether I ca
This article shows how to set up a Web API service which can support multiple languages and keep it simple. When localizing an application, it is important that all texts or references to language specific resources are not directly referenced in your business methods or code. Only the source or the presentation layer should convert the language keys to localized objects. Code: https://github.com/
メディア ローコード/ノーコードセントラル クラウドネイティブセントラル 連載一覧 @IT Special セミナー ホワイトペーパー クラウド AI IoT アジャイル/DevOps セキュリティ キャリア&スキル Windows 機械学習 eBook その他 Server & Storage HTML5 + UX Smart & Social Coding Edge Java Agile Database Expert Linux & OSS Master of IP Network Security & Trust System Design Test & Tools Insider.NET ブログ AI for エンジニアリング サプライチェーン攻撃 脆弱性管理 OSS管理 Windows 11/365 GitHub その他の特集 @IT アジャイル/DevOps Insider.
いきなり話が飛ぶが、今回から何回かに分けて、IIS(Internet Information Service)について取り上げる。まず今回は、ASP(Active Server Pages)やASP.NETやPHPを使わない、静的なコンテンツだけを使用するWebサーバの構成について取り上げよう。 Windows Server 2012はIISバージョン8(以下IIS8)を装備する。静的コンテンツ用のWebサーバであれば、IIS8をインストールする際に、規定のインストールによって必要なコンポーネントが揃うようになっている。これにより、HTML文書と画像データの提供に加えて、ディレクトリ参照、ログ記録、匿名認証が可能になる。 Webサーバのインストール IIS8のインストール方法はいくつかあるが、ここではWindowsのGUIを使用する方法について解説する。これ以外ではコマンドラインを使用する
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く