mobot
asked on
How do I set up ASP .NET iis 7 permissions on windows server 2008 and UNC ASP .NET website?
I have 2 NLB windows 2008 web servers and I'm connecting to web sites through a UNC. The ASP .Net websites are sitting on a file cluster. When I try to run the ASP .Net website from IIS I get the following error: Required permissions cannot be aquired.
Not sure what I'm missing.
TIA...
Not sure what I'm missing.
TIA...
Are you getting a specific code?
ASKER
no 500 or 400, etc. I'll post my stack trace below.
Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.Pol icyExcepti on: Required permissions cannot be acquired.
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:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityMa nager.Reso lvePolicy( Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +10238142
System.Security.SecurityMa nager.Reso lvePolicy( Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +97
[FileLoadException: Could not load file or assembly 'DataProtection, Version=1.0.1907.29279, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly ._nLoad(As semblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly .InternalL oad(Assemb lyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly .InternalL oad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
System.Reflection.Assembly .Load(Stri ng assemblyString) +35
System.Web.Configuration.C ompilation Section.Lo adAssembly Helper(Str ing assemblyName, Boolean starDirective) +190
[ConfigurationErrorsExcept ion: Could not load file or assembly 'DataProtection, Version=1.0.1907.29279, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.C ompilation Section.Lo adAssembly Helper(Str ing assemblyName, Boolean starDirective) +11207304
System.Web.Configuration.C ompilation Section.Lo adAllAssem bliesFromA ppDomainBi nDirectory () +388
System.Web.Configuration.C ompilation Section.Lo adAssembly (AssemblyI nfo ai) +232
System.Web.Configuration.A ssemblyInf o.get_Asse mblyIntern al() +48
System.Web.Compilation.Bui ldManager. GetReferen cedAssembl ies(Compil ationSecti on compConfig) +210
System.Web.Compilation.Web DirectoryB atchCompil er..ctor(V irtualDire ctory vdir) +191
System.Web.Compilation.Bui ldManager. BatchCompi leWebDirec toryIntern al(Virtual Directory vdir, Boolean ignoreErrors) +54
System.Web.Compilation.Bui ldManager. CompileWeb File(Virtu alPath virtualPath) +295
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultI nternal(Vi rtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +476
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultW ithNoAsser t(HttpCont ext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +116
System.Web.Compilation.Bui ldManager. GetVirtual PathObject Factory(Vi rtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +175
System.Web.Compilation.Bui ldManager. CreateInst anceFromVi rtualPath( VirtualPat h virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52
System.Web.UI.PageHandlerF actory.Get HandlerHel per(HttpCo ntext context, String requestType, VirtualPath virtualPath, String physicalPath) +50
System.Web.HttpApplication .MapHttpHa ndler(Http Context context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +503
System.Web.MapHandlerExecu tionStep.S ystem.Web. HttpApplic ation.IExe cutionStep .Execute() +142
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +263
Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.Pol
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:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityMa
System.Security.SecurityMa
[FileLoadException: Could not load file or assembly 'DataProtection, Version=1.0.1907.29279, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly
System.Reflection.Assembly
System.Reflection.Assembly
System.Reflection.Assembly
System.Web.Configuration.C
[ConfigurationErrorsExcept
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Configuration.C
System.Web.Configuration.A
System.Web.Compilation.Bui
System.Web.Compilation.Web
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.UI.PageHandlerF
System.Web.HttpApplication
System.Web.MapHandlerExecu
System.Web.HttpApplication
ASKER
Update. I'm not getting a 500 - Internal server error. This happened after I added the below line the the web.config file of the ASP.Net website.
<trust level="Medium" orginUrl="" /> (doesn't matter if trust level is Medium or Full)
<trust level="Medium" orginUrl="" /> (doesn't matter if trust level is Medium or Full)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.