Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 741 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
virtual directories with different .net frameworks

#1
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 example, under the default website, can I have one virtual directory targeting the 2.0 framework and a second virtual directory targeting the 1.1 framework?

This is for IIS 6, thanks!
Reply

#2
You are not saying which version of IIS you are using, but for 6.0 and up, just assign them to different application pools, and set the pools to use the right version of .Net.
Reply

#3
You have to create an "application" for both of the virtual directories, and then you'd assign their ASP.NET version using the ASP.NET tab under web site properties.

Also, as @sunny mentioned, you'd need to have two different application pools, and each virtual directory would have to be pointed to a different application pool. Because different versions of ASP.NET cannot run within the same application pool.
Reply

#4
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.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through