Archives for Web Applications - Page 5
Load balancing in IIS
Earlier versions of IIS ( and earlier) worked with Windows Load Balancer (WLB). For later versions, Microsoft offers an IIS extension called ARR (Application Request Router). With Azure hosted sites,…
MetadataException: Unable to load the specified metadata resource
When you move your data layer to another project or another folder - you may encounter the following exception MetadataException: Unable to load the specified metadata resource The Solution: The…
MVC apps–set as start page
Of course, MVC does not have the concept of a web page – it is more a web view. The view cannot be accessed directly (unlike a page) – and…
Prevent URI (XSS) rewrites in asp.net
The method is well suited to check for any malformed URLs. It can be used to validate the address and the entire query newUrl = ; if (!(newUrl, )) {…
IIS–websites versus app pools
A lot of people tend to use these interchangeably. From IIS’s perspective, a website is nothing more than a physical folder (and possibly virtual directories as well). That is -…
The directory ‘/App_GlobalResources/’ is not allowed because the application is precompiled
Publishing an website gives the following error.: The directory '/App_GlobalResources/' is not allowed because the application is precompiled. All you need to do, if your site is Precompiled (which will…
Windows (AD) Authentication and the Authorize Attribute–Login Popup
The attribute kept throwing a 'login' popup even though the user was logged in via windows problem is that the attribute uses the following line to determine if a user…
ROLES for a typical web application
Roles help define WHICH USERS can do WHAT. So – an ADMIN is a super ROLE – wherein all users belonging this ROLE, can do things that regular users cannot.…
Custom authentication filter in ASP.NET MVC
First, I approached this by trying to implement the IAuthorizationFilter interface. THis provides an OnAuthorization method that can be implemented for your custom authentication (see example below). However, as I…
IE compatibility testing–Internet explorer
I tried various tools including IE developer tools (in IE 11) – and IE Tester. These are all desktop based – and require software downloads and local testing. Someone pointed…