473,473 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Required Permissions Cannot Be Aquired :-(

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 applications use the Microsoft Enterprise
Library dlls and have them located in their respective bin directories.

Everything works fine on my development machine.

Now that I'm deploying it I've created 2 Virtual Directories to host the
apps. The first application runs no problem. The second, which is using
the exact same dlls is crapping out complaining about permissions with
one of the dlls (the one called ObjectBuilder.dll). I don't understand
why one V-Dir works and the other doesn't...

If anyone could advise me on what I need to do, or why its happening I
will be their best friend forever :-).

The full exception report is below

Many thanks

Simon
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) +2738645
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.ObjectBuilder, Version=1.0.51109.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.ObjectBuilder, Version=1.0.51109.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()
+3479049

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

System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180

System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.CompileCodeDir ectories() +525
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +448

[HttpException (0x80004005): Could not load file or assembly
'Microsoft.Practices.ObjectBuilder, Version=1.0.51109.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed
to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]

System.Web.Compilation.BuildManager.ReportTopLevel CompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): Could not load file or assembly
'Microsoft.Practices.ObjectBuilder, Version=1.0.51109.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed
to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3426855
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149

Sep 5 '06 #1
1 1986
Jo
Hi Simon,
I'm experiencing something very similar. Did you ever find a solution...?
Cheers
Jo
Sep 11 '06 #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....
10
by: babis85 | last post by:
Hello, i have a problem, which i cannot actually understand. I have defined a class, let's call it, X and i have a variable X* tmp, whom i allocate space with new.Then i use stack<X* > mystack; ...
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: Corey B | last post by:
I have a web server running IIS 6. The network security team here has completely locked down the server. They have installed an application called Cisco Security Agent (CSA). What CSA does is...
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
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
1
by: Fawad Ahsan | last post by:
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...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.