System.Security.SecurityException when writing to Event Log

I’m working on trying to port an ASP.NET app from Server 2003 (and IIS6) to Server 2008 (IIS7). When I try and visit the page on the browser I get this: Server Error in ‘/’ Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this … Read more

Difference between and ?

Every time I have to add a handler or module for ASP.NET with IIS7, the instructions always tell me to incorporate it into two sections: system.web and system.webserver. <system.web> <httpHandlers> </httpHandlers> <httpModules> </httpModules> </system.web> And this: <system.webServer> <modules> </modules> <handlers> </handlers> </system.webServer> What is the difference between these two sections? In addition, if I don’t … Read more

IIS7 deployment – duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section

On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error. There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section defined. Commenting off the offending lines didn’t help either. Any pointers on what I need to do or look at? 15 Answers … Read more

How do I resolve “HTTP Error 500.19 – Internal Server Error” on IIS7.0 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions about professional server or networking-related infrastructure administration on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question What causes this error, how can I fix … Read more

Add IIS 7 AppPool Identities as SQL Server Logons

I’m running an IIS 7 Website with an AppPool of Integrated Pipeline Mode. The AppPools does NOT run under NetworkService, etc.. identity (by purpose), but uses its own AppPool Identitiy (IIS AppPool\MyAppPool). This is a so called service account or virtual account. (a user account, which is not a full account…) I’d like to give … Read more

Using Custom Domains With IIS Express

Traditionally I use custom domains with my localhost development server. Something along the lines of: dev.example.com dev.api.example.com This has provided me a ton of flexibility when working with external APIs such as Facebook. This has worked great in the past with the built-in Visual Studio Development Server because all I needed to do was add … Read more