Can't find IIS AppPool Identity - iis

I have a Win 2008 R2 Enterprise machine that is running fine several websites each one with its own app pool.
I have no troubles giving permissions (using windows GUI) to IIS AppPool\A, IIS AppPool\B, etc... But today I have created one more app pool "C" and I can't find it in the GUI nor using icacls command. I'm trying to give permissions in a folder to IIS AppPool\C but it says it can't find! I'm including built-in security principals in the search and if I type any of the existing app pool identities windows finds then Ok. The problem is just with this new one.
Does anyone knows what is going on?
I don't know if it is reladed but the only change made to this server was to enable .net 3.5 WCF Activation for http and non-http. After enabling this, I got error in all my .net 4 sites and fixed by running aspnet_regiis.exe /iru as described here http://devonenote.com/2010/06/could-not-load-type-system-servicemodel-activation-httpmodule .

Turns out you need to start the associated IIS application for the first time before you can see your application pool in the windows GUI!

Related

Page keeps loading forever

Im using IIS 8.5 on Windows Server 2012 R2 so I add my Web Api but when I try to view the site it stays in a loading state like this:
Do not show any message or error just stays loading, I think that i miss some configuration or feature in my IIS but I don't know which one.
Edit: I use .Net framework, it is a REST .net web api like this reference, the IIS have installed .Net versions 3.5 and 4.5, it's IIS not the express and the default IIS website runs fine.
I would really appreciate any help.
Try to reduce the timeout settings to a minimum level, say 10 seconds.
See if it throws a Timeout error.
Without much information from your side its hard to judge.
Perhaps it could be an external service you are trying to access(Web service) or a DB connection?
Please check if the application pool you assigned to your solutions runs under the correct version of .net framework and in integrated mode. I had similar issues when trying to run an mvc app in classic mode. Check this out.
EDIT 1 - Reconfiguring IIS
If problems persists then try the ASP.NET IIS Registration tool. Execute the followig command as administrator:
aspnet_regiis -i
At the end of this post the different locations for aspnet_regiis are described. You should select a .NET Framework version corresponding to that of your project, run aspnet_regiis and assign the proper application pool to your app.

HTTP Error 404.17 - Not Found (.Net 4)

I've just got a new server setup on Windows 2008 Web edition. I'm trying to set the first asp.net 4 application up on it but am having nothing but problems.
The latest is that I'm getting the 404.17 error, which says "the requested content appears to be script and will not be served by the static file handler.".
I've done a lot of research on google but most suggestions seem to be to run aspnet_regiis -i to install asp.net 4. I've done this several times both on the Framework and Framework64 folders, but with no success.
I tried changing from the default application pool to a .net4 application pool, which appeared to work at first and I instead got a server error to do with permissions. I fixed that, and immediately the 404.17 error returned.
Other suggestions I've read say to go into the "turn windows features on and off" and make sure .net 4 is selected there under IIS. However on this server clicking "turn windows features on and off" takes me to the standard windows 2008 server manager. I click "add features" there, and only ".NET Framework 3.0 Features (Installed)" is listed and selected. .NET 4 isn't shown there, yet it is selectable through the application pools.
What else can I try to get the website running as I'm at a complete loss now. Its annoying because my old server was easy to manage - I did it all through the server itself without a control panel (Windows 2003), now on my new server I have to manage most of it through Plesk because there is no dns.
Any help would be much appreciated.
I too had the same problem but solved it with simple solution. My program was in framework 4.0 but in application pool was mapped to framework 2.0.
Just changed the frame work in application pool to 4.0.
It worked.
I've finally figured out the problem, and it was to do with Plesk itself.
After delving through some of the thousands of links throughout the plesk control panel I found a page for "Website Scripting and Security". Under there it was set to .NET 2.0. However, even though I'd installed .NET 4 on the server, Plesk didn't know about it. Although the application pool I'd set the website to run under through IIS was .NET 4, it still wouldn't work for some reason.
I then found another page under "tools and settings" for server components, and on that page is a refresh button. Hit that and it suddenly realised that .NET 4 was installed, went back to the website scripting and security page, selected .NET 4, and hey presto, I got a server error (never have I been so glad to see a server error).
I then just had to give the application pool identity read access to the web folder, and the website worked.
I wish I'd paid an extra £15 per month for Windows 2008 Standard edition now so I could manage it all manually without Plesk.
Ensure that you are running this application under a Virtual Directory, also ensure that your IIS has ASP, ASP.Net, ISAPI Extensions And Filters, Static Content installed.
Change the .net framework from 'plesk' panel:
go to Domains
select then domain
Go to 'Domain and Websites & Domains'
Hide Advanced Operations
Go to 'Asp.net Settings'
Go to 'Change Version'
select 4.0
If you don't have the 4.0 option then you must install the framework on your server first.

