Solved

Server Error in '/OWAAdmin' Application

Posted on 2007-11-21
22
756 Views
Last Modified: 2011-05-23
i try to login to owaadmin and i get error :
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

0
Comment
Question by:Aida2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 9
22 Comments
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20335838
More than likely the /OWAAdmin directory got set to use .Net 2.0 instead of .Net 1.1 as is required by that application.  Change it in the virtual directory properties.

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20337805
Yes i uninstall .net 2
How can i change in virtual Directory
under iis manager default web site owaadmin and properties and what?
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20342370
If you already uninstalled .Net 2.0, then you cannot change it in the virtual directory's properties.  Instead, run the following at a command prompt to re-register .Net 1.1 on all the sites:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -r

Jeff
TechSoEasy
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Aida2
ID: 20342477
Tank you
it's not working
i have the same error in my exception details
and stack trace is :
[SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
   System.Security.CodeAccessSecurityEngine.CheckTokenBasedSetHelper(Boolean ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet demands) +487
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet denied, PermissionSet demands) +144
   System.Threading.Thread.set_CurrentCulture(CultureInfo value) +0
   Microsoft.Exchange.OWA.Admin.Global.Application_BeginRequest(Object sender, EventArgs e) +211
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20344059
The problem is caused by executing this from somewhere other than the SBS due to the local machine not trusting the code.

If you run OWAAdmin from the SBS Console, does it work?  If so, then you need to follow the recommendation offered in this forum post to allow you to access it in another location:
http://www.codeguru.com/forum/showthread.php?threadid=264557

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20345356
I get exactly the same error from sbd condole
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20345409
I would still recommend the steps suggested in the link above to trust the assembly in the Runtime Security Policy configuration.

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20345885
Hello,
When i righ click and select trust assembly i have to option to choose
1- MAKE CHANGE TO THIS COMPUTER
2 - Make chnage fot the current user only
i guess it should be make changes to this comuter, i must select then nest ...
 i am totaly new in this area and
I am not sure to change trust assembly. I don't no what happend and what policy i change
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20346589
Y'know... I hadn't worked with the OWAAdmin console in awhile and just realized that I don't have it installed on my server, but rather on my workstation, as is recommended in the "ReadMe.htm" file (http://download.microsoft.com/download/7/9/a/79a3c251-2ca1-44e3-865b-44488f97ad55/readme.htm)

Just as a test, I installed it on another XP Pro workstation that didn't have IIS running... so first I installed IIS, then installed OWAAdmin.  It gave me a garbled web site to begin with, and I realized I had both .NET 1.1 and 2.0 on that machine.  I easily set the OWAAdmin Virtual Directory Properties to .Net 1.1 and tried again.  

Logged in with DOMAIN\Administrator and when I clicked on a link it gave me another error stating that I needed to run aspnet_regiis.exe -c, which I did and it now works just fine.

So... perhaps you just want to try doing that?

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20407628
Hello,
as you say i start .net config and select trust asseblies with wright click to runtime security policy.
in which assembly ...? i write url https://"server_name"/owaadmin
I get error Unable to load assembly: https://....
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20408373
I never said to start .net config and select trust assemblies... where did you get that from?

I did all of that in IIS Admin.

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20424138
is it possible to uninstaall owa and install it .I can't find uninstall of owaadmin
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20431562
You've lost me.

Are you asking if its possible to uninstall OWAAdmin?  

There is no uninstall for that because all that the installation package does is to create the virtual directory in IIS and create C:\Program Files\Outlook Web Access Administration and it's contents.

So to remove OWAAdmin, you would just delete the virtual directory in IIS and the folder in Program Files.

There's also a single registry key you can delete, but its not required:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OWAAdminInstall

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20908849
WHat i have is :
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

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:


[SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
   System.Security.CodeAccessSecurityEngine.CheckTokenBasedSetHelper(Boolean ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet demands) +487
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet denied, PermissionSet demands) +144
   System.Threading.Thread.set_CurrentCulture(CultureInfo value) +0
   Microsoft.Exchange.OWA.Admin.Global.Application_BeginRequest(Object sender, EventArgs e) +211
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20910341
Lets go back to my question about where you've installed OWAAdmin... did you install it on the SBS?  Or on a separate machine?  It should NOT be installed on your SBS.

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20911112
I install it in my sbs2003. It was working in my sbs.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Kane - TechSoEasy earned 65 total points
ID: 20913199
I think I may have found your problem:  http://support.microsoft.com/kb/836989 which essentially says to make sure you have .NET 1.1 Service Pack 1 installed.  If you already have that installed, reinstall it.

Jeff
TechSoEasy
0
 
LVL 1

Author Comment

by:Aida2
ID: 20913427
streng now i have following error:
(The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the ugrade patch may update a different version of the program.
Verify that the program to be upgraded exist on your computer and that you have the correct upgrade patch)
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20914108
That's because you are trying to install the hotfix BEFORE Service Pack 1.  Install SP1 first, and you won't get that error.

Jeff
TechSoEasy
0
 

Expert Comment

by:logiuser
ID: 35815070
I tried to update the SP1 but I got the message
Which hotfix have I do remove?

My sistem is a windows 2003 server enteprise sp2 with exchange server sp2 and sharepoint, and I did all the windows update.
In my system OMA and OWAadmin dont work, while OWA work.
I'm not able to understand if it is a problem of sharepoint, or IIS, or exchange or what ever.
I have already change the permission to full trust to all the intranet on .net 1.1 (even if the files are on the same server where is exchange).


Thanks
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question