application-pool

RSACryptoServiceProvider CryptographicException System Cannot Find the File Specified under ASP.NET

懵懂的女人 提交于 2019-11-30 06:43:17
I have an application which is making use of the RSACryptoServiceProvider to decrypt some data using a known private key (stored in a variable). When the IIS Application Pool is configured to use Network Service, everything runs fine. However, when we configure the IIS Application Pool to run the code under a different Identity, we get the following: System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) at System.Security.Cryptography

Create SQL Server Login for IIS APPPOOL - IIS and SQL Server on different machines

六月ゝ 毕业季﹏ 提交于 2019-11-30 06:42:37
I've searched thoroughly- apologies in advance if I am missing an obvious answer. Followed the recommendations at link below and the solution did not work. The solution also does not indicate whether it applies to a production webserver running IIS and SQL Server on separate computers. Add IIS 7 AppPool Identities as SQL Server Logons Microsoft link below does not provide specific syntax for creating a SQL Server Windows Login: http://www.iis.net/learn/manage/configuring-security/application-pool-identities Our goal is to securely deploy a ASP.NET 4.0 web application to the public on a Server

How to check app pool last recycled

纵然是瞬间 提交于 2019-11-30 06:05:46
is it possible to check when i recycled the app pool last time, i want to check the date when my app pool was last recycled, is there anything in IIS i can get this info. If logging on recycles is turned on you can see this in the Event Viewer (System Log). If it's not you can use PerfMon counters to see Process-Elapsed Time on the W3WP.exe representing your application pool (which will be the number of seconds since the last recycle) You could easily find the latest recycle time by using this powershell snippet: (Get-Process -Id <ProcessId>).StartTime Therefore find the process id of your web

User rights needed for IIS 7.5 application pool user (domain user, not the AppPoolIdentity)

谁都会走 提交于 2019-11-30 05:41:49
We have an active directory domain (let's call it foodomain ) and a domain user account ( foodomain\fooAppPoolUser ) used for the IIS application pool identity. We want to run the app pool under this user account and not under Network Service or the new AppPoolIdentity as we have to access SQL server and have multiple applications on IIS (with own app pools) accessing different databases. The problem is that I can't find a clear HOW-TO explaining, which user rights have to be set for this user account and how IIS has to be setup so that this will work. First I got errors (unfortunately I can't

How do I set the .NET Framework Version when using New-WebAppPool?

旧城冷巷雨未停 提交于 2019-11-30 04:37:05
I'm looking to see how I can use the IIS PowerShell Cmdlet New-WebAppPool to specify the version of the .NET Framework to use. Currently, it defaults to v2.0, however I am using MVC, and this will not work because that's a v4.0 feature. We really want each site to have its own Application Pool, and it seems we must create those pools manually due to the inability to configure them via script. Is there any way to automate this? I'm afraid the answer is going to be "you can't," because the documentation doesn't appear to offer any parameters for setting it, and Google is turning up squat; it's

How to tell why an IIS application pool is recycled

你。 提交于 2019-11-30 03:19:52
Background: I've deployed an ASP.NET MVC 3 app that works on my machine to a shared hosting provider and am discovering some problems that appear to be related to the application pool being recycled. The host has configured recycling to occur under any of these circumstances: Memory usage exceeds 200MB CPU usage exceeds 75% (presumably over a sustained period) 20 minutes of idle time The restrictions are more relaxed on my development machine so I wasn't seeing recycling like this during development. I don't have admin access to the shared hosting box (understandably) so I can't read the event

Can you modify the web.config and NOT restart the ASP.NET application? [duplicate]

时光毁灭记忆、已成空白 提交于 2019-11-29 07:37:31
Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified? Was just thinking about uptime. Thanks. SLaks Yes, you can; see this answer . However, it is not a good idea. Until ASP.Net restarts the AppDomain, it will not look at web.config . If you change web.config , your changes will have no effect until the AppDomain is restarted. You can create an external settings file and then reference it in your web.config. You will need to change the attribute "restartOnExternalChanges" to false in your machine.config file. See: http://msdn.microsoft.com/en-us

Create SQL Server Login for IIS APPPOOL - IIS and SQL Server on different machines

旧城冷巷雨未停 提交于 2019-11-29 06:21:13
问题 I've searched thoroughly- apologies in advance if I am missing an obvious answer. Followed the recommendations at link below and the solution did not work. The solution also does not indicate whether it applies to a production webserver running IIS and SQL Server on separate computers. Add IIS 7 AppPool Identities as SQL Server Logons Microsoft link below does not provide specific syntax for creating a SQL Server Windows Login: http://www.iis.net/learn/manage/configuring-security/application

How to check app pool last recycled

半城伤御伤魂 提交于 2019-11-29 04:44:56
问题 is it possible to check when i recycled the app pool last time, i want to check the date when my app pool was last recycled, is there anything in IIS i can get this info. 回答1: If logging on recycles is turned on you can see this in the Event Viewer (System Log). If it's not you can use PerfMon counters to see Process-Elapsed Time on the W3WP.exe representing your application pool (which will be the number of seconds since the last recycle) 回答2: You could easily find the latest recycle time by

“Entry has already been added” - Two Separate App Pools

江枫思渺然 提交于 2019-11-28 11:23:21
I am creating a test version of an existing production site. A virtual web service application exists inside the site - and the two web configs have the same connection string. There are no "clear" tags in the production web configs and the site and the web service co-exist merrily on two separate app pools. On the test site however, every time I browse to the webservice URL I receive the Configuration Error "The entry 'ConnectionString' has already been added." The test site and corresponding virtual application use their own separate app pools. Any ideas? Thanks Jim Web.config inheritance