Lightswitch IIS 7.5 Deployment - GetAuthenticationInfo

I am having an absolute nightmare with the "Load operation failed for query 'GetAuthenticationInfo'. [HttpWebRequest_WebException_RemoteServer]" error when deploying my applications to a new server.
The apps I have are working and have been running for a while on another server. I have now got to move them to a new one, and I cannot get anything to work!
I have been through all of the posts on this error and have tried almost everything to get this deployment working.
Old Server: Win 2008 R2
New Server: Win 2008 R2
At first I thought it had something to do with Devexpress Xtra reports but I have disproved that by creating a bare bones app with one screen and one table and no extentions. And it still fails. I have also tried this with every combination of authentication. I have also deployed this test app to the old server and it all works fine, so I am sure there must be something wrong with my IIS settings. Visual studio is publishing the app with no errors. I only get it on runtime. I have tried to use fiddler to get a clue as to what is going on but I cant find anything useful.
I have also tried:
• removing and adding the web server role on the new server to try and reset configurations.
• Deploying several known working LS applications
• Every combination of Authentication on the IIS server for the app, website and server level
• Tried syncing the IIS configuration with the old server using MSdeploy.exe cmd line
• Repairing the .NET Framework 4 Client prile & extended
• restarting the server
• Installing updates
• re installing web deploy
• Made sure the application pool was .net v4
• made sure the application pool was integrated
• changed the authentication on app pool user to a domain account with known admin rights to the server (and have now put back to apppool identity)
• Creating a new website and deploying the app into there
• restarting web services
• Installing Lightswitch 2012 Server pre-requisites
None of these have worked at all.
The only way I can get my deployed application to load into a screen is to buid as a web type and change the url from
http://server/otm
to
http://server/otm/default.htm?IsLaunchedByVS=True&AuthenticationType=None
Something which I think it could be related to is a faulty installation of "Lightswitch Server Configuration" which installed using the Web Platform Installer 4.5
This however is not showing in the Add/Remove programs list, so I cannot uninstall it to see if it is messing things up. I cant seem to uninstall it from the WPI and i also cant find a direct download link from Microsoft.
I am completley out of ideas and in big trouble as these are production applications and the old serve will be shut down within the next two weeks. Any help would be appreciated!
.net framework 4.5 try running the app on .net framework 4 I had the issue and spent 40 hours on it .net 4 framework works

SignalR 0.5.3 and IIS 7.5

I have an application already deployed on a couple of customers utilizing signalr for communication. It works on windows 2003 server with IIS 6.0 with the mappings configuration, also works on win 7 and iis express. But for windows 2008 R2 with IIS 7.5 the hubs file although it's served, the signalr.hub with the list of server methods is NOT included in the script therefore clients can't connect to the hub.
Help is appreciated!!!
Ok, so here is what I found. We have a setup project that installs our product. I haven't looked into the process in detail but what it does is: creates a website under iis default, then assigns an app-pool that runs with Frw 4.0 and I think it also registers the framework at some point of the process. So, for some reason the javascript hub file was being generated without the actual definition of the hub. After so many teaks I decided to remove the website from iis and added it back manually and it got fixed. So, I don't know what setting was impeding signalr to initiate the hub but that was how I solved it.
Thanks

IIS7.5 Debug vs Published permissions

I'm running Visual Studio 2010 and IIS 7.5
My site accesses a specified servers hardware for some statistical analysis.
When I debug my site in Visual Studio, I can access other servers hardware information with now issue. When I publish the site to IIS running as ASP.Net 4.0 appPool because the site is written under the 4.0 framework, the hardware retrieval fails. (note: when I run the site and analyze the local machine hardware, it works perfectly... the problem lies in analyzing another machine on the network.)
My question is, What is the difference in permissions a site is running under when debugging in Visual Studio in comparison to a published site in IIS 7.5?
Things I've tried...
Changing the app pool identity to every possible built in option, and my own domain profile, which is local admin on the machine I'm trying to retrieve hardware info about.
Changing the user that access the file directory of the website.
Changing app pools period. (The site has to run under .net 4.0, or else it barks out bad things).
I'm thinking I may need to install the site directly on the server that's being analyzed, but I find it odd that I can get all the data from other machine when I'm debugging. Any insight someone could bring would be greatly appreciated. Thanks!!
This answer is, in some cases, you have to add the appPool identity running the site to the "Performance Monitoring" group for the local machine in order to allow an ASP.NET site access the server's local hardware resources...

Resources