Solved

Get-OwaVirtualDirectory - The task was not able to connect to IIS on the server 'server.somewhere.com' Ensure that the server exists and is reachable. RPC Server is unavailable.

Posted on 2010-09-11
8
3,770 Views
Last Modified: 2012-05-10
I just upgraded to Exchange 2007 SP3 (Windows 2003 R2 SP2). However, OWA is no longer working properly on 192.168.0.5 (setup prior to SP3, used for WAN external clients via firewall port forwarding) but it is working properly on 192.168.0.4 (Default Web Site, used for LAN clients). Basically, I want to create a new OwaVirtualDirectory for 192.168.0.5 (I'm assuming this is allowed).

Get-OwaVirtualDirectory - The task was not able to connect to IIS on the server 'server.somewhere.com' Ensure that the server exists and is reachable. RPC Server is unavailable.

Background: I have restarted IIS multiple times. After issuing get-owavirtualdirectory, I had about 6 entries, which (because I've had related problems since 2007 due to this, and on a suggestion from an MS Tech) I removed all existing entries with remove-owavirtualdirectory -identity "BLAH BLAH". Afterwards, the RPC error started appearing. Now if I issue a

New-OwaVirtualDirectory "SERVER1\Mobile," I get this:
The virtual directory 'owa' already exists under "server.somewhere.com/Default Web Site"

0
Comment
Question by:light-blue
[X]
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
  • 4
  • 4
8 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33655014
get-owavirtualdirectory -server servername
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655066
Thank you endital1097. Should smartphone users have problems connecting after I issued these commands?

1. (via GUI) Created new IIS Virtual Directory called "Mobile"
2. Remove-ActiveSyncVirtualDirectory -identity "Microsoft-Server-ActiveSync (Clients)"
3. New-OwaVirtualDirectory -WebSiteName "Mobile"
4. New-ActiveSyncVirtualDirectory -WebsiteName "Mobile" -ExternalURL "https://mobile.somewhere.com"

Should I create an RPC too? Anything else?

Thanks!
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33655094
yes, #4
external url should be https://mobile.somewhere.com/Microsoft-Server-ActiveSync

rpc to the new site
get-outlookanywhere | set-outlookanywhere -name "Rpc (Mobile)"


0
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 
LVL 1

Author Comment

by:light-blue
ID: 33655183
I just executed your command above. Somehow thoug I still need to create the RPC virtual directory (see below). I can't seem to find the EMS command for that.


Test-OutlookWebServices | fl

Id      : 1013
Type    : Error
Message : When contacting https://mobile.somewhere.com/Rpc received the error The remote server returned an error: (404) Not Found.

Id      : 1017
Type    : Error
Message : [EXPR]-Error when contacting the RPC/HTTP service at https://mobile.somewhere.com/Rpc. The elapsed time was 250 milliseconds.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33655192
go into iis manager and make sure that the rpc vdir is present under the mobile site
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655214
Sorry, please ignore my last post. I had done this (RPC vdirs) before but had forgotten how (i.e., I did Save Configuration to a File for both vdirs and tried Outlook from WAN, which worked fine). Now I'm receiving success messages like below:

Id      : 1017
Type    : Success
Message : [EXPR]-Successfully contacted the RPC/HTTP service at https://mobile.somewhere.com/Rpc. The elapsed time was 62 milliseconds.

Should I try any other testing EMS commands (like Test-OutlookWebServices) to ensure iPhone / WAN Outlook connectivity?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33655223
this is the best place for extenal access testing
https://testexchangeconnectivity.com/
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655375
endital1097, thank you so much!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Find out what you should include to make the best professional email signature for your organization.
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…
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…

749 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