I am setting up website on a server with resources on a shared drive.
I get the following error.
Server Error in '/Test' 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.SecurityEx
ception: Request for the permission of type 'System.Web.AspNetHostingP
ermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089' 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.Web.AspNetHostingP
ermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089' failed.]
System.Reflection.Assembly
.GetType(S
tring name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.NamespaceTag
NameToType
Mapper.Sys
tem.Web.UI
.ITagNameT
oTypeMappe
r.GetContr
olType(Str
ing tagName, IDictionary attribs) +85
System.Web.UI.TagPrefixTag
NameToType
Mapper.Sys
tem.Web.UI
.ITagNameT
oTypeMappe
r.GetContr
olType(Str
ing tagName, IDictionary attribs) +105
System.Web.UI.MainTagNameT
oTypeMappe
r.GetContr
olType(Str
ing tagName, IDictionary attribs, Boolean fAllowHtmlTags) +253
System.Web.UI.RootBuilder.
GetChildCo
ntrolType(
String tagName, IDictionary attribs) +20
System.Web.UI.ControlBuild
er.CreateC
hildBuilde
r(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +133
System.Web.UI.TemplatePars
er.Process
BeginTag(M
atch match, String inputText) +427
System.Web.UI.TemplatePars
er.ParseSt
ringIntern
al(String text, Encoding fileEncoding) +893
Start Free Trial