A New, Out-of-the-Blue Problem
Twice in the last three days my team has encountered the
following error when attempting to set up a web site or
virtual directory on a machine that has Team Foundation Server
installed. After we copy our files to the directory and try to
browse to the site, we see the following error. In addition to
a huge curiosity as to how to solve this problem, I'm very
curious as to why this only happens on our two "single-server"
installations of Team Foundation Server. Any advice anyone can
offer would be most appreciated. Server Error in '/VanillaCS'
Application.
--------------------------------------------------------------------------------
Security Exception Description: The application attempted to
perform an operation not allowed by the security policy. To
grant this application the required permission please contact
your system administrator or change the application's trust
level in the configuration file. Exception Details:
System.Security.SecurityException: Request for the permission
of type 'System.Security.Permissions.FileIOPermission,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed. Source Error: An
unhandled exception was generated during the execution of the
current web request. Information regarding the origin and
location of the exception can be identified using the
exception stack trace below. Stack Trace: [SecurityException:
Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.IO.Path.GetFullPath(String path) +98
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String
physicalPath, Boolean& pathTooLong) +50
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String
physicalPath) +23
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String
siteID, VirtualPath path) +513
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String
siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +163
System.Web.VirtualPath.MapPathInternal() +41
System.Web.HttpRequest.MapPath(VirtualPath virtualPath,
VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +122
System.Web.HttpServerUtility.MapPath(String path) +60
CommunityServer.Configuration.CSConfiguration.GetConfig() +95
CommunityServer.Components.Jobs.Start() +104
CommunityServer.CSHttpModule.Init(HttpApplication application)
+335 System.Web.HttpApplication.InitModules() +267
System.Web.HttpApplication.InitInternal(HttpContext context,
HttpApplicationState state, MethodInfo[] handlers) +1251
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context) +243
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +106
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest
wr) +317
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework
Version:2.0.50727.42; ASP.NET Version:2.0.50727.62