Avatar of Ehab Salem
Ehab SalemFlag for Egypt

asked on 

Cannot connect to Exchange OMA

I am trying to configure Outlook Mobile access on Exchange server 2003 SP2. When I browse to the link: https://mymailserver/oma I get the error:
Could not get URL https://mailserver/oma/
HTTP Error : 500 (Internal Server Error)
OWA is working fine on the same server.
Exchange

Avatar of undefined
Last Comment
Sembee
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

Accessing the oma site from a normal browser (ie6), I get this error:
Server Error in '/OMA' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

If I logon on the server itself: https://localhost/oma I get:
Server Error in '/OMA' Application.
--------------------------------------------------------------------------------

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\oma\55aaeb43\5ef66257" is denied.
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.UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\oma\55aaeb43\5ef66257" is denied.
Avatar of Sembee
Sembee
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you using SSL?
Forms Based authentication?

If so then you should review

http://support.microsoft.com/default.aspx?kbid=817379
and my own take on the issue:
http://www.amset.info/exchange/mobile-85010014.asp

Simon.
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

SSL yes, but no FBA.
I checked http://support.microsoft.com/kb/818486 and this is exactly my error, and went thru it.
Now I am getting a different error:
  A System error has occurred while processing your request. Please try again. If the problem persists, contact your administrator.
And event ID 1503 in the server.
Avatar of Sembee
Sembee
Flag of United Kingdom of Great Britain and Northern Ireland image

Did you remove the require SSL option before doing anything? If not, then the entire process was a waste of time as you cannot have require SSL enabled.

Also ensure that you do not have asp.net 2.0 enabled for any of the exchange virtual directories in IIS Manager. It should be version 1.1 only.

Simon.
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

ASP.Net is ver 1.1.432
I removed the require SSL option (from OMA only) but still getting the same error, but why do i have to remove it?
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

In the Server Event viewer I have the ID 1503:
An unknown error occurred while processing the current request:
Message: The remote server returned an error: (403) Forbidden.
Source: Microsoft.Exchange.OMA.ExchangeDataProvider
Stack trace:
   at Microsoft.Exchange.OMA.ExchangeDataProvider.OmaWebRequest.GetRequestStream()
   at Microsoft.Exchange.OMA.ExchangeDataProvider.ExchangeServices.GetSpecialFolders()
   at Microsoft.Exchange.OMA.ExchangeDataProvider.ExchangeServices..ctor(UserInfo user)

Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Stack trace:
   at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Microsoft.Exchange.OMA.UserInterface.Global.Session_Start(Object sender, EventArgs e)

Message: Exception of type Microsoft.Exchange.OMA.DataProviderInterface.ProviderException was thrown.
EventMessage:
UserMessage: A System error has occurred while processing your request. Please try again. If the problem persists, contact your administrator.
Source: Microsoft.Exchange.OMA.UserInterface
Stack trace:
   at Microsoft.Exchange.OMA.UserInterface.Global.Session_Start(Object sender, EventArgs e)
   at System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e)
   at System.Web.SessionState.SessionStateModule.CompleteAcquireState()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.AsyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
ASKER CERTIFIED SOLUTION
Avatar of Sembee
Sembee
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Ehab Salem
Ehab Salem
Flag of Egypt image

ASKER

Thanks for the clarification. It is the SSL issue error indeed, but I removed it only from OMA, I had to remove it from the exchange as well.

This KB helped me:
http://support.microsoft.com/?id=817379
Avatar of Sembee
Sembee
Flag of United Kingdom of Great Britain and Northern Ireland image

817379 is almost required action for anyone using a single server. SBS R2 comes with the change already made.

it would be so simple if Microsoft allowed integrated authentication on the /exchange virtual directory when FBA was enabled.

Simon.
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo