.net - IIS Express on Windows 8: error with user NT AUTHORITY\SYSTEM -
i have windows service (.net) runs batch file start iis express. windows service runs scheme user.
batch file
cd "c:\program files (x86)\iis express" iisexpress /config:"c:\...\iis express config\x64_applicationhost.config"
with os <= win7: good. iis express works perfectly.
now same windows service + iis express must run on win 8.1 , win 2012 server. windows service fine, can run batch file , iis express starts. when browse .net web application error:
the current identity (nt authority\system) not have write access 'c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files'
the window service runs batch file follows:
dim processinfo processstartinfo processinfo = new processstartinfo("c:\...\iisexpressstart.bat") processinfo.createnowindow = false process.start(processinfo)
my question is: how can run iis express network service batch file? depends on how start iis express or on iis express configuration? idea?
it seems iis express inherits service's user. changing service's user not option.
the problem caused missing aspnet_regiis:
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_regiis -ga "nt authority\system"
.net windows batch-file windows-services iis-express
No comments:
Post a Comment