ASP Security Exception: Same but different
<p>Raking my brain and I have tried many of the "solutions" found online. Basically we are demoing this application from a vendor and the initial install worked fine. The application is actually four different applications. On our Windows server we have our main site, with four applications inside of it for the vendor. All of these were using the default application pool. Everything was working.</p>

<p>They asked us to updated the software and things went to hell. Updating involved deleting all the old files and replacing them with the new ones they sent us and then updating our SQL database. We we finished two of the applications had the error:</p>

<pre><code>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.
</code></pre>

<p>I have found many answers regarding this. Change the Load User Profile to ture, tried that, Unblock all the dll files, tried that. Mess with the trust level, tried that. I have since separated the applications into their own pools (at the advice of the vendor but they seem to have no clue) and after messing with it a ton, I now have three of the applications running, oddly enough one of the ones initially running is the one that is not running. The thing is the application was running initially, all we did was updated the files to newer versions.</p>

<p>My question I guess is where is the System.Web.AspNetHostingPermission called? Is that just a general level Asp application thing? I am pulling out my hair about this and we might just have to tell the vendor to take their product elsewhere if we can't get it running, but I am 99% sure it's a server setup issue. Thing is, I've never dealt with software where the update process is, delete all your files and replace them with the ones in this zip file.</p>

<p>Any thoughts on this. I feel like I have tried most of the obvious solutions but need some deeper thoughts.</p>
