473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Required permissions cannot be acquired.

Hi

i am having problem with the microsoft enterprise library. i have uploaded
the site to the hosting server and it gives the following error
it works well in my server. can some one help me what kind of permission to
set?

thanks

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.PolicyException: 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.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission) +2709488
System.Security.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& securitySpecialFlags, Boolean
checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Data.Config uration.Design,
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(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Data.Config uration.Design,
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.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3596761
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.WebDirectoryBatchCompiler.. ctor(VirtualDirectory
vdir) +267
System.Web.Compilation.BuildManager.BatchCompileWe bDirectoryInternal(VirtualDirectory
vdir, Boolean ignoreErrors) +36
System.Web.Compilation.BuildManager.BatchCompileWe bDirectory(VirtualDirectory
vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath
virtualPath) +73
System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) +580
System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
+111
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext context,
String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpH andlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String physicalPath)
+40
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+139
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute()
+120
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +155

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832
Sep 28 '07 #1
1 5017
Without any information on what version of Enterprise Library or how you
were using them, I found this post matching your error on Google:

http://forums.microsoft.com/MSDN/Sho...65715&SiteID=1

Googled:

http://www.google.com/search?hl=en&r...ise+Library%22

HTH.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com
Hi

i am having problem with the microsoft enterprise library. i have
uploaded
the site to the hosting server and it gives the following error
it works well in my server. can some one help me what kind of
permission to
set?
thanks

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.PolicyException: 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.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission) +2709488
System.Security.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& securitySpecialFlags, Boolean
checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Data.Config uration.Design,
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(AssemblyName fileName, String
codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25

System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Data.Config uration.Design,
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.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596

System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDo
mainBinDirectory()
+3596761

System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46

System.Web.Compilation.BuildManager.GetReferencedA ssemblies(Compilatio
nSection
compConfig) +177

System.Web.Compilation.WebDirectoryBatchCompiler.. ctor(VirtualDirector
y
vdir) +267

System.Web.Compilation.BuildManager.BatchCompileWe bDirectoryInternal(V
irtualDirectory
vdir, Boolean ignoreErrors) +36

System.Web.Compilation.BuildManager.BatchCompileWe bDirectory(VirtualDi
rectory
vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath
virtualPath) +73

System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(Virtua
lPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) +580

System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(Ht
tpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp,
Boolean allowBuildInPrecompile) +93

System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(Virtua
lPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert)
+111

System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(Virt
ualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext
context,
String requestType, VirtualPath virtualPath, String physicalPath) +31

System.Web.UI.PageHandlerFactory.System.Web.IHttpH andlerFactory2.GetHa
ndler(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath)
+40
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context,
String
requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig)
+139

System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecuti
onStep.Execute()
+120
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean&
completedSynchronously) +155
----------------------------------------------------------------------
---------- Version Information: Microsoft .NET Framework
Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

Sep 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matthieu Gaillet | last post by:
Hello everyone, I try to launch a simple aspx (webmatrix) page onto an W2k / IIS5.0 / .net framework 1.1 but still get this error page : Server Error in '/pagaille' Application....
5
by: fred | last post by:
I don't know if I'm doing this correctly. I have a little programming experience in python, c++ and some others but this is my first time with javascript. I'm trying have my website detect the...
1
by: WilliamSerg | last post by:
I developed a C#.net program and running on my local machine was fine. Then I run it on a server machine and got an exception error: execution permission cannot be acquired. I googled and the...
0
by: Jéjé | last post by:
Hi, I've just installed the UDDI Service to test it and when I try to access the localhost/UDDI virtual folder I receive the Required permissions cannot be acquired error I've changed the...
2
by: jhcorey | last post by:
(I had posted this in the vsnet.studio group without a response.) We have VS with framework 1.1 on an xp machine, and this was working fine the last time we used it, which was probably several...
0
by: Andy Sutorius via DotNetMonster.com | last post by:
Hi, I have a web app that works on my workstation (WinXP sp2). It does not work after I copy it to the test bed. The test bed is a farm with 2 servers (W2K3) sharing a file server (W2K3). I have...
3
by: Andy Sutorius via DotNetMonster.com | last post by:
After installing Sharepoint Portal Services I am no longer able to see my website. When I try I get Required permissions cannot be acquired. I have tried to put the Trust key in the web.config but...
1
by: Simon Harvey | last post by:
Hi everyone, If anyone can help me with the following - I would be VERY grateful. I need to deploy an 2 ASP.net applications that I've been creating onto one of our live servers. Both...
1
by: spardi | last post by:
I try to launch a simple aspx (webmatrix) page onto an W2k / IIS5.0 / .net framework 1.1 but still get this error page : Server Error in '/pagaille' Application....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.