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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 15

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

764 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