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:
- Find a control in a TemplateField programmatically
- Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
- C# Store/Retrieve File in Database Image Field using ODBC
- C# Free Component to Generate PDF - Convert HTML to PDF
- Ajax - Exception has been thrown by the target of an invocation
- Performance benchmarks for LINQ vs. SqlDataReader, DataSet - LINQ Compiled Queries: Part 2

Recent comments
21 hours 20 min ago
4 days 13 hours ago
1 week 2 days ago
1 week 6 days ago
2 weeks 1 day ago
2 weeks 5 days ago
2 weeks 6 days ago
2 weeks 6 days ago
3 weeks 4 days ago
4 weeks 1 day ago