Solved

Server Error in '/OWAAdmin' Application

Posted on 2007-11-21
22
740 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
  • 10
  • 9
22 Comments
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 1

Author Comment

by:Aida2
Comment Utility
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
Comment Utility
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
Comment Utility
I get exactly the same error from sbd condole
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction At 19:33 (UST) on Tuesday 21st September the long awaited email arrived with the subject title of “ANNOUNCING THE AVAILABILITY OF WINDOWS SBS 7 PREVIEW”.  It was time to drop whatever I was doing and dedicate as much bandwidth as possi…
The problem of the system drive in SBS 2003 getting full continues to be an issue, even though SBS 2008 and SBS 2011 are both in the market place.  There are several solutions to this, including adding additional drive space or using third party uti…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now