Recently I started developing a solution in Vs 2008 , after creating all the pages and controls I started building the solution and I came up with following error
Server Error in ‘/’ Application.
System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed
After so much brainstorming and googling I found that there is one small mistake I made … which is causing the error
I am running solution out of Shared /Remote drive i.e. Solution folder is on the Shared /Remote Drive. So please check you solution location, when you will see this error in future !!!