Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

Server Error in '/OWAAdmin' Application

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
Aida2
Asked:
Aida2
  • 10
  • 9
1 Solution
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
Yes i uninstall .net 2
How can i change in virtual Directory
under iis manager default web site owaadmin and properties and what?
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Aida2Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
I get exactly the same error from sbd condole
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
I would still recommend the steps suggested in the link above to trust the assembly in the Runtime Security Policy configuration.

Jeff
TechSoEasy
0
 
Aida2Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
is it possible to uninstaall owa and install it .I can't find uninstall of owaadmin
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
I install it in my sbs2003. It was working in my sbs.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
Aida2Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
logiuserCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 10
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now