Alas this was not to be. When we browsed to our site, we were greeted with an error "Can't write to output file ... The directory name is invalid." We checked and the asp.net network_service accounts both had full access to the directory mentioned in the error message. After some digging, it turns out that the network_service wasn't having an issue with the named directory. What it really had a problem with was the system defined TEMP and TMP environment variables. They were pointing to some erroneous location that didn't even exist. So the fix is like this.
- Open the Advanced Tab in "System Properties"
- Click "Environment Variables"
- Under "System variables" check out TMP and TEMP. These should point to a proper location. You can either modify them to point to an existing directory or create the directory that they point to.
- Configure security so that Network_service has full control on those locations.
- Restart IIS
No comments:
Post a Comment