We are having problems migrating our ASP.NET applications to Windows Server 2008 R2 x64 and IIS7.5. The problem is that our ASP.NET applications write log files and these log files are not written. The only way applications write their log files is if I logged on to the server as a local administrator user or if I right-clicked and started IE as “Run as administrator”, none of them is an acceptable solution for us.
Our platform: Windows Server 2008 R2 x64 (UAC is the default) IIS7.5 ASP.NET 4.0 (using Windows authentication and impersonation, as in web.config)
Our application is installed on: D: [application_name] [appnameWebSite] (all .aspx, .dll, etc. files) \ Log (the application is trying to write a log file to this folder)
On the server: Created a new application pool (name: [appname] ,. NET 4.0, managed pipeline mode: classic, identifier: ApplicationPoolIdentity, Load User Profile: False, all other properties are the default values) The created IIS application pointed to D: [ appname] [appnameWebSite] and added it to the new application pool (full level of trust) At the domain user in the local Administrators group
With all the settings and default settings listed above, ASP.NET will not write the log file. The application works fine in the browser, but not the log.txt file.
To try to “fix” these problems, we tried many things: Tried Application Pool setting: Managed pipeline mode: integrated Application pool setting: Identity: NetworkService Application pool setting: Identity: LocalSystem Tried Application Pool setting: Download user profile: True Gave Users fully controls the file system for our application folder structure (I tried the appname folder, tried only the log folder, only tried to use the names in the names, Got IIS AppPool [appname] (corresponding to the new application pool) full control on hell is the file system for our application folder structure (I tried the appname folder, tried only the "Log" folder, only tried to enter the file names and only in the "Name log" folders)
None of these things helped. Again, the application will work just fine, just the log file is not created.
As mentioned above, the only way to create a log file at application startup is if we log in to the server using a local administrator account (which makes sense since he is the superuser), or if we run IE as an administrator and increase privileges.
Any suggestions? Help? Questions?
Thanks!