user 'IIS APPPOOL\ASP.NET v4.0' error in IIS7问题的解决方法
2012-05-10 23:30
501 查看
How
to Fix Login failed for user 'IIS APPPOOL\ASP.NET v4.0' error in IIS7
今天用silverlight 4 调用ADO.NET Data Service(使用windows集成身份认证),ADO.NET Data Service在windows7下的iis7.5上;结果出现了如标题这个错误。自己研究多时无果,故google之,发现只有英文解决办法。 错误信息大概如下:Login failed for user 'IIS APPPOOL\ASP.NET v4.0'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception
Details: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.
其实修改iis7.5中应用连接池的相关连接的标识为LocalSystem即可.
以下是英文原文的解决方法
Here's a step-by-step guide to determining your websites Application Pool, then changing its Process Model Idenitty in IIS7:
Open Internet Information Services (IIS) Manger.
In the Connections sidebar, drill down into Default Web Site and click on your website.
Now in the Actions sidebar (on right side), click on Advance
Settings... In the popup box, under General you will see your Application Pool listed for your website (in my case the app pool is: ASP.NET V4.0).
Click Cancel... If you choose, you can change the Application Pool here, but for the sake of this example we just wanted to find out what the website's App Pool was.
Now that we know the Application Pool that is configured for are website, we now want to change the app pool's (Process Model) Identity to 'NetworkService', here's how:
Open Internet Information Services (IIS) Manger.
In the Connections sidebar, click on Application
Pools.
Now right-click on theApplication Pool that your website is using (in this case my site is using the ASP.NET
v4.0 application pool), and select Advanced Settings... from the menu.
In the Advanced Settings pop-up box, locate the Process Model -> Identity section and click on the Application Pool Identity.
In the Application Pool Identity pop-up box, change the Built-in account to NetworkService (or
if you want LocalSystem), then click OK, and
click OK again to save your Advanced Settings changes.
After changing the Application Pool's Identity to NetworkService (or LocalSystem) you should now be able to get your ASP.NET site to run successfully on a IIS7 web server:
下面是一步一步的指导,以确定您的网站应用程序池,然后改变其过程模型Idenitty在IIS7:
打开Internet信息服务(IIS)管理器。
在连接侧边栏,向下钻取到默认Web站点,并点击您的网站上。
现在在操作侧栏(右侧),点击高级设置...在弹出的框中,根据一般你会看到你的应用程序池为您的网站中列出(应用程序池,在我的情况是:ASP.NET V4.0的)。
单击“取消”...如果你选择,你可以在这里更改应用程序池,但为了这个例子,我们只是想找出网站的应用程序池是什么。
现在我们知道是网站配置的应用程序池,我们现在要改变(过程模型)的应用程序池的身份“网络服务”,这里是如何:
打开Internet信息服务(IIS)管理器。
在连接侧边栏,点击“应用程序池。
现在,右键单击您的网站上theApplication池使用(在这种情况下,我的网站使用ASP.NET4.0应用程序池),选择“高级设置...从菜单中。
在弹出的高级设置“框中,找到进程模型 - >身份节和单击应用程序池标识。
在应用程序池标识弹出框,改变内置帐户的NetworkService(或如果您想LocalSystem的),然后单击“确定”,再次单击“确定”保存更改高级设置。
改变网络服务的应用程序池的身份(或本地)之后,你现在应该能够得到您的ASP.NET网站上IIS7 Web服务器成功运行:
相关文章推荐
- “用户 'IIS APPPOOL/Classic .NET AppPool' 登录失败”的解决方法
- 如何设置混合身份验证?— —或 'IIS APPPOOL\ASP.NET v4.0' 登录失败
- mySql问题:The user specified as a definer ('root'@'%') does not exist 解决方法
- asp.net无法获取iis目录的问题解决方法
- asp.net ajax 错误:"sys"未定义问题 解决的方法
- sql 问题 select permission denied on object 'pb_userinfo',database 'Maching',owner'ado' 解决方法
- 关于asp.net[没有相关的源行]错误的解决方法及IIS安装问题
- 关于asp.net[没有相关的源行]错误的解决方法及IIS安装问题
- ASP.NET AJAX 错误:'Sys' 未定义解决方法
- mysql Access denied for user \'root\'@\'localhost\系列问题的解决方法
- ASP.NET-用户'NT AUTHORITY/NETWORK SERVICE' 登录失败的解决方法
- ASP.net中"名称以无效字符开头"问题解决方法
- Asp.Net 应用程序在IIS发布后无法连接oracle数据库问题的解决方法
- IIS打开asp.net 页面,无法找到该页,配置错误allowDefinition='MachineToApplication' 的节时错误解决方法。
- 在asp.net中使用ajax时出现的"'Sys' 未定义"的解决方法
- asp.net部署到IIS常见问题的解决方法
- asp.net无法获取iis目录的问题解决方法
- "ASP.NET Development Server无法开始侦听端口:XXXX"问题的解决方法
- 【ASP.NET 问题】Win7中IIS被防火墙阻止导致外网无法访问的解决方法。
- asp.net连接MYSQL出现Character set 'gbk' is not supported的解决方法