Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

ActiveSync Broke .NET Issue? 1309

I'm having a hell of a time getting ActiveSync to work.  I was having issues with OutlookAnywhere VDir/etc and reinstalled IIS/CAS.  It fixed all my issues then broke ActiveSync.  The error I get when visiting https://ourserver/Microsoft-Server-ActiveSync is as follows.

Server Error in '/Microsoft-Server-ActiveSync' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


=== Pre-bind state information ===
LOG: User = NT AUTHORITY\SYSTEM
LOG: DisplayName = Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///D:/Exchange/ClientAccess/sync/
LOG: Initial PrivatePath = D:\Exchange\ClientAccess\sync\bin
Calling assembly : Microsoft.Exchange.AirSyncHandler, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\Exchange\ClientAccess\sync\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

 

Stack Trace:


[FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.AirSync, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   Microsoft.Exchange.AirSyncHandler.Handler..ctor() +0

[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) +146
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +79
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +10364331
   System.Web.Configuration.HttpHandlerAction.Create() +107
   System.Web.Configuration.HandlerFactoryCache..ctor(HttpHandlerAction mapping) +25
   System.Web.HttpApplication.GetFactory(HttpHandlerAction mapping) +108
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +433
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205


===========

I've tried reinstalling CAS Roles again, as well as IIS.  Removing and recreating all VDirs.  Reinstalling .NET 2.0 (as best I could atleast being its built in.. using -u/-i)  nothing seems to change it..  

Any ideas?

Server Exchange 2007 - SP3
Windows Server 2008 - 64Bit
0
ZooyorQ
Asked:
ZooyorQ
  • 5
  • 5
1 Solution
 
Tony JLead Technical ArchitectCommented:
Anything in the Exchange setup log file from when you reinstalled CAS?

Not doing anything like redirecting the websites to OWA?
0
 
ZooyorQAuthor Commented:
No redirects.  Looks like EWS is giving the same error as well.  This is over and over in the log.


Could not load file or assembly 'Microsoft.Exchange.Clients.Strings, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while compiling method FolderListViewPage.RenderShowELCCommentAndQuotaLink
Could not load file or assembly 'Microsoft.Exchange.Clients.Strings, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while compiling method FolderTreeContextMenu.RenderMenuItems
Could not load file or assembly 'Microsoft.Exchange.Clients.Strings, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while compiling method Infobar.AddMessage
Could not load file or assembly 'Microsoft.Exchange.Clients.Strings, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while compiling method InfobarMessageBuilder.AddNoEditPermissionWarning
Could not load file or assembly 'Microsoft.Exchange.Clients.Strings, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while compiling method InfobarMessageBuilder.AddReadReceiptNotice

0
 
Tony JLead Technical ArchitectCommented:
Not sure if this will help, but worth a look:

Open the web.config file located at <Exchange Install folder>\Client Access\exchweb\ews using an editor like Notepad.exe.

2)      Replace all instances of %ExchangeInstallDir% with the actual path of the Exchange installation folder. E.g. If you have installed Exchange in D:\Program Files\Microsoft\Exchange Server replace %ExchangeInstallDir% with D:\Program Files\Microsoft\Exchange Server\.

Here is a line in the web.config file.

Before

<codeBase version="0.0.0.0" href="file:///%ExchangeInstallDir%bin\Microsoft.Exchange.Common.IL.dll"/>

After

<codeBase version="0.0.0.0" href="file:///D:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Common.IL.dll"/>

3)      Restart W3SVC service

-------------------------------------------------------------
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ZooyorQAuthor Commented:
That changes the errors into the following:

501 - Header values specify a method that is not implemented.
The page you are looking for cannot be displayed because a header value in the request does not match certain configuration settings on the Web server. For example, a request header might specify a POST to a static file that cannot be posted to, or specify a Transfer-Encoding value that cannot make use of compression.
0
 
Tony JLead Technical ArchitectCommented:
I believe that is correct when browsing to it - does it now work with a device?
0
 
ZooyorQAuthor Commented:
Kind of.  Seems really flakey though. The device wasn't working a second ago.. now it literally just popped up with a message.   I just got a call from a client saying that their mac is now connecting.  So it does indeed look like that resolved it.
0
 
Tony JLead Technical ArchitectCommented:
You can also test activesync with the Microsoft online tool here:

https://www.testexchangeconnectivity.com/
0
 
ZooyorQAuthor Commented:
I've got a call with Microsoft in an hour.  I'm going to leave this open so I can add notes from that to anyone else who runs into this error.
0
 
Tony JLead Technical ArchitectCommented:
That's good to hear.

It would seem that changing the installation path doesn't get reflected properly - when you said the errors were present in the install log, combined with the D:\ in your original post, that's what set me thinking.

Glad to have helped.
0
 
ZooyorQAuthor Commented:
Worked!

Another way to maybe have solved it would have been to recreate the environment variable for the ExchangeDir
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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