网站不会使用ApplicationPoolIdentity开始的地方,使用网络服务,只有当:" HTTP错误503服务不可用"。 [英] Site wont start on local using ApplicationPoolIdentity, only when using NetworkService: "HTTP Error 503. The service is unavailable."

查看:656
本文介绍了网站不会使用ApplicationPoolIdentity开始的地方,使用网络服务,只有当:" HTTP错误503服务不可用"。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始得到来自社会一些帮助的希望了这个问题,但在充分解释和详细说明我的问题的过程中,似乎我已经设法解决这个问题,在什么似乎是一个合法的非hackish的方式(请告诉我,如果我错了),所以我要在这里把它在希望它能帮助别人。

I started this question in the hopes of getting some help from the community, but in the process of fully explaining and detailing my problem it seems I've managed to solve it, in what seems to be a legit non hackish way (please tell me if I'm wrong), so I'm going to keep it here in the hopes that it will help others.

问题

我在我升级的Visual Studio .NET 2010 4 MVC4网站到Visual Studio 2013 .NET 4.5 MVC5的过程。该网站使用Visual Studio IIS时运行正常,但是当我转过来到Windows IIS和设置用户ApplicationPoolIdentity并启动该网站,我得到一个网页说:HTTP错误503服务不可用,而ApplicationPool被停止。

I'm in the process of upgrading my Visual Studio 2010 .NET 4 MVC4 site to Visual Studio 2013 .NET 4.5 MVC5. The site runs fine when using the Visual Studio IIS, but when I switch it over to Windows IIS and set the user to ApplicationPoolIdentity and start the site, I get a page saying "HTTP Error 503. The service is unavailable.", and the ApplicationPool gets stopped.

我发现一对夫妇的要求StackOverflow上同样的事情的问题,但他们都没有一个可以接受的解决方案。答案之一是右键单击该程序池> AdvancedSettings> LoadUserProfile = FALSE。这不工作,我用它去一段时间,但我只是发现它与导致加载PhantomJS外部脚本的一个问题。我的AppPoolUser设置为网络服务和设置LoadUserProfile为FALSE仍然打破了PhantomJS,然后我设置LoadUserProfile为TRUE测试这和它的工作。

I've found a couple of questions asking the same thing on StackOverflow but none of them have an acceptable solution. One answer was to right click the AppPool > AdvancedSettings > LoadUserProfile = FALSE. This does work and I went with it for a while but I've just found it caused a problem with PhantomJS loading external scripts. I tested this by setting the AppPoolUser to NetworkService and setting LoadUserProfile to FALSE which still broke PhantomJS, and then I set LoadUserProfile to TRUE and it worked.

所以我使用网络服务运行网站,这一切好了,但我希望能够通过我完成这个升级,这样我可以在生产中使用ApplicationPoolIdentity的时候使用ApplicationPoolIdentity。

So I'm running the site using NetworkService and that's all good for now, but I want to be able to use ApplicationPoolIdentity by the time I finish this upgrade so that I can use ApplicationPoolIdentity on the production.

我已经签出事件查看器,我得到了很多的警告,告诉我,文件不能从

I've checked out EventViewer and I get a lot of warnings telling me that files can't be copied from

\\?\C:\Users\Default\AppData\Roaming\Microsoft\Templates\LiveContent\Managed\SmartArt 

 \\?\C:\Users\TEMP.IIS APPPOOL.004\AppData\Roaming\Microsoft\Templates\LiveContent\Managed\SmartArt Graphics\1033\TC101793893[[fn=Tabbed Arc]].glox.

我创建了一个名为APPPOOL.004文件夹,然后就抱怨APPPOOL.005,然后APPPOOL.006,它只是继续前进。

I created a folder called APPPOOL.004, it then complained about APPPOOL.005, then APPPOOL.006, and it just kept going.

SOLUTION

我然后给了ApplicationPoolIdentity完全权限到C:\\ Users文件夹,重新启动该网站和一切工作,配置文件必须被正确创建,我的网站的作品,因为它应该。然后我删除访问C:\\用户从ApplicationPoolIdentity,该网站仍然有效,因为它应该

I then gave ApplicationPoolIdentity full permissions to the C:\Users folder, started the site again and everything worked, the profile must have been created properly, and my site works as it should. I then removed access to C:\Users from ApplicationPoolIdentity and the site still works as it should.

推荐答案

我给ApplicationPoolIdentity完全权限到C:\\ Users文件夹,开始了现场和一切工作,配置文件必须被正确创建,和我的网站的工作原理这应该。然后我删除访问C:\\用户从ApplicationPoolIdentity,该网站仍然有效,因为它应该

I gave ApplicationPoolIdentity full permissions to the C:\Users folder, started the site and everything worked, the profile must have been created properly, and my site works as it should. I then removed access to C:\Users from ApplicationPoolIdentity and the site still works as it should.

请告诉我,如果我可以在给予ApplicationPoolIdentity暂时全面进入到C造成任何额外的安全性问题:\\用户

Please tell me if I may have caused any extra security issues in giving ApplicationPoolIdentity temporary full access to C:\Users

这篇关于网站不会使用ApplicationPoolIdentity开始的地方,使用网络服务,只有当:" HTTP错误503服务不可用"。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