473,756 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ 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.d ll). 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.PolicyE xception: 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 .SecurityManage r.ResolvePolicy (Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionP ermission) +2738645
System.Security .SecurityManage r.ResolvePolicy (Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& securitySpecial Flags, Boolean
checkExecutionP ermission) +57

[FileLoadExcepti on: Could not load file or assembly
'Microsoft.Prac tices.ObjectBui lder, Version=1.0.511 09.0,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. Failed
to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Evidence assemblySecurit y, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotF ound, Boolean
forIntrospectio n) +0
System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean
forIntrospectio n) +211
System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString,
Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean
forIntrospectio n) +141
System.Reflecti on.Assembly.Loa d(String assemblyString) +25

System.Web.Conf iguration.Compi lationSection.L oadAssemblyHelp er(String
assemblyName, Boolean starDirective) +32

[ConfigurationEr rorsException: Could not load file or assembly
'Microsoft.Prac tices.ObjectBui lder, Version=1.0.511 09.0,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. Failed
to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]

System.Web.Conf iguration.Compi lationSection.L oadAssemblyHelp er(String
assemblyName, Boolean starDirective) +596

System.Web.Conf iguration.Compi lationSection.L oadAllAssemblie sFromAppDomainB inDirectory()
+3479049

System.Web.Conf iguration.Compi lationSection.L oadAssembly(Ass emblyInfo
ai) +46

System.Web.Comp ilation.BuildMa nager.GetRefere ncedAssemblies( CompilationSect ion
compConfig) +177
System.Web.Comp ilation.BuildPr ovidersCompiler ..ctor(VirtualP ath
configPath, Boolean supportLocaliza tion, String outputAssemblyN ame) +180

System.Web.Comp ilation.CodeDir ectoryCompiler. GetCodeDirector yAssembly(Virtu alPath
virtualDir, CodeDirectoryTy pe dirType, String assemblyName, StringSet
excludedSubdire ctories, Boolean isDirectoryAllo wed) +347
System.Web.Comp ilation.BuildMa nager.CompileCo deDirectory(Vir tualPath
virtualDir, CodeDirectoryTy pe dirType, String assemblyName, StringSet
excludedSubdire ctories) +125
System.Web.Comp ilation.BuildMa nager.CompileCo deDirectories() +525
System.Web.Comp ilation.BuildMa nager.EnsureTop LevelFilesCompi led() +448

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

System.Web.Comp ilation.BuildMa nager.ReportTop LevelCompilatio nException() +57
System.Web.Comp ilation.BuildMa nager.EnsureTop LevelFilesCompi led() +612
System.Web.Host ing.HostingEnvi ronment.Initial ize(Application Manager
appManager, IApplicationHos t appHost, IConfigMapPathF actory
configMapPathFa ctory, HostingEnvironm entParameters hostingParamete rs) +456

[HttpException (0x80004005): Could not load file or assembly
'Microsoft.Prac tices.ObjectBui lder, Version=1.0.511 09.0,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. Failed
to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3426855
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +149

Sep 5 '06 #1
1 2040
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
1782
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. ---------------------------------------------------------------------------- ---- Configuration Error
10
1820
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; and do mystack.push(tmp); And then, i do
0
3535
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 security in machine.config without any effect (system, administrator and new ASPUSER account)
2
1263
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 months ago. Now we cannot create new projects, and keep getting an error, "Required permissions cannot be acquired". We tried created a windows app, but got the error when we tried to add a new form. We tried to create a web app, and the toolbox...
0
1582
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 IIS on the test web servers pointing to the file share. I get the error below when attempting to view the website on the test bed. However, if I copy the web app to one of the test webservers and attempt to view the website on that server it...
3
4864
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 deny or allow access to certain files and folders. Currently they have it set up very restrictively so that it denies access to lots of files and folders. I find that when I go to run any type of ASP.NET application I receive error messages that...
1
7127
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. ---------------------------------------------------------------------------- ---- Configuration Error Description: An error occurred during the processing of a configuration file
0
5252
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 to install using the setup.exe. Title is "Cannot Start Application" and it says: ==================== Cannot download the application. The application is missing required files. Contact application vendor for assistance.
1
5046
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 what kind of permission to set? thanks Server Error in '/' Application.
0
9872
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9843
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.