Reputation
13,000
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 21 45
Impact
~1.2m people reached

Jan
26
comment IIS install failed because “the server that you specified requires a restart” constant loop
@BWHazel That sounds good. Thanks for the update. All the best with it.
Jan
22
comment IIS 7.5 (Express) applicationhost.config: Can a virtualDirectory's physicalPath be a relative path?
@UweKeim You're right, this does work with the current version(s) of IIS. IIS 10 supports variables in the physicalPath now. Note that %IIS_SITES_HOME% is for IIS Express. That variable doesn't exist in the full version of IIS. However, other system variables do work.
Dec
10
comment Is it possible to change url rewrites on IIS7 without restarting the app?
@getsetcode. You're exactly right. That changed with one of the updates of URL Rewrite. Even global level changes cause an appdomain recycle now, and what's worse is that it causes it for the whole server. I do need to find out when it changed and why, but for now I can confirm that what you're seeing is the case now. Hopefully there will be an update that reverts that behavior back to what it was, making it safe to make changes at the server level without the fear of AppDomain recycles.
Nov
23
comment Will changing applicationHost.config cause IIS7 restart?
It's too bad because URL Rewrite is so elegant and powerful. But you're right that the appdomain restart doesn't work well for frequent rule changes.
Nov
18
comment Zero downtime uploads / Rollback in IIS
@kavun Yes, there is truth to that. At some version update in the last few years URL Rewrite rules at the global level started to cause appdomain recycles for all sites. That didn't used to be the case. So if you have ASP.NET sites on the same server then there could be an impact. However, if you have a dedicated ARR server just for this then the penalty for an appdomain recycle is minimal and you can still use a good solution like this.
Nov
18
comment Will changing applicationHost.config cause IIS7 restart?
@RichardHauer At some point URL Rewrite started causing appdomain recycles at the server level too. I noticed the shift a few years ago but I haven't track down when it switched. Originally that didn't occur with rule changes at the global level. So that is a bummer when it comes to making changes to global rewrite rules. They now do cause an app domain recycle on all sites.
Oct
12
comment What's the meaning of '@' in a DNS zone file?
Yeah, much of that is up to the implementation of the DNS tool. You'll see the @ when you work with the DNS files directly, but you'll rarely see it in the various DNS tools. The DNS tools try to simplify the UI. From your messages it sounds like you have it working one way but not another so I recommend going with the way that it does work. DNS tools are really up to the implementation of the tool, and even DNS servers may not implement this the same way according to specs.
Oct
12
comment What's the meaning of '@' in a DNS zone file?
@DanielSaner The part to put before the IN is the prefix before mydomain.com. So if you put mydomain.com, that really means mydomain.com.mydomain.com. So that's why the @ is an important character which translates simple to mydomain.com.
Oct
10
comment UnauthorizedAccessException in ASP.NET application after changing application pool identity
To troubleshoot this you may need to step through your code, or narrow it down by commenting out code until you determine the issue. If it works with a static page then it sounds like the issue is code related and not the IIS configuration. You can also test with a simple ASP.NET page. Session state should default to InProc if it's not already set. Are you sure you're not using StateServer? You can manage it using IIS Manager at the site level. There is a Session State node as long as you have ASP.NET installed.
Oct
6
comment UnauthorizedAccessException in ASP.NET application after changing application pool identity
That sounds like progress. Your error message about the 'port' seems like it could be a web service call from your application. Do you have anything that needs to make a call and could time out? For permissions, it should be on the disk of the site path. You can right-click on the site in IIS and click Edit Permissions. Also check your anonymous user. That also needs to have permissions on disk (more so in IIS6)
Oct
6
comment Difference between application and virtual directory
@WebUser. It's probably that your custom identity needs to be added to the IIS_WPG group. That was a requirement in IIS6. I replied to your other post too.
Oct
5
comment Difference between application and virtual directory
@WebUser It's ok to have them in the same app pool, and since they are separate applications in the app pool, the session state will be separate and isolated from each other. However, I recommend using a separate app pool anyway. If something does fail in one, you don't have to take both down to recycle or fix the other. And you'll have more flexibility to lock down the NTFS permissions to isolate them from from each other.
Aug
28
comment IIS 7.5 (Express) applicationhost.config: Can a virtualDirectory's physicalPath be a relative path?
Relative paths aren't supported with the current versions of IIS, unfortunately, so the cleanest solution is to use the same path on each machine. If you must have different paths on different machines (I assume dev machines) then you can try an environment variable. Create a system environment variable so that it's available to IIS and use that for the root of the path on the individual systems.
Jul
19
comment How to assign permissions to ApplicationPoolIdentity account
Hi @Sam. Sure, I updated to make it more clear.
Jun
12
comment Outbound URL Rewrite rule causes 500 server error on IIS7.0
@Peretz, that could be the same error. Your browser may not show the sub status, so it may only show the 500 error. But it could be any number of other causes too. Turning off compression and testing is a good start.
Jan
28
comment IIS7 Session ID rotating with Classic ASP
@yuben. ARR with stick sessions should work. Just make sure that you don't have web gardens enabled. And your users are required to use cookies. If your users are picking up random sessions than it may be related to caching. Sometimes pages with dynamic content can be cached, so you should look into caching that may be causing that. Under heavy load there is a greater chance that the page was just cached by another user.
Jul
18
comment Where is ASP.NET Server Log File is Located?
@Zafar. Error status codes are logged (e.g. 500) but that only tells you that an error occured. It doesn't provide further info. Details would need to be found in Event Viewer. Consider an error logging framework like ELHAM or Log2Net for the best error logging and notifications.
Jan
31
comment Dynamically remove iptables policy by IP address
That is it exactly! I also had to add IFS=$'\n'; to the beginning, I assume because my command shell default splits by spaces instead of line breaks. I do have the risk of race conditions so that and being fast make this the perfect solution.
Jan
31
comment Dynamically remove iptables policy by IP address
Thanks so much @ricksebak.
Jan
30
comment Dynamically remove iptables policy by IP address
That looks perfect. I just need to learn the syntax to auto-generate the command using awk so that I can actually carry out the delete in the same command. Your example actually gets the rule numbers which is just what I need. I'm heading into a meeting but I'll research that next.