-
Notifications
You must be signed in to change notification settings - Fork 311
Unnecessary access request to drive root #464
Comments
Hmm, I'm not reproducing this on Win10. Can you give more details about your custom app pool identity setup? |
Oh, and what version of DNX and tooling you're using? |
I'm also getting this is on 2012 R2 with custom app pool identity using beta8 x64 and tooling. I also have an application setup in a virtual directory using the .Configure1(..) workaround (not sure if that has anything to do with it.) @Tratcher, make sure the I'd you use is not an admin. |
The build is using runtime version The tooling I have on my build computer is Beta 8. However, the web server does not have any tooling installed. This is how I prepared my server:
Unfortunately I cannot give any specific information about the custom identity; it is created automatically using Plesk. However, I might try to answer your questions if you would like me to check and report some specific info about the user. By the way, the website I am trying to run is at https://github.com/csunali/WebApplication2ForKestrel |
Additionally, I don't have any virtual directories or |
As @recalde stated, please make sure that the identity you use is not an administrator on your Windows 10 setup. In addition to administrators, having it as a regular user would also allow him to access So, please setup a user that has minimum access rights and does not have permission to any other folder than That is how we setup our users, since we provide hosting services and we don't want people to access folders outside their websites. |
@csunali, @recalde did you tried updating to rc1? Does the issue still reproduce? |
Closing this, if this issue still exists please ping me. |
@pakrym, I am having the same problem as @csunali in a similar configuration: Windows 2012 Server using Running web.cmd directly starts kestrel without problems. Running under the custom identity fails unless I give it write permissions to the root folder where the application is located (in my case |
@pakrym, I can confirm the same problem (Windows 2012 R2 Server, plesk, custom identity) using |
@pakrym, Sorry, was not able to respond to you earlier. Yes, as other people also stated, the problem still occurs. It is also very easy for you to test it. Forget about Plesk and just use a custom identity in your IIS application pool. Make sure that the custom identity does not have access to drive C and is not in Administrators role. |
I was able to reproduce the issue and have some details.
This problem will go away after switching to |
@pakrym, Please excuse my ignorance. What do you mean by switching to P.S.: Are those monikers changing again with the RC2? |
I mean |
Sounds great. Do you have an idea when should we expect that change? I mean, I guess you are already working on it but is it expected to be released along with the RC2 release? |
Yep, RC2 is exactly when the switch happens. |
Thanks for the confirmation (and the information)! I have one last question. I am currently already using RC2 dev bits to build non-production test applications. Does it actually mean that I am already using that "dotnet" thing instead of the dnx thing? I guess no because of the VS ASP.NET Tooling being RC1, right? |
No, you are still using |
Thank you again. Very much looking forward for the final RC2 release. Cheers! |
@pakrym Is there an issue where I can follow up with the new implementation? E.g. |
Not an issue per-se but there is a repo https://github.com/dotnet/cli/ |
Having an Asp.Net 5 application hosted on Windows Server 2012 R2 (possibly others?) requires one to assign read access to drive root
C:\
in some cases.The issue occurs when the IIS application pool is set to use a custom user.
ApplicationPoolIdentity
does not have such a problem.Assigning
full access
toapproot
,wwwroot
andlogs
folders does not fix the issue.The IIS Platform Handler running has version 1.2.
The
stdout
file contains an error stating that the access was denied but does not provide any details on to which path.A screenshot showing access request to the drive root
C:\
can be seen below:There seems to be other people having the same issue which we have been discussing on issue #449
The text was updated successfully, but these errors were encountered: