virtual directories with different .net frameworks

前端 未结 3 823
离开以前
离开以前 2021-01-15 04:22

Is it possible to have two virtual directories under the same website in IIS but have the virtual directories be using different versions of the .net framework?

For

3条回答
  •  我在风中等你
    2021-01-15 04:43

    It depends if you mark them as "applications". Application virtual directories can use different framework. Make sure you associate them to different application pools. Never mix two .NET framework versions in one application pool.

    One important note: if you create a virtual directory as an application, you don't share session state and other application related objects. Also Server.MapPath("~") and other ServerURL related methods an properties will point to the physical directory of the virtual directory and not to the main root.

提交回复
热议问题