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


Exchange 2007 test-activesync cmdlet not working System.IO.IOException .Net error?

Posted on 2010-01-12
Medium Priority
Last Modified: 2013-11-07
I'm having trouble with getting my test-activesync cmdlets to work in an Exchange 2007 org.  The other cmdlets are working.  I do not believe this is an SSL issue as -trustanysslcertificate:$true returns the same error.

eption]: The under
lying connection w
as closed: An unex
pected error occur
red on a send. Inn
er error [System.I
O.IOException]: Au
thentication faile
d because the remo
te party has close
d the transport st

This is very strange to me, as the cmdlets are working in the test env. but not in prod.  What I can tell this is more likely to be some type of .NET error, but I have just about zero experience troubleshooting .NET.

Another google search brought me to an indication this could be an authentication issue with the microsoft-server-activesync website if that helps anyone point me in the right direction.

Any help would be highly appreciated.  Thanks!
Question by:bribri007
  • 2
LVL 74

Expert Comment

by:Glen Knight
ID: 26301616
Has something been installed on the server that has changed the version of .net used in the Application pools?

Can you open IIS Manager and under Application Pools check they are all set to use .Net version 2.

If they are then can you provide any event log errors you might be seeing in the application log?

Author Comment

ID: 26306495
From what I can tell there isn't anything that would have changed the .net version of the pools, but your instructions for checking the application pools themselves doesn't seem to flow.  This is IIS 6 and I have no options to check the .net version on the app pools themsevles.  under the various applications they are set to use .net 2

There are also nothing being logged directly to the app log.  Is there a way to turn up diagnostic logging for .net?

thanks btw!
LVL 16

Accepted Solution

Narayan_singh earned 1500 total points
ID: 26312679
Tahat above error doesnt seem to be .Net related it says authentication fialed.

On Microsoft-Server-ActiveSync make sure you have only basic authentication selected.

Go to https://localhost/microsoft-server-ActiveSyn and check if you get http 501/505.

What about testing with https://www.testexchangeconnectivity.com/ ...does it work.
Post the result.

Author Closing Comment

ID: 31676351
integrated auth is also checked, however this is also checked in my test environment, and that works.  I'm not ruling this out, but it will take a week+ to get that change approved outside of test, so not much I can do about that until then.  I did toggle this several times in test, and it made no difference in the ability to run the cmdlet.  

localhost/micro... does return a 501/505

and the testexchangeconnectivity.com  does work with warnings about invalid authentication modes.  I'm willing to go with the auth settings on IIS for now since it will be several weeks before I can verify this is the issue.  Thanks for your help!

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question