Edventures in Normalcy

ApplicationPoolIdentity user in Users & IIS_IUSRS

Posted by Rose Bush on May 19th, 2015

ApplicationPoolIdentity is assigned membership of the Users group as well as the IIS_IUSRS group.” Source: http://stackoverflow.com/questions/5437723/iis-apppoolidentity-and-file-system-write-access-permissions

I often need to add Users in particular to give the permissions needed.

To resolve the error of HTTP Error 400.0 – Bad Request ASP.NET detected invalid characters in the URL , whether you are using Helicon Ape for url rewrites or not, is to make the following registry additions:

This will allow you to continue to use the & character the same as you had in IIS6.

I was getting the error of

RegAsm : error RA0000 : Unable to locate input assembly ‘c:\Windows\System32\Pay
flow_dotNET.dll’ or one of its dependencies.

when following instructions from installing the Payflow_dotNET.dll dll for .NET to use.  As I was running this command:

C:\Windows\System32>c:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe c:\Windows\System32\Payflow_dotNET.dll

There is an issue here, is that the dll, although there, was not all that usable for a 64 bit version of .NET, so I moved the file to

C:\Windows\SysWOW64

and from that folder within a command prompt was able to move forward:

C:\Windows\SysWOW64>c:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe Payflow_dotNET.dll
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.5420
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

Types registered successfully

After fighting with this error for oh, 20 or so minutes, Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.
the end result was to go into the ApplicaitonPool Advanced Settings in IIS and set Load User Profile to True from False:
LoadUserProfileIIS7

Exception Details: System.Web.HttpException: Request is not available in this context

 

http://mvolo.com/iis7-integrated-mode-request-is-not-available-in-this-context-exception-in-applicationstart

 

I agree with the options given:

Change your application code to not use the request context (recommended).
Move the application to Classic mode (NOT recommended).
Change your application code to not use the request context (recommended).
OR:
Move the application to Classic mode (NOT recommended).

You need to install ASP.NET AJAX 1.0 found here: http://www.microsoft.com/en-us/download/details.aspx?id=883

In newer versions of Windows Server and IIS, Windows Server 2008 and forward (Windows Server 2008 RC0 supposedly did include this) and IIS7, IIS7.5 and forward, Server.CreateObject(“MSWC.NextLink”) will not work. The DLL required is not installed into the OS and the line will cause an error. To fix this, you can download the below zip (Originally obtained from http://www.dllbank.com/n/nextlink.dll-download.html):

[download id=”6″ ]

 

Unzip it, in the URL bar of the explorer window you have that the file is in, type in cmd and hit enter, this opens a command prompt in the current folder. Then type in

I was then able to get past the error.  I did test the file using virustotal here.  It has a zero Detection ratio.

 

This error message means you are trying to load the Assemblies likely found in .NET 3.5 Service pack one and the server you are on does not support nor include it.  Easy to fix, download the zip file below, unzip it, create a folder named “bin” sans quotes in your webroot and place the 2 files within the zip into that folder.  That’s it.  I have taken these files from a server I had running the correct version.  As with any download, be cautious and use at your own risk.

Click here for the zip file.

 

Copyright © 2026 Edventures in Normalcy. All rights reserved.