Hi!
I'm deploying a web application and I'm having troubles putting it to run on the web, while it runs perfectly on my PC.
Just to introduce, all the tiers except the UI were generated by CodeSmith and the UI made from scratch.
This application uses the MS Enterprise Library 2.0.
I'm deploying it into a Crystaltech shared hosting solution.
Calling the deployed Web page you can see the exceptions pasted bellow.
How can I solve this?
Server Error in '/' Application.
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) +2736869
System.Security.SecurityMa
nager.Reso
lvePolicy(
Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'Microsoft.Practices.Enter
priseLibra
ry.Logging
, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly
.nLoad(Ass
emblyName 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) +211
System.Reflection.Assembly
.InternalL
oad(String
assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly
.Load(Stri
ng assemblyString) +25
System.Web.Configuration.C
ompilation
Section.Lo
adAssembly
Helper(Str
ing assemblyName, Boolean starDirective) +32
[ConfigurationErrorsExcept
ion: Could not load file or assembly 'Microsoft.Practices.Enter
priseLibra
ry.Logging
, Version=2.0.0.0, 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) +596
System.Web.Configuration.C
ompilation
Section.Lo
adAllAssem
bliesFromA
ppDomainBi
nDirectory
() +3487289
System.Web.Configuration.C
ompilation
Section.Lo
adAssembly
(AssemblyI
nfo ai) +46
System.Web.Compilation.Bui
ldManager.
GetReferen
cedAssembl
ies(Compil
ationSecti
on compConfig) +177
System.Web.Compilation.Web
DirectoryB
atchCompil
er..ctor(V
irtualDire
ctory vdir) +267
System.Web.Compilation.Bui
ldManager.
BatchCompi
leWebDirec
toryIntern
al(Virtual
Directory vdir, Boolean ignoreErrors) +36
System.Web.Compilation.Bui
ldManager.
BatchCompi
leWebDirec
tory(Virtu
alDirector
y vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
System.Web.Compilation.Bui
ldManager.
CompileWeb
File(Virtu
alPath virtualPath) +73
System.Web.Compilation.Bui
ldManager.
GetVPathBu
ildResultI
nternal(Vi
rtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580
System.Web.Compilation.Bui
ldManager.
GetVPathBu
ildResultW
ithNoAsser
t(HttpCont
ext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.Bui
ldManager.
GetVirtual
PathObject
Factory(Vi
rtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Compilation.Bui
ldManager.
CreateInst
anceFromVi
rtualPath(
VirtualPat
h virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerF
actory.Get
HandlerHel
per(HttpCo
ntext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerF
actory.Sys
tem.Web.IH
ttpHandler
Factory2.G
etHandler(
HttpContex
t context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication
.MapHttpHa
ndler(Http
Context context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecu
tionStep.S
ystem.Web.
HttpApplic
ation.IExe
cutionStep
.Execute()
+120
System.Web.HttpApplication
.ExecuteSt
ep(IExecut
ionStep step, Boolean& completedSynchronously) +155
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210