iis
Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
UPDATE: This method is generally used in situations where you have relative paths in your project so that links (image, href, css, etc) work on your development environment (where the VS web server inserts a virtual path), as well as your production environment that may or may not have that same virtual path. The simpler way to handle this situation is to change the virtual path in your development environment. To do this, click on your web site project and look in the properties dialog. You should see a Virtual Path setting.
Change IIS ASP.NET Framework Version Programatically
I searched a good deal for a simple and easy way to change the target ASP.NET framework version for a Virtual Directory in IIS. To manually do this, you would normally open IIS and right-click the Virtual Directory you wanted to configure settings for. Then select Properties and you would be presented with a dialog like this:

To configure this setting programatically, you can use the application:
aspnet_regiis.exe
Popular Articles
Last viewed:
- Launch URL in Default Browser using C#
- Clustered Index vs. Non-Clustered Index in SQL Server
- Get the list of ODBC data source names programatically using C#
- How to back up windows with Bacula
- C# Download File with Progress Bar
- Windows Server 2003 Configure RRAS (Routing and Remote Access Service) Site to Site VPN

Recent comments
14 hours 47 min ago
1 day 14 hours ago
3 days 15 hours ago
4 days 5 hours ago
4 days 15 hours ago
4 days 21 hours ago
5 days 1 hour ago
1 week 22 hours ago
1 week 1 day ago
1 week 4 days ago