MM&M UG UK

 

The home of the Microsoft Messaging and Mobility

User Group in the UK.

Welcome to MM&M UG UK Sign in | Join | Help
in
Home Blogs Forums Photos Articles Links CESN Downloads Aggregated RSS

Activesync and OMA

Last post 04-15-2008, 9:07 by cats_eyes. 8 replies.
Sort Posts: Previous Next
  •  05-21-2007, 11:22 1248

    Activesync and OMA

    We've been quite happily running Activesync on our mobile phones for a while now, however just before midday on the 15th May our phone synchs stopped.

     

    We rebooted the servers, checked the permissions on the IIS tree, and eventually found that OMA was broken for no apparent reason with the following :

     

    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>

     

    Doing some research around the net I found an article which suggested rolling back the .NET framework to 1.1.4322 this didn't work, so I've rolled it forward again to 2.0.50727 and it still doesn't work.

     

    Anyone else have a suggestion to what I should be looking at to get it back up and running again?

  •  05-21-2007, 16:08 1249 in reply to 1248

    Re: Activesync and OMA

    Have you done anything recenty, FBA on a single server will break OMA and activesync for example.

    You can probably find out what has happenned by browsing to http://localhost/oma on the server in question.

    This will ask for authentication, and then an error will most likely give you the path to a directory where you need to reset or re-apply permissions within the C:\WINDOWS\Microsoft.NET\Framework directory

     

     


    "The isolated knowledge obtained by a group of specialists in a narrow field has in itself no value whatsoever" : Erwin Schrodinger
  •  05-21-2007, 17:58 1250 in reply to 1249

    Re: Activesync and OMA

     

    Server Error in '/OMA' Application.

    Collection was modified; enumeration operation may not execute.

    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.InvalidOperationException: Collection was modified; enumeration operation may not execute.

    Source Error:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

      <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:

    [InvalidOperationException: Collection was modified; enumeration operation may not execute.]
       System.Collections.ArrayListEnumeratorSimple.MoveNext() +2754446
       Microsoft.Exchange.OMA.Tracing.OmaTrace.set_DebugOutputTracing(Boolean value) +167
       Microsoft.Exchange.OMA.UserInterface.Global..ctor() +262
       ASP.global_asax..ctor() +5
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
       System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
       System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +184
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +317
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
  •  05-21-2007, 17:58 1251 in reply to 1250

    Re: Activesync and OMA

    Not sure what had happened to break this, it's a bit weird
  •  05-23-2007, 14:30 1266 in reply to 1251

    Re: Activesync and OMA

    You didn't put IE7 on the box by any chance did you ?
    "The isolated knowledge obtained by a group of specialists in a narrow field has in itself no value whatsoever" : Erwin Schrodinger
  •  05-23-2007, 16:45 1267 in reply to 1266

    Re: Activesync and OMA

    Just checked, yes it's running IE7. Uninstall?
  •  05-23-2007, 17:53 1268 in reply to 1267

    Re: Activesync and OMA

    Oh yes, please...
    "The isolated knowledge obtained by a group of specialists in a narrow field has in itself no value whatsoever" : Erwin Schrodinger
  •  05-24-2007, 11:23 1272 in reply to 1268

    Re: Activesync and OMA

    Hrm I'm sure I'd done it before, but one of the guys at the office went through all of IIS and reset the appropriate permissions onto all directories (including OMA) and boom it all started working.

  •  04-15-2008, 9:07 2495 in reply to 1272

    Re: Activesync and OMA

    Hi there,

    We have the exact same issue with our server.  SBS2003 R2.

    Outlook Web Accesws works fine and we now have a Geotrust certificate installed, but the OMA fails since a colleague of mine broke it last year messing about with certificates.  We've tried all sorts of things to resolve the issue, but came across your results and recognised the exact same screens.

    Can you tell me exactly how you sorted the permissions in IIS for OMA to work again please.

    Pete.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems