Link to home
Start Free TrialLog in
Avatar of Aida2
Aida2

asked on

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.

Avatar of Jeffrey Kane - TechSoEasy
Jeffrey Kane - TechSoEasy
Flag of United States of America image

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
Avatar of Aida2
Aida2

ASKER

Yes i uninstall .net 2
How can i change in virtual Directory
under iis manager default web site owaadmin and properties and what?
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
Avatar of Aida2

ASKER

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
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
Avatar of Aida2

ASKER

I get exactly the same error from sbd condole
I would still recommend the steps suggested in the link above to trust the assembly in the Runtime Security Policy configuration.

Jeff
TechSoEasy
Avatar of Aida2

ASKER

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
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
Avatar of Aida2

ASKER

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://....
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
Avatar of Aida2

ASKER

is it possible to uninstaall owa and install it .I can't find uninstall of owaadmin
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
Avatar of Aida2

ASKER

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

 
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
Avatar of Aida2

ASKER

I install it in my sbs2003. It was working in my sbs.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Kane - TechSoEasy
Jeffrey Kane - TechSoEasy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aida2

ASKER

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)
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
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